@ancha-labs/cli 0.4.30 → 0.4.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +2 -0
- package/lib/ancha.mjs +15372 -12496
- package/lib/assets/docs/tools.md +2 -0
- package/lib/assets/harbor/companion.mjs +10455 -8365
- package/lib/assets/templates/starter/oracle.mjs +1 -0
- package/lib/assets/templates/starter/tasks.json +1 -0
- package/lib/assets/ui/app.js +11 -5
- package/lib/mcp-entry.mjs +552 -134
- package/lib/worker.mjs +11381 -9068
- package/lib/world-server.mjs +10401 -8315
- package/package.json +1 -1
- package/third-party/QUICKBOOKS-V3-SDK-LICENSE +202 -0
package/lib/mcp-entry.mjs
CHANGED
|
@@ -475,9 +475,9 @@ var require_anchors = __commonJS({
|
|
|
475
475
|
*/
|
|
476
476
|
setAnchors: () => {
|
|
477
477
|
for (const source of aliasObjects) {
|
|
478
|
-
const
|
|
479
|
-
if (typeof
|
|
480
|
-
|
|
478
|
+
const ref21 = sourceObjects.get(source);
|
|
479
|
+
if (typeof ref21 === "object" && ref21.anchor && (identity.isScalar(ref21.node) || identity.isCollection(ref21.node))) {
|
|
480
|
+
ref21.node.anchor = ref21.anchor;
|
|
481
481
|
} else {
|
|
482
482
|
const error62 = new Error("Failed to resolve repeated object (this should not happen)");
|
|
483
483
|
error62.source = source;
|
|
@@ -796,15 +796,15 @@ var require_createNode = __commonJS({
|
|
|
796
796
|
value2 = value2.valueOf();
|
|
797
797
|
}
|
|
798
798
|
const { aliasDuplicateObjects, onAnchor, onTagObj, schema, sourceObjects } = ctx;
|
|
799
|
-
let
|
|
799
|
+
let ref21 = void 0;
|
|
800
800
|
if (aliasDuplicateObjects && value2 && typeof value2 === "object") {
|
|
801
|
-
|
|
802
|
-
if (
|
|
803
|
-
|
|
804
|
-
return new Alias.Alias(
|
|
801
|
+
ref21 = sourceObjects.get(value2);
|
|
802
|
+
if (ref21) {
|
|
803
|
+
ref21.anchor ?? (ref21.anchor = onAnchor(value2));
|
|
804
|
+
return new Alias.Alias(ref21.anchor);
|
|
805
805
|
} else {
|
|
806
|
-
|
|
807
|
-
sourceObjects.set(value2,
|
|
806
|
+
ref21 = { anchor: null, node: null };
|
|
807
|
+
sourceObjects.set(value2, ref21);
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
if (tagName?.startsWith("!!"))
|
|
@@ -816,8 +816,8 @@ var require_createNode = __commonJS({
|
|
|
816
816
|
}
|
|
817
817
|
if (!value2 || typeof value2 !== "object") {
|
|
818
818
|
const node4 = new Scalar.Scalar(value2);
|
|
819
|
-
if (
|
|
820
|
-
|
|
819
|
+
if (ref21)
|
|
820
|
+
ref21.node = node4;
|
|
821
821
|
return node4;
|
|
822
822
|
}
|
|
823
823
|
tagObj = value2 instanceof Map ? schema[identity.MAP] : Symbol.iterator in Object(value2) ? schema[identity.SEQ] : schema[identity.MAP];
|
|
@@ -831,8 +831,8 @@ var require_createNode = __commonJS({
|
|
|
831
831
|
node3.tag = tagName;
|
|
832
832
|
else if (!tagObj.default)
|
|
833
833
|
node3.tag = tagObj.tag;
|
|
834
|
-
if (
|
|
835
|
-
|
|
834
|
+
if (ref21)
|
|
835
|
+
ref21.node = node3;
|
|
836
836
|
return node3;
|
|
837
837
|
}
|
|
838
838
|
exports.createNode = createNode;
|
|
@@ -23183,7 +23183,7 @@ function extractDefs(ctx, schema) {
|
|
|
23183
23183
|
return;
|
|
23184
23184
|
}
|
|
23185
23185
|
const seen = entry2[1];
|
|
23186
|
-
const { ref:
|
|
23186
|
+
const { ref: ref21, defId } = makeURI(entry2);
|
|
23187
23187
|
seen.def = { ...seen.schema };
|
|
23188
23188
|
if (defId)
|
|
23189
23189
|
seen.defId = defId;
|
|
@@ -23191,7 +23191,7 @@ function extractDefs(ctx, schema) {
|
|
|
23191
23191
|
for (const key2 in schema2) {
|
|
23192
23192
|
delete schema2[key2];
|
|
23193
23193
|
}
|
|
23194
|
-
schema2.$ref =
|
|
23194
|
+
schema2.$ref = ref21;
|
|
23195
23195
|
};
|
|
23196
23196
|
if (ctx.cycles === "throw") {
|
|
23197
23197
|
for (const entry2 of ctx.seen.entries()) {
|
|
@@ -23352,11 +23352,11 @@ function finalize(ctx, schema) {
|
|
|
23352
23352
|
return;
|
|
23353
23353
|
const schema2 = seen.def ?? seen.schema;
|
|
23354
23354
|
const _cached = { ...schema2 };
|
|
23355
|
-
const
|
|
23355
|
+
const ref21 = seen.ref;
|
|
23356
23356
|
seen.ref = null;
|
|
23357
|
-
if (
|
|
23358
|
-
flattenRef(
|
|
23359
|
-
const refSeen = ctx.seen.get(
|
|
23357
|
+
if (ref21) {
|
|
23358
|
+
flattenRef(ref21);
|
|
23359
|
+
const refSeen = ctx.seen.get(ref21);
|
|
23360
23360
|
const refSchema = refSeen.schema;
|
|
23361
23361
|
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
23362
23362
|
schema2.allOf = schema2.allOf ?? [];
|
|
@@ -23365,7 +23365,7 @@ function finalize(ctx, schema) {
|
|
|
23365
23365
|
assignProps(schema2, refSchema);
|
|
23366
23366
|
}
|
|
23367
23367
|
assignProps(schema2, _cached);
|
|
23368
|
-
const isParentRef = zodSchema._zod.parent ===
|
|
23368
|
+
const isParentRef = zodSchema._zod.parent === ref21;
|
|
23369
23369
|
if (isParentRef) {
|
|
23370
23370
|
for (const key2 in schema2) {
|
|
23371
23371
|
if (key2 === "$ref" || key2 === "allOf")
|
|
@@ -23386,7 +23386,7 @@ function finalize(ctx, schema) {
|
|
|
23386
23386
|
}
|
|
23387
23387
|
}
|
|
23388
23388
|
const parent = zodSchema._zod.parent;
|
|
23389
|
-
if (parent && parent !==
|
|
23389
|
+
if (parent && parent !== ref21) {
|
|
23390
23390
|
flattenRef(parent);
|
|
23391
23391
|
const parentSeen = ctx.seen.get(parent);
|
|
23392
23392
|
if (parentSeen?.schema.$ref) {
|
|
@@ -26284,11 +26284,11 @@ function applyMinItems(items, minItems) {
|
|
|
26284
26284
|
function decodeJSONPointerSegment(segment) {
|
|
26285
26285
|
return segment.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
26286
26286
|
}
|
|
26287
|
-
function resolveRef(
|
|
26288
|
-
if (!
|
|
26287
|
+
function resolveRef(ref21, ctx) {
|
|
26288
|
+
if (!ref21.startsWith("#")) {
|
|
26289
26289
|
throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
|
|
26290
26290
|
}
|
|
26291
|
-
const path2 =
|
|
26291
|
+
const path2 = ref21.slice(1).split("/").filter(Boolean);
|
|
26292
26292
|
if (path2.length === 0) {
|
|
26293
26293
|
return ctx.rootSchema;
|
|
26294
26294
|
}
|
|
@@ -26296,11 +26296,11 @@ function resolveRef(ref20, ctx) {
|
|
|
26296
26296
|
if (path2[0] === defsKey) {
|
|
26297
26297
|
const key2 = path2[1] === void 0 ? void 0 : decodeJSONPointerSegment(path2[1]);
|
|
26298
26298
|
if (!key2 || !ctx.defs[key2]) {
|
|
26299
|
-
throw new Error(`Reference not found: ${
|
|
26299
|
+
throw new Error(`Reference not found: ${ref21}`);
|
|
26300
26300
|
}
|
|
26301
26301
|
return ctx.defs[key2];
|
|
26302
26302
|
}
|
|
26303
|
-
throw new Error(`Reference not found: ${
|
|
26303
|
+
throw new Error(`Reference not found: ${ref21}`);
|
|
26304
26304
|
}
|
|
26305
26305
|
function checkObjectGuards(objectSchema, guards) {
|
|
26306
26306
|
const guard = z.transform((value2) => value2).check((payload) => {
|
|
@@ -31297,8 +31297,8 @@ function standardSchemaToJsonSchema(schema, io = "input") {
|
|
|
31297
31297
|
var LOCAL_DEFINITION_REF = /^#\/(\$defs|definitions)\/([^/~%]+)$/;
|
|
31298
31298
|
function isProvablyObjectShapedRoot(schema, root = schema) {
|
|
31299
31299
|
if ("properties" in schema || "patternProperties" in schema || "additionalProperties" in schema || "required" in schema) return true;
|
|
31300
|
-
const
|
|
31301
|
-
if (
|
|
31300
|
+
const ref21 = typeof schema.$ref === "string" && LOCAL_DEFINITION_REF.exec(schema.$ref);
|
|
31301
|
+
if (ref21 && root[ref21[1]]?.[ref21[2]]?.type === "object") return true;
|
|
31302
31302
|
for (const key2 of [
|
|
31303
31303
|
"oneOf",
|
|
31304
31304
|
"anyOf",
|
|
@@ -34848,19 +34848,19 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34848
34848
|
addAnchor.call(this, sch.$anchor);
|
|
34849
34849
|
addAnchor.call(this, sch.$dynamicAnchor);
|
|
34850
34850
|
baseIds[jsonPtr] = innerBaseId;
|
|
34851
|
-
function addRef(
|
|
34851
|
+
function addRef(ref21) {
|
|
34852
34852
|
const _resolve = this.opts.uriResolver.resolve;
|
|
34853
|
-
|
|
34854
|
-
if (schemaRefs.has(
|
|
34855
|
-
schemaRefs.add(
|
|
34856
|
-
let schOrRef = this.refs[
|
|
34853
|
+
ref21 = normalizeId(innerBaseId ? _resolve(innerBaseId, ref21) : ref21);
|
|
34854
|
+
if (schemaRefs.has(ref21)) throw ambiguos(ref21);
|
|
34855
|
+
schemaRefs.add(ref21);
|
|
34856
|
+
let schOrRef = this.refs[ref21];
|
|
34857
34857
|
if (typeof schOrRef == "string") schOrRef = this.refs[schOrRef];
|
|
34858
|
-
if (typeof schOrRef == "object") checkAmbiguosRef(sch, schOrRef.schema,
|
|
34859
|
-
else if (
|
|
34860
|
-
checkAmbiguosRef(sch, localRefs[
|
|
34861
|
-
localRefs[
|
|
34862
|
-
} else this.refs[
|
|
34863
|
-
return
|
|
34858
|
+
if (typeof schOrRef == "object") checkAmbiguosRef(sch, schOrRef.schema, ref21);
|
|
34859
|
+
else if (ref21 !== normalizeId(fullPath)) if (ref21[0] === "#") {
|
|
34860
|
+
checkAmbiguosRef(sch, localRefs[ref21], ref21);
|
|
34861
|
+
localRefs[ref21] = sch;
|
|
34862
|
+
} else this.refs[ref21] = fullPath;
|
|
34863
|
+
return ref21;
|
|
34864
34864
|
}
|
|
34865
34865
|
function addAnchor(anchor2) {
|
|
34866
34866
|
if (typeof anchor2 == "string") {
|
|
@@ -34870,11 +34870,11 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34870
34870
|
}
|
|
34871
34871
|
});
|
|
34872
34872
|
return localRefs;
|
|
34873
|
-
function checkAmbiguosRef(sch1, sch2,
|
|
34874
|
-
if (sch2 !== void 0 && !equal(sch1, sch2)) throw ambiguos(
|
|
34873
|
+
function checkAmbiguosRef(sch1, sch2, ref21) {
|
|
34874
|
+
if (sch2 !== void 0 && !equal(sch1, sch2)) throw ambiguos(ref21);
|
|
34875
34875
|
}
|
|
34876
|
-
function ambiguos(
|
|
34877
|
-
return /* @__PURE__ */ new Error(`reference "${
|
|
34876
|
+
function ambiguos(ref21) {
|
|
34877
|
+
return /* @__PURE__ */ new Error(`reference "${ref21}" resolves to more than one schema`);
|
|
34878
34878
|
}
|
|
34879
34879
|
}
|
|
34880
34880
|
exports.getSchemaRefs = getSchemaRefs;
|
|
@@ -35310,9 +35310,9 @@ var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35310
35310
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35311
35311
|
const resolve_1 = require_resolve();
|
|
35312
35312
|
var MissingRefError = class extends Error {
|
|
35313
|
-
constructor(resolver, baseId,
|
|
35314
|
-
super(msg || `can't resolve reference ${
|
|
35315
|
-
this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId,
|
|
35313
|
+
constructor(resolver, baseId, ref21, msg) {
|
|
35314
|
+
super(msg || `can't resolve reference ${ref21} from id ${baseId}`);
|
|
35315
|
+
this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref21);
|
|
35316
35316
|
this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
|
|
35317
35317
|
}
|
|
35318
35318
|
};
|
|
@@ -35432,14 +35432,14 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35432
35432
|
}
|
|
35433
35433
|
}
|
|
35434
35434
|
exports.compileSchema = compileSchema;
|
|
35435
|
-
function resolveRef2(root, baseId,
|
|
35435
|
+
function resolveRef2(root, baseId, ref21) {
|
|
35436
35436
|
var _a3;
|
|
35437
|
-
|
|
35438
|
-
const schOrFunc = root.refs[
|
|
35437
|
+
ref21 = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref21);
|
|
35438
|
+
const schOrFunc = root.refs[ref21];
|
|
35439
35439
|
if (schOrFunc) return schOrFunc;
|
|
35440
|
-
let _sch = resolve.call(this, root,
|
|
35440
|
+
let _sch = resolve.call(this, root, ref21);
|
|
35441
35441
|
if (_sch === void 0) {
|
|
35442
|
-
const schema = (_a3 = root.localRefs) === null || _a3 === void 0 ? void 0 : _a3[
|
|
35442
|
+
const schema = (_a3 = root.localRefs) === null || _a3 === void 0 ? void 0 : _a3[ref21];
|
|
35443
35443
|
const { schemaId } = this.opts;
|
|
35444
35444
|
if (schema) _sch = new SchemaEnv({
|
|
35445
35445
|
schema,
|
|
@@ -35449,7 +35449,7 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35449
35449
|
});
|
|
35450
35450
|
}
|
|
35451
35451
|
if (_sch === void 0) return;
|
|
35452
|
-
return root.refs[
|
|
35452
|
+
return root.refs[ref21] = inlineOrCompile.call(this, _sch);
|
|
35453
35453
|
}
|
|
35454
35454
|
exports.resolveRef = resolveRef2;
|
|
35455
35455
|
function inlineOrCompile(sch) {
|
|
@@ -35463,13 +35463,13 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35463
35463
|
function sameSchemaEnv(s1, s2) {
|
|
35464
35464
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
35465
35465
|
}
|
|
35466
|
-
function resolve(root,
|
|
35466
|
+
function resolve(root, ref21) {
|
|
35467
35467
|
let sch;
|
|
35468
|
-
while (typeof (sch = this.refs[
|
|
35469
|
-
return sch || this.schemas[
|
|
35468
|
+
while (typeof (sch = this.refs[ref21]) == "string") ref21 = sch;
|
|
35469
|
+
return sch || this.schemas[ref21] || resolveSchema.call(this, root, ref21);
|
|
35470
35470
|
}
|
|
35471
|
-
function resolveSchema(root,
|
|
35472
|
-
const p2 = this.opts.uriResolver.parse(
|
|
35471
|
+
function resolveSchema(root, ref21) {
|
|
35472
|
+
const p2 = this.opts.uriResolver.parse(ref21);
|
|
35473
35473
|
const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p2);
|
|
35474
35474
|
let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, void 0);
|
|
35475
35475
|
if (Object.keys(root.schema).length > 0 && refPath === baseId) return getJsonPointer.call(this, p2, root);
|
|
@@ -35482,7 +35482,7 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35482
35482
|
}
|
|
35483
35483
|
if (typeof (schOrRef === null || schOrRef === void 0 ? void 0 : schOrRef.schema) !== "object") return;
|
|
35484
35484
|
if (!schOrRef.validate) compileSchema.call(this, schOrRef);
|
|
35485
|
-
if (id10 === (0, resolve_1.normalizeId)(
|
|
35485
|
+
if (id10 === (0, resolve_1.normalizeId)(ref21)) {
|
|
35486
35486
|
const { schema } = schOrRef;
|
|
35487
35487
|
const { schemaId } = this.opts;
|
|
35488
35488
|
const schId = schema[schemaId];
|
|
@@ -36680,21 +36680,21 @@ var require_core$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36680
36680
|
return _compileAsync.call(this, sch);
|
|
36681
36681
|
}
|
|
36682
36682
|
}
|
|
36683
|
-
function checkLoaded({ missingSchema:
|
|
36684
|
-
if (this.refs[
|
|
36683
|
+
function checkLoaded({ missingSchema: ref21, missingRef }) {
|
|
36684
|
+
if (this.refs[ref21]) throw new Error(`AnySchema ${ref21} is loaded but ${missingRef} cannot be resolved`);
|
|
36685
36685
|
}
|
|
36686
|
-
async function loadMissingSchema(
|
|
36687
|
-
const _schema = await _loadSchema.call(this,
|
|
36688
|
-
if (!this.refs[
|
|
36689
|
-
if (!this.refs[
|
|
36686
|
+
async function loadMissingSchema(ref21) {
|
|
36687
|
+
const _schema = await _loadSchema.call(this, ref21);
|
|
36688
|
+
if (!this.refs[ref21]) await loadMetaSchema.call(this, _schema.$schema);
|
|
36689
|
+
if (!this.refs[ref21]) this.addSchema(_schema, ref21, meta3);
|
|
36690
36690
|
}
|
|
36691
|
-
async function _loadSchema(
|
|
36692
|
-
const p2 = this._loading[
|
|
36691
|
+
async function _loadSchema(ref21) {
|
|
36692
|
+
const p2 = this._loading[ref21];
|
|
36693
36693
|
if (p2) return p2;
|
|
36694
36694
|
try {
|
|
36695
|
-
return await (this._loading[
|
|
36695
|
+
return await (this._loading[ref21] = loadSchema(ref21));
|
|
36696
36696
|
} finally {
|
|
36697
|
-
delete this._loading[
|
|
36697
|
+
delete this._loading[ref21];
|
|
36698
36698
|
}
|
|
36699
36699
|
}
|
|
36700
36700
|
}
|
|
@@ -38498,10 +38498,10 @@ var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
38498
38498
|
for (let i = 0; i < oneOf.length; i++) {
|
|
38499
38499
|
let sch = oneOf[i];
|
|
38500
38500
|
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
|
|
38501
|
-
const
|
|
38502
|
-
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId,
|
|
38501
|
+
const ref21 = sch.$ref;
|
|
38502
|
+
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref21);
|
|
38503
38503
|
if (sch instanceof compile_1.SchemaEnv) sch = sch.schema;
|
|
38504
|
-
if (sch === void 0) throw new ref_error_1.default(it.opts.uriResolver, it.baseId,
|
|
38504
|
+
if (sch === void 0) throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref21);
|
|
38505
38505
|
}
|
|
38506
38506
|
const propSch = (_a3 = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a3 === void 0 ? void 0 : _a3[tagName];
|
|
38507
38507
|
if (typeof propSch != "object") throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`);
|
|
@@ -38801,10 +38801,10 @@ var require_dynamicRef = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
38801
38801
|
schemaType: "string",
|
|
38802
38802
|
code: (cxt) => dynamicRef(cxt, cxt.schema)
|
|
38803
38803
|
};
|
|
38804
|
-
function dynamicRef(cxt,
|
|
38804
|
+
function dynamicRef(cxt, ref21) {
|
|
38805
38805
|
const { gen, keyword, it } = cxt;
|
|
38806
|
-
if (
|
|
38807
|
-
const anchor2 =
|
|
38806
|
+
if (ref21[0] !== "#") throw new Error(`"${keyword}" only supports hash fragment reference`);
|
|
38807
|
+
const anchor2 = ref21.slice(1);
|
|
38808
38808
|
if (it.allErrors) _dynamicRef();
|
|
38809
38809
|
else {
|
|
38810
38810
|
const valid = gen.let("valid", false);
|
|
@@ -47459,8 +47459,8 @@ function standardSchemaToJsonSchema2(schema, io = "input") {
|
|
|
47459
47459
|
var LOCAL_DEFINITION_REF2 = /^#\/(\$defs|definitions)\/([^/~%]+)$/;
|
|
47460
47460
|
function isProvablyObjectShapedRoot2(schema, root = schema) {
|
|
47461
47461
|
if ("properties" in schema || "patternProperties" in schema || "additionalProperties" in schema || "required" in schema) return true;
|
|
47462
|
-
const
|
|
47463
|
-
if (
|
|
47462
|
+
const ref21 = typeof schema.$ref === "string" && LOCAL_DEFINITION_REF2.exec(schema.$ref);
|
|
47463
|
+
if (ref21 && root[ref21[1]]?.[ref21[2]]?.type === "object") return true;
|
|
47464
47464
|
for (const key2 of [
|
|
47465
47465
|
"oneOf",
|
|
47466
47466
|
"anyOf",
|
|
@@ -50820,19 +50820,19 @@ var require_resolve2 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
50820
50820
|
addAnchor.call(this, sch.$anchor);
|
|
50821
50821
|
addAnchor.call(this, sch.$dynamicAnchor);
|
|
50822
50822
|
baseIds[jsonPtr] = innerBaseId;
|
|
50823
|
-
function addRef(
|
|
50823
|
+
function addRef(ref21) {
|
|
50824
50824
|
const _resolve = this.opts.uriResolver.resolve;
|
|
50825
|
-
|
|
50826
|
-
if (schemaRefs.has(
|
|
50827
|
-
schemaRefs.add(
|
|
50828
|
-
let schOrRef = this.refs[
|
|
50825
|
+
ref21 = normalizeId(innerBaseId ? _resolve(innerBaseId, ref21) : ref21);
|
|
50826
|
+
if (schemaRefs.has(ref21)) throw ambiguos(ref21);
|
|
50827
|
+
schemaRefs.add(ref21);
|
|
50828
|
+
let schOrRef = this.refs[ref21];
|
|
50829
50829
|
if (typeof schOrRef == "string") schOrRef = this.refs[schOrRef];
|
|
50830
|
-
if (typeof schOrRef == "object") checkAmbiguosRef(sch, schOrRef.schema,
|
|
50831
|
-
else if (
|
|
50832
|
-
checkAmbiguosRef(sch, localRefs[
|
|
50833
|
-
localRefs[
|
|
50834
|
-
} else this.refs[
|
|
50835
|
-
return
|
|
50830
|
+
if (typeof schOrRef == "object") checkAmbiguosRef(sch, schOrRef.schema, ref21);
|
|
50831
|
+
else if (ref21 !== normalizeId(fullPath)) if (ref21[0] === "#") {
|
|
50832
|
+
checkAmbiguosRef(sch, localRefs[ref21], ref21);
|
|
50833
|
+
localRefs[ref21] = sch;
|
|
50834
|
+
} else this.refs[ref21] = fullPath;
|
|
50835
|
+
return ref21;
|
|
50836
50836
|
}
|
|
50837
50837
|
function addAnchor(anchor2) {
|
|
50838
50838
|
if (typeof anchor2 == "string") {
|
|
@@ -50842,11 +50842,11 @@ var require_resolve2 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
50842
50842
|
}
|
|
50843
50843
|
});
|
|
50844
50844
|
return localRefs;
|
|
50845
|
-
function checkAmbiguosRef(sch1, sch2,
|
|
50846
|
-
if (sch2 !== void 0 && !equal(sch1, sch2)) throw ambiguos(
|
|
50845
|
+
function checkAmbiguosRef(sch1, sch2, ref21) {
|
|
50846
|
+
if (sch2 !== void 0 && !equal(sch1, sch2)) throw ambiguos(ref21);
|
|
50847
50847
|
}
|
|
50848
|
-
function ambiguos(
|
|
50849
|
-
return /* @__PURE__ */ new Error(`reference "${
|
|
50848
|
+
function ambiguos(ref21) {
|
|
50849
|
+
return /* @__PURE__ */ new Error(`reference "${ref21}" resolves to more than one schema`);
|
|
50850
50850
|
}
|
|
50851
50851
|
}
|
|
50852
50852
|
exports.getSchemaRefs = getSchemaRefs;
|
|
@@ -51282,9 +51282,9 @@ var require_ref_error2 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
51282
51282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51283
51283
|
const resolve_1 = require_resolve2();
|
|
51284
51284
|
var MissingRefError = class extends Error {
|
|
51285
|
-
constructor(resolver, baseId,
|
|
51286
|
-
super(msg || `can't resolve reference ${
|
|
51287
|
-
this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId,
|
|
51285
|
+
constructor(resolver, baseId, ref21, msg) {
|
|
51286
|
+
super(msg || `can't resolve reference ${ref21} from id ${baseId}`);
|
|
51287
|
+
this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref21);
|
|
51288
51288
|
this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
|
|
51289
51289
|
}
|
|
51290
51290
|
};
|
|
@@ -51404,14 +51404,14 @@ var require_compile2 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
51404
51404
|
}
|
|
51405
51405
|
}
|
|
51406
51406
|
exports.compileSchema = compileSchema;
|
|
51407
|
-
function resolveRef2(root, baseId,
|
|
51407
|
+
function resolveRef2(root, baseId, ref21) {
|
|
51408
51408
|
var _a3;
|
|
51409
|
-
|
|
51410
|
-
const schOrFunc = root.refs[
|
|
51409
|
+
ref21 = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref21);
|
|
51410
|
+
const schOrFunc = root.refs[ref21];
|
|
51411
51411
|
if (schOrFunc) return schOrFunc;
|
|
51412
|
-
let _sch = resolve.call(this, root,
|
|
51412
|
+
let _sch = resolve.call(this, root, ref21);
|
|
51413
51413
|
if (_sch === void 0) {
|
|
51414
|
-
const schema = (_a3 = root.localRefs) === null || _a3 === void 0 ? void 0 : _a3[
|
|
51414
|
+
const schema = (_a3 = root.localRefs) === null || _a3 === void 0 ? void 0 : _a3[ref21];
|
|
51415
51415
|
const { schemaId } = this.opts;
|
|
51416
51416
|
if (schema) _sch = new SchemaEnv({
|
|
51417
51417
|
schema,
|
|
@@ -51421,7 +51421,7 @@ var require_compile2 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
51421
51421
|
});
|
|
51422
51422
|
}
|
|
51423
51423
|
if (_sch === void 0) return;
|
|
51424
|
-
return root.refs[
|
|
51424
|
+
return root.refs[ref21] = inlineOrCompile.call(this, _sch);
|
|
51425
51425
|
}
|
|
51426
51426
|
exports.resolveRef = resolveRef2;
|
|
51427
51427
|
function inlineOrCompile(sch) {
|
|
@@ -51435,13 +51435,13 @@ var require_compile2 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
51435
51435
|
function sameSchemaEnv(s1, s2) {
|
|
51436
51436
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
51437
51437
|
}
|
|
51438
|
-
function resolve(root,
|
|
51438
|
+
function resolve(root, ref21) {
|
|
51439
51439
|
let sch;
|
|
51440
|
-
while (typeof (sch = this.refs[
|
|
51441
|
-
return sch || this.schemas[
|
|
51440
|
+
while (typeof (sch = this.refs[ref21]) == "string") ref21 = sch;
|
|
51441
|
+
return sch || this.schemas[ref21] || resolveSchema.call(this, root, ref21);
|
|
51442
51442
|
}
|
|
51443
|
-
function resolveSchema(root,
|
|
51444
|
-
const p2 = this.opts.uriResolver.parse(
|
|
51443
|
+
function resolveSchema(root, ref21) {
|
|
51444
|
+
const p2 = this.opts.uriResolver.parse(ref21);
|
|
51445
51445
|
const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p2);
|
|
51446
51446
|
let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, void 0);
|
|
51447
51447
|
if (Object.keys(root.schema).length > 0 && refPath === baseId) return getJsonPointer.call(this, p2, root);
|
|
@@ -51454,7 +51454,7 @@ var require_compile2 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
51454
51454
|
}
|
|
51455
51455
|
if (typeof (schOrRef === null || schOrRef === void 0 ? void 0 : schOrRef.schema) !== "object") return;
|
|
51456
51456
|
if (!schOrRef.validate) compileSchema.call(this, schOrRef);
|
|
51457
|
-
if (id10 === (0, resolve_1.normalizeId)(
|
|
51457
|
+
if (id10 === (0, resolve_1.normalizeId)(ref21)) {
|
|
51458
51458
|
const { schema } = schOrRef;
|
|
51459
51459
|
const { schemaId } = this.opts;
|
|
51460
51460
|
const schId = schema[schemaId];
|
|
@@ -52652,21 +52652,21 @@ var require_core$32 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
52652
52652
|
return _compileAsync.call(this, sch);
|
|
52653
52653
|
}
|
|
52654
52654
|
}
|
|
52655
|
-
function checkLoaded({ missingSchema:
|
|
52656
|
-
if (this.refs[
|
|
52655
|
+
function checkLoaded({ missingSchema: ref21, missingRef }) {
|
|
52656
|
+
if (this.refs[ref21]) throw new Error(`AnySchema ${ref21} is loaded but ${missingRef} cannot be resolved`);
|
|
52657
52657
|
}
|
|
52658
|
-
async function loadMissingSchema(
|
|
52659
|
-
const _schema = await _loadSchema.call(this,
|
|
52660
|
-
if (!this.refs[
|
|
52661
|
-
if (!this.refs[
|
|
52658
|
+
async function loadMissingSchema(ref21) {
|
|
52659
|
+
const _schema = await _loadSchema.call(this, ref21);
|
|
52660
|
+
if (!this.refs[ref21]) await loadMetaSchema.call(this, _schema.$schema);
|
|
52661
|
+
if (!this.refs[ref21]) this.addSchema(_schema, ref21, meta3);
|
|
52662
52662
|
}
|
|
52663
|
-
async function _loadSchema(
|
|
52664
|
-
const p2 = this._loading[
|
|
52663
|
+
async function _loadSchema(ref21) {
|
|
52664
|
+
const p2 = this._loading[ref21];
|
|
52665
52665
|
if (p2) return p2;
|
|
52666
52666
|
try {
|
|
52667
|
-
return await (this._loading[
|
|
52667
|
+
return await (this._loading[ref21] = loadSchema(ref21));
|
|
52668
52668
|
} finally {
|
|
52669
|
-
delete this._loading[
|
|
52669
|
+
delete this._loading[ref21];
|
|
52670
52670
|
}
|
|
52671
52671
|
}
|
|
52672
52672
|
}
|
|
@@ -54470,10 +54470,10 @@ var require_discriminator2 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
54470
54470
|
for (let i = 0; i < oneOf.length; i++) {
|
|
54471
54471
|
let sch = oneOf[i];
|
|
54472
54472
|
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
|
|
54473
|
-
const
|
|
54474
|
-
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId,
|
|
54473
|
+
const ref21 = sch.$ref;
|
|
54474
|
+
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref21);
|
|
54475
54475
|
if (sch instanceof compile_1.SchemaEnv) sch = sch.schema;
|
|
54476
|
-
if (sch === void 0) throw new ref_error_1.default(it.opts.uriResolver, it.baseId,
|
|
54476
|
+
if (sch === void 0) throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref21);
|
|
54477
54477
|
}
|
|
54478
54478
|
const propSch = (_a3 = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a3 === void 0 ? void 0 : _a3[tagName];
|
|
54479
54479
|
if (typeof propSch != "object") throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`);
|
|
@@ -54773,10 +54773,10 @@ var require_dynamicRef2 = /* @__PURE__ */ __commonJSMin2(((exports) => {
|
|
|
54773
54773
|
schemaType: "string",
|
|
54774
54774
|
code: (cxt) => dynamicRef(cxt, cxt.schema)
|
|
54775
54775
|
};
|
|
54776
|
-
function dynamicRef(cxt,
|
|
54776
|
+
function dynamicRef(cxt, ref21) {
|
|
54777
54777
|
const { gen, keyword, it } = cxt;
|
|
54778
|
-
if (
|
|
54779
|
-
const anchor2 =
|
|
54778
|
+
if (ref21[0] !== "#") throw new Error(`"${keyword}" only supports hash fragment reference`);
|
|
54779
|
+
const anchor2 = ref21.slice(1);
|
|
54780
54780
|
if (it.allErrors) _dynamicRef();
|
|
54781
54781
|
else {
|
|
54782
54782
|
const valid = gen.let("valid", false);
|
|
@@ -66962,8 +66962,419 @@ var NetsuitePreservedCheckSchema = external_exports.strictObject({
|
|
|
66962
66962
|
)
|
|
66963
66963
|
});
|
|
66964
66964
|
|
|
66965
|
+
// packages/core/src/tools/quickbooks-schema.generated.ts
|
|
66966
|
+
var QBO_TYPES = {
|
|
66967
|
+
"Account": { "fields": [["Name", "string", 0, 1], ["SubAccount", "boolean", 0, 1], ["ParentRef", "ReferenceType", 0, 1], ["Description", "string", 0, 1], ["FullyQualifiedName", "string", 0, 1], ["AccountAlias", "string", 0, 1], ["TxnLocationType", "string", 0, 1], ["Active", "boolean", 0, 1], ["Classification", "AccountClassificationEnum", 0, 1], ["AccountType", "AccountTypeEnum", 0, 1], ["AccountSubType", "string", 0, 1], ["AccountPurposes", "ReferenceType", 0, -1], ["AcctNum", "string", 0, 1], ["AcctNumExtn", "string", 0, 1], ["BankNum", "string", 0, 1], ["OpeningBalance", "decimal", 0, 1], ["OpeningBalanceDate", "date", 0, 1], ["CurrentBalance", "decimal", 0, 1], ["CurrentBalanceWithSubAccounts", "decimal", 0, 1], ["CurrencyRef", "ReferenceType", 0, 1], ["TaxAccount", "boolean", 0, 1], ["TaxCodeRef", "ReferenceType", 0, 1], ["OnlineBankingEnabled", "boolean", 0, 1], ["FIName", "string", 0, 1], ["JournalCodeRef", "ReferenceType", 0, 1], ["AccountEx", "IntuitAnyType", 0, 1]], "base": "IntuitEntity" },
|
|
66968
|
+
"AccountBasedExpenseLineDetail": { "fields": [["CustomerRef", "ReferenceType", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["AccountRef", "ReferenceType", 0, 1], ["BillableStatus", "BillableStatusEnum", 0, 1], ["MarkupInfo", "MarkupInfo", 0, 1], ["TaxAmount", "decimal", 0, 1], ["TaxCodeRef", "ReferenceType", 0, 1], ["TaxInclusiveAmt", "decimal", 0, 1], ["ExpenseDetailLineDetailEx", "IntuitAnyType", 0, 1]] },
|
|
66969
|
+
"AdvancedInventoryPrefs": { "fields": [["MLIAvailable", "boolean", 0, 1], ["MLIEnabled", "boolean", 0, 1], ["EnhancedInventoryReceivingEnabled", "boolean", 0, 1], ["TrackingSerialOrLotNumber", "boolean", 0, 1], ["TrackingOnSalesTransactionsEnabled", "boolean", 0, 1], ["TrackingOnPurchaseTransactionsEnabled", "boolean", 0, 1], ["TrackingOnInventoryAdjustmentEnabled", "boolean", 0, 1], ["TrackingOnBuildAssemblyEnabled", "boolean", 0, 1], ["FIFOEnabled", "boolean", 0, 1], ["FIFOEffectiveDate", "date", 0, 1], ["RowShelfBinEnabled", "boolean", 0, 1], ["BarcodeEnabled", "boolean", 0, 1]] },
|
|
66970
|
+
"Attachable": { "fields": [["FileName", "string", 0, 1], ["FileAccessUri", "string", 0, 1], ["TempDownloadUri", "string", 0, 1], ["Size", "long", 0, 1], ["ContentType", "string", 0, 1], ["Category", "string", 0, 1], ["Lat", "string", 0, 1], ["Long", "string", 0, 1], ["PlaceName", "string", 0, 1], ["Note", "string", 0, 1], ["Tag", "string", 0, 1], ["ThumbnailFileAccessUri", "string", 0, 1], ["ThumbnailTempDownloadUri", "string", 0, 1], ["AttachableEx", "IntuitAnyType", 0, 1], ["documentId", "string", 0, 1]], "base": "IntuitEntity" },
|
|
66971
|
+
"AttachableRef": { "fields": [["EntityRef", "ReferenceType", 0, 1], ["LineInfo", "id", 0, 1], ["IncludeOnSend", "boolean", 0, 1], ["CustomField", "CustomField", 0, -1], ["AttachableRefEx", "IntuitAnyType", 0, 1]] },
|
|
66972
|
+
"Attribute": { "fields": [["Type", "string", 1, 1], ["Value", "string", 1, 1]] },
|
|
66973
|
+
"Attributes": { "fields": [["Attribute", "Attribute", 0, -1]] },
|
|
66974
|
+
"BatchItemRequest": { "fields": [["IntuitObject", "IntuitEntity", 1, 1, "c1"], ["Query", "string", 0, 1, "c1"], ["ReportQuery", "string", 0, 1, "c1"], ["CDCQuery", "CDCQuery", 0, 1, "c1"], ["bId", "string", 0, 1, "a"], ["operation", "OperationEnum", 0, 1, "a"], ["optionsData", "string", 0, 1, "a"]] },
|
|
66975
|
+
"BatchItemResponse": { "fields": [["Warnings", "Warnings", 0, 1], ["IntuitObject", "IntuitEntity", 1, 1, "c1"], ["Fault", "Fault", 0, 1, "c1"], ["Report", "Report", 0, 1, "c1"], ["QueryResponse", "QueryResponse", 0, 1, "c1"], ["CDCResponse", "CDCResponse", 0, 1, "c1"], ["CascadeResponse", "CascadeResponse", 0, 1, "c1"], ["bId", "string", 0, 1, "a"]] },
|
|
66976
|
+
"Bill": { "fields": [["PayerRef", "ReferenceType", 0, 1], ["SalesTermRef", "ReferenceType", 0, 1], ["DueDate", "date", 0, 1], ["RemitToAddr", "PhysicalAddress", 0, 1], ["ShipAddr", "PhysicalAddress", 0, 1], ["VendorAddr", "PhysicalAddress", 0, 1], ["Balance", "decimal", 0, 1], ["HomeBalance", "decimal", 0, 1], ["BillEx", "IntuitAnyType", 0, 1], ["LessCIS", "decimal", 0, 1], ["IncludeInAnnualTPAR", "boolean", 0, 1]], "base": "PurchaseByVendor" },
|
|
66977
|
+
"BillPayment": { "fields": [["VendorRef", "ReferenceType", 0, 1], ["VendorAddr", "PhysicalAddress", 0, 1], ["APAccountRef", "ReferenceType", 0, 1], ["PayType", "BillPaymentTypeEnum", 0, 1], ["CheckPayment", "BillPaymentCheck", 0, 1, "c1"], ["CreditCardPayment", "BillPaymentCreditCard", 0, 1, "c1"], ["TotalAmt", "decimal", 0, 1], ["BillPaymentEx", "IntuitAnyType", 0, 1]], "base": "Transaction" },
|
|
66978
|
+
"BillPaymentCheck": { "fields": [["BankAccountRef", "ReferenceType", 0, 1], ["PrintStatus", "PrintStatusEnum", 0, 1], ["CheckDetail", "CheckPayment", 0, 1], ["PayeeAddr", "PhysicalAddress", 0, 1], ["BillPaymentCheckEx", "IntuitAnyType", 0, 1]] },
|
|
66979
|
+
"BillPaymentCreditCard": { "fields": [["CCAccountRef", "ReferenceType", 0, 1], ["CCDetail", "CreditCardPayment", 0, 1], ["BillPaymentCreditCardEx", "IntuitAnyType", 0, 1]] },
|
|
66980
|
+
"CDCResponse": { "fields": [["QueryResponse", "QueryResponse", 0, -1, "c1"], ["Fault", "Fault", 0, 1, "c1"], ["size", "int", 0, 1, "a"]] },
|
|
66981
|
+
"CashBackInfo": { "fields": [["AccountRef", "ReferenceType", 0, 1], ["Amount", "decimal", 0, 1], ["Memo", "string", 0, 1]] },
|
|
66982
|
+
"CheckPayment": { "fields": [["CheckNum", "string", 0, 1], ["Status", "string", 0, 1], ["NameOnAcct", "string", 0, 1], ["AcctNum", "string", 0, 1], ["BankName", "string", 0, 1], ["CheckPaymentEx", "IntuitAnyType", 1, 1]] },
|
|
66983
|
+
"Class": { "fields": [["Name", "string", 0, 1], ["SubClass", "boolean", 0, 1], ["ParentRef", "ReferenceType", 0, 1], ["FullyQualifiedName", "string", 0, 1], ["Active", "boolean", 0, 1], ["ClassEx", "IntuitAnyType", 0, 1]], "base": "IntuitEntity" },
|
|
66984
|
+
"ColData": { "fields": [["Attributes", "Attributes", 0, 1], ["value", "string", 0, 1, "a"], ["id", "string", 0, 1, "a"], ["href", "string", 0, 1, "a"]] },
|
|
66985
|
+
"Column": { "fields": [["ColTitle", "string", 1, 1], ["ColType", "string", 1, 1], ["MetaData", "NameValue", 0, -1], ["Columns", "Columns", 0, 1]] },
|
|
66986
|
+
"Columns": { "fields": [["Column", "Column", 0, -1]] },
|
|
66987
|
+
"CompanyAccountingPrefs": { "fields": [["UseAccountNumbers", "boolean", 0, 1], ["DefaultARAccount", "ReferenceType", 0, 1], ["DefaultAPAccount", "ReferenceType", 0, 1], ["RequiresAccounts", "boolean", 0, 1], ["TrackDepartments", "boolean", 0, 1], ["DepartmentTerminology", "string", 0, 1], ["ClassTrackingPerTxn", "boolean", 0, 1], ["ClassTrackingPerTxnLine", "boolean", 0, 1], ["AutoJournalEntryNumber", "boolean", 0, 1], ["FirstMonthOfFiscalYear", "MonthEnum", 0, 1], ["TaxYearMonth", "MonthEnum", 0, 1], ["TaxForm", "string", 0, 1], ["BookCloseDate", "date", 0, 1], ["OtherContactInfo", "ContactInfo", 0, -1], ["CustomerTerminology", "string", 0, 1]] },
|
|
66988
|
+
"CompanyInfo": { "fields": [["CompanyName", "string", 0, 1], ["LegalName", "string", 0, 1], ["CompanyAddr", "PhysicalAddress", 0, 1], ["CustomerCommunicationAddr", "PhysicalAddress", 0, 1], ["LegalAddr", "PhysicalAddress", 0, 1], ["CompanyEmailAddr", "EmailAddress", 0, 1], ["CustomerCommunicationEmailAddr", "EmailAddress", 0, 1], ["CompanyURL", "WebSiteAddress", 0, 1], ["PrimaryPhone", "TelephoneNumber", 0, 1], ["OtherContactInfo", "ContactInfo", 0, -1], ["CompanyFileName", "string", 0, 1], ["FlavorStratum", "string", 0, 1], ["SampleFile", "boolean", 0, 1], ["CompanyUserId", "string", 0, 1], ["CompanyUserAdminEmail", "string", 0, 1], ["CompanyStartDate", "date", 0, 1], ["EmployerId", "string", 0, 1], ["FiscalYearStartMonth", "MonthEnum", 0, 1], ["TaxYearStartMonth", "MonthEnum", 0, 1], ["QBVersion", "string", 0, 1], ["Country", "string", 0, 1], ["ShipAddr", "PhysicalAddress", 0, 1], ["OtherAddr", "PhysicalAddress", 0, -1], ["Mobile", "TelephoneNumber", 0, 1], ["Fax", "TelephoneNumber", 0, 1], ["Email", "EmailAddress", 0, 1], ["WebAddr", "WebSiteAddress", 0, 1], ["LastImportedTime", "dateTime", 0, 1], ["LastSyncTime", "dateTime", 0, 1], ["SupportedLanguages", "string", 0, 1], ["DefaultTimeZone", "string", 0, 1], ["MultiByteCharsSupported", "boolean", 0, 1], ["NameValue", "NameValue", 0, -1], ["FifoCalculationStatus", "FifoCalculationStatus", 0, 1], ["CompanyInfoEx", "IntuitAnyType", 0, 1]], "base": "IntuitEntity" },
|
|
66989
|
+
"ContactInfo": { "fields": [["Type", "ContactTypeEnum", 0, 1], ["Telephone", "TelephoneNumber", 0, 1, "c1"], ["Email", "EmailAddress", 0, 1, "c1"], ["WebSite", "WebSiteAddress", 0, 1, "c1"], ["OtherContact", "GenericContactType", 0, 1, "c1"]] },
|
|
66990
|
+
"ConvenienceFeeDetail": { "fields": [["ConvenienceFeeType", "ConvenienceFeeTypeEnum", 0, 1], ["ConvenienceFeePercent", "decimal", 0, 1]], "base": "IntuitEntity" },
|
|
66991
|
+
"CreditCardPayment": { "fields": [["CreditChargeInfo", "CreditChargeInfo", 0, 1], ["CreditChargeResponse", "CreditChargeResponse", 0, 1]] },
|
|
66992
|
+
"CreditChargeInfo": { "fields": [["Number", "string", 0, 1], ["Type", "string", 0, 1], ["NameOnAcct", "string", 0, 1], ["CcExpiryMonth", "int", 0, 1], ["CcExpiryYear", "int", 0, 1], ["BillAddrStreet", "string", 0, 1], ["PostalCode", "string", 0, 1], ["CommercialCardCode", "string", 0, 1], ["CCTxnMode", "CCTxnModeEnum", 0, 1], ["CCTxnType", "CCTxnTypeEnum", 0, 1], ["PrevCCTransId", "string", 0, 1], ["Amount", "decimal", 0, 1], ["ProcessPayment", "boolean", 0, 1], ["CreditCardChargeInfoEx", "IntuitAnyType", 0, 1]] },
|
|
66993
|
+
"CreditChargeResponse": { "fields": [["CCProcessor", "string", 0, 1], ["CCTransId", "string", 0, 1], ["Status", "CCPaymentStatusEnum", 0, 1], ["ResultCode", "int", 0, 1], ["ResultMsg", "string", 0, 1], ["MerchantAcctNum", "string", 0, 1], ["CardSecurityCodeMatch", "CCSecurityCodeMatchEnum", 0, 1], ["AuthCode", "string", 0, 1], ["AvsStreet", "CCAVSMatchEnum", 0, 1], ["AvsZip", "CCAVSMatchEnum", 0, 1], ["SecurityCode", "string", 0, 1], ["ReconBatchId", "string", 0, 1], ["PaymentGroupingCode", "int", 0, 1], ["TxnAuthorizationTime", "dateTime", 0, 1], ["TxnAuthorizationStamp", "int", 0, 1], ["ClientTransID", "string", 0, 1], ["CreditChargeResponseEx", "IntuitAnyType", 0, 1]] },
|
|
66994
|
+
"CreditMemo": { "fields": [["RemainingCredit", "decimal", 0, 1], ["InvoiceRef", "ReferenceType", 0, 1], ["CreditMemoEx", "IntuitAnyType", 0, 1]], "base": "SalesTransaction" },
|
|
66995
|
+
"CurrencyPrefs": { "fields": [["MultiCurrencyEnabled", "boolean", 0, 1], ["HomeCurrency", "ReferenceType", 0, 1]] },
|
|
66996
|
+
"CustomExtensionAssociatedValues": { "fields": [["Key", "string", 0, 1], ["Value", "string", 0, 1]] },
|
|
66997
|
+
"CustomExtensions": { "fields": [["ExtensionType", "string", 1, 1], ["AssociatedValues", "CustomExtensionAssociatedValues", 0, -1]] },
|
|
66998
|
+
"CustomField": { "fields": [["DefinitionId", "id", 0, 1], ["Name", "string", 0, 1], ["Type", "CustomFieldTypeEnum", 1, 1], ["StringValue", "string", 1, 1, "c1"], ["BooleanValue", "boolean", 1, 1, "c1"], ["DateValue", "date", 1, 1, "c1"], ["NumberValue", "decimal", 1, 1, "c1"]] },
|
|
66999
|
+
"CustomFieldDefinition": { "abstract": true, "fields": [["EntityType", "string", 0, 1], ["Name", "string", 0, 1], ["Hidden", "boolean", 0, 1], ["Required", "boolean", 0, 1], ["AppId", "string", 0, 1]], "base": "IntuitEntity" },
|
|
67000
|
+
"Customer": { "fields": [["Taxable", "boolean", 0, 1], ["BillAddr", "PhysicalAddress", 0, 1], ["ShipAddr", "PhysicalAddress", 0, 1], ["OtherAddr", "PhysicalAddress", 0, -1], ["ContactName", "string", 0, 1], ["AltContactName", "string", 0, 1], ["Notes", "string", 0, 1], ["Job", "boolean", 0, 1], ["BillWithParent", "boolean", 0, 1], ["RootCustomerRef", "ReferenceType", 0, 1], ["ParentRef", "ReferenceType", 0, 1], ["Level", "int", 0, 1], ["CustomerTypeRef", "ReferenceType", 0, 1], ["SalesTermRef", "ReferenceType", 0, 1], ["SalesRepRef", "ReferenceType", 0, 1], ["TaxGroupCodeRef", "ReferenceType", 0, 1, "c1"], ["TaxRateRef", "ReferenceType", 0, 1, "c1"], ["PaymentMethodRef", "ReferenceType", 0, 1], ["CCDetail", "CreditChargeInfo", 0, 1], ["PriceLevelRef", "ReferenceType", 0, 1], ["Balance", "decimal", 0, 1], ["OpenBalanceDate", "date", 0, 1], ["BalanceWithJobs", "decimal", 0, 1], ["CreditLimit", "decimal", 0, 1], ["AcctNum", "string", 0, 1], ["CurrencyRef", "ReferenceType", 0, 1], ["OverDueBalance", "decimal", 0, 1], ["TotalRevenue", "decimal", 0, 1], ["TotalExpense", "decimal", 0, 1], ["PreferredDeliveryMethod", "string", 0, 1], ["ResaleNum", "string", 0, 1], ["JobInfo", "JobInfo", 0, 1], ["TDSEnabled", "boolean", 0, 1], ["CustomerEx", "IntuitAnyType", 0, 1], ["SecondaryTaxIdentifier", "string", 0, 1], ["ARAccountRef", "ReferenceType", 0, 1], ["PrimaryTaxIdentifier", "string", 0, 1], ["TaxExemptionReasonId", "string", 0, 1], ["IsProject", "boolean", 0, 1], ["BusinessNumber", "string", 0, 1], ["GSTIN", "string", 0, 1], ["GSTRegistrationType", "string", 0, 1], ["IsCISContractor", "boolean", 0, 1], ["ClientCompanyId", "string", 0, 1], ["ClientEntityId", "string", 0, 1], ["Source", "string", 0, 1], ["TaxRegime", "string", 0, 1]], "base": "NameBase" },
|
|
67001
|
+
"Department": { "fields": [["Name", "string", 0, 1], ["SubDepartment", "boolean", 0, 1], ["ParentRef", "ReferenceType", 0, 1], ["FullyQualifiedName", "string", 0, 1], ["Active", "boolean", 0, 1], ["DepartmentEx", "IntuitAnyType", 0, 1], ["Address", "PhysicalAddress", 0, 1]], "base": "IntuitEntity" },
|
|
67002
|
+
"Deposit": { "fields": [["DepositToAccountRef", "ReferenceType", 0, 1], ["CashBack", "CashBackInfo", 0, 1], ["GlobalTaxCalculation", "GlobalTaxCalculationEnum", 0, 1], ["TotalAmt", "decimal", 0, 1], ["HomeTotalAmt", "decimal", 0, 1], ["DepositEx", "IntuitAnyType", 0, 1]], "base": "Transaction" },
|
|
67003
|
+
"DepositLineDetail": { "fields": [["Entity", "ReferenceType", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["AccountRef", "ReferenceType", 0, 1], ["PaymentMethodRef", "ReferenceType", 0, 1], ["CheckNum", "string", 0, 1], ["TxnType", "TxnTypeEnum", 0, 1], ["TaxCodeRef", "ReferenceType", 0, 1], ["TaxApplicableOn", "TaxApplicableOnEnum", 0, 1], ["DepositLineDetailEx", "IntuitAnyType", 0, 1]] },
|
|
67004
|
+
"DescriptionLineDetail": { "fields": [["ServiceDate", "date", 0, 1], ["TaxCodeRef", "ReferenceType", 0, 1], ["DescriptionLineDetailEx", "IntuitAnyType", 0, 1]] },
|
|
67005
|
+
"DiscountLineDetail": { "fields": [["ServiceDate", "date", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["TaxCodeRef", "ReferenceType", 0, 1], ["DiscountLineDetailEx", "IntuitAnyType", 0, 1]], "base": "DiscountOverride" },
|
|
67006
|
+
"DiscountOverride": { "fields": [["DiscountRef", "ReferenceType", 0, 1], ["PercentBased", "boolean", 0, 1], ["DiscountPercent", "decimal", 0, 1], ["DiscountAccountRef", "ReferenceType", 0, 1]] },
|
|
67007
|
+
"EffectiveTaxRate": { "fields": [["RateValue", "decimal", 0, 1], ["EffectiveDate", "dateTime", 0, 1], ["EndDate", "dateTime", 0, 1], ["EffectiveTaxRateEx", "IntuitAnyType", 0, 1]] },
|
|
67008
|
+
"EmailAddress": { "fields": [["Id", "id", 0, 1], ["Address", "string", 0, 1], ["Default", "boolean", 0, 1], ["Tag", "string", 0, 1]] },
|
|
67009
|
+
"EmailMessage": { "fields": [["Subject", "string", 0, 1], ["Message", "string", 0, 1]] },
|
|
67010
|
+
"EmailMessagesPrefs": { "fields": [["NameValue", "NameValue", 0, -1], ["InvoiceMessage", "EmailMessage", 0, 1], ["EstimateMessage", "EmailMessage", 0, 1], ["SalesReceiptMessage", "EmailMessage", 0, 1], ["StatementMessage", "EmailMessage", 0, 1]] },
|
|
67011
|
+
"Employee": { "fields": [["EmployeeType", "string", 0, 1], ["EmployeeNumber", "string", 0, 1], ["SSN", "string", 0, 1], ["PrimaryAddr", "PhysicalAddress", 0, 1], ["OtherAddr", "PhysicalAddress", 0, -1], ["BillableTime", "boolean", 0, 1], ["BillRate", "decimal", 0, 1], ["BirthDate", "date", 0, 1], ["Gender", "gender", 0, 1], ["HiredDate", "date", 0, 1], ["ReleasedDate", "date", 0, 1], ["UseTimeEntry", "TimeEntryUsedForPaychecksEnum", 0, 1], ["EmployeeEx", "IntuitAnyType", 0, 1], ["CostRate", "decimal", 0, 1], ["Notes", "string", 0, 1]], "base": "NameBase" },
|
|
67012
|
+
"EnabledSurchargeInfo": { "fields": [["Enabled", "boolean", 0, 1], ["Card", "SurchargePaymentMethodInfo", 0, 1], ["ACH", "SurchargePaymentMethodInfo", 0, 1]] },
|
|
67013
|
+
"EntityTypeRef": { "fields": [["Type", "EntityTypeEnum", 0, 1], ["EntityRef", "ReferenceType", 0, 1]] },
|
|
67014
|
+
"Error": { "fields": [["Message", "string", 0, 1], ["Detail", "string", 0, 1], ["DetailLink", "string", 0, 1], ["code", "string", 1, 1, "a"], ["element", "string", 0, 1, "a"]] },
|
|
67015
|
+
"Estimate": { "fields": [["ExpirationDate", "date", 0, 1], ["AcceptedBy", "string", 0, 1], ["AcceptedDate", "date", 0, 1], ["EstimateEx", "IntuitAnyType", 0, 1]], "base": "SalesTransaction" },
|
|
67016
|
+
"Fault": { "fields": [["Error", "Error", 0, -1], ["type", "string", 0, 1, "a"]] },
|
|
67017
|
+
"FinanceChargePrefs": { "fields": [["AnnualInterestRate", "decimal", 0, 1], ["MinFinChrg", "decimal", 0, 1], ["GracePeriod", "positiveInteger", 0, 1], ["CalcFinChrgFromTxnDate", "boolean", 0, 1], ["AssessFinChrgForOverdueCharges", "boolean", 0, 1], ["FinChrgAccountRef", "ReferenceType", 0, 1]] },
|
|
67018
|
+
"GenericContactType": { "fields": [["Id", "id", 0, 1], ["Name", "string", 0, 1], ["Value", "string", 0, 1], ["Type", "string", 0, 1], ["Default", "boolean", 0, 1], ["Tag", "string", 0, 1]] },
|
|
67019
|
+
"GroupLineDetail": { "fields": [["GroupItemRef", "ReferenceType", 1, 1], ["Quantity", "decimal", 0, 1], ["UOMRef", "UOMRef", 0, 1], ["ServiceDate", "date", 0, 1], ["Line", "Line", 0, -1], ["GroupLineDetailEx", "IntuitAnyType", 0, 1]] },
|
|
67020
|
+
"Header": { "fields": [["ColData", "ColData", 1, -1]] },
|
|
67021
|
+
"IntuitAnyType": { "fields": [["*", "anyType", 0, -1]] },
|
|
67022
|
+
"IntuitEntity": { "abstract": true, "fields": [["Id", "id", 0, 1], ["SyncToken", "string", 0, 1], ["MetaData", "ModificationMetaData", 0, 1], ["CustomField", "CustomField", 0, -1], ["AttachableRef", "AttachableRef", 0, -1], ["domain", "string", 0, 1, "a"], ["status", "EntityStatusEnum", 0, 1, "a"], ["sparse", "boolean", 0, 1, "a"]] },
|
|
67023
|
+
"IntuitResponse": { "fields": [["Warnings", "Warnings", 0, 1], ["IntuitObject", "IntuitEntity", 1, 1, "c1"], ["Fault", "Fault", 0, 1, "c1"], ["Report", "Report", 0, 1, "c1"], ["QueryResponse", "QueryResponse", 0, 1, "c1"], ["BatchItemResponse", "BatchItemResponse", 0, -1, "c1"], ["CDCResponse", "CDCResponse", 0, -1, "c1"], ["AttachableResponse", "AttachableResponse", 0, -1, "c1"], ["SyncErrorResponse", "SyncErrorResponse", 0, 1, "c1"], ["OLBTransaction", "OLBTransaction", 0, 1, "c1"], ["OLBStatus", "OLBStatus", 0, 1, "c1"], ["requestId", "string", 0, 1, "a"], ["time", "dateTime", 0, 1, "a"], ["status", "string", 0, 1, "a"]] },
|
|
67024
|
+
"Invoice": { "fields": [["Deposit", "decimal", 0, 1], ["AllowIPNPayment", "boolean", 0, 1], ["AllowOnlinePayment", "boolean", 0, 1], ["AllowOnlineCreditCardPayment", "boolean", 0, 1], ["AllowOnlineACHPayment", "boolean", 0, 1], ["AllowOnlinePayPalPayment", "boolean", 0, 1], ["AllowOnlineAffirmPayment", "boolean", 0, 1], ["EInvoiceStatus", "ETransactionStatusEnum", 0, 1], ["ECloudStatusTimeStamp", "dateTime", 0, 1], ["CfdiUse", "int", 0, 1], ["Exportation", "string", 0, 1], ["GlobalInfo", "MXGlobalInfo", 0, 1], ["invoiceStatus", "string", 0, 1], ["callToAction", "string", 0, 1], ["invoiceStatusLog", "StatusInfo", 0, -1], ["InvoiceEx", "IntuitAnyType", 0, 1], ["LessCIS", "decimal", 0, 1], ["InvoiceLink", "string", 0, 1], ["PaymentDetailsMessage", "string", 0, 1], ["ConvenienceFeeDetail", "ConvenienceFeeDetail", 0, 1], ["EnabledSurchargeInfo", "EnabledSurchargeInfo", 0, 1], ["InvoiceLinkSecurityCode", "string", 0, 1], ["InvoiceLinkExpiryDate", "date", 0, 1], ["AutoPayEligible", "boolean", 0, 1], ["SchedulePayEligible", "boolean", 0, 1], ["ScheduledPaymentId", "string", 0, 1], ["GratuityEnabled", "boolean", 0, 1], ["FinancingProductType", "FinancingProductTypeEnum", 0, 1], ["SubscriptionPaymentsSetting", "SubscriptionPaymentsSettingEnum", 0, 1], ["TxnRetainageDetail", "TxnRetainageDetail", 0, 1]], "base": "SalesTransaction" },
|
|
67025
|
+
"Item": { "fields": [["Name", "string", 0, 1], ["Sku", "string", 0, 1], ["Description", "string", 0, 1], ["Active", "boolean", 0, 1], ["SubItem", "boolean", 0, 1], ["ParentRef", "ReferenceType", 0, 1], ["Level", "int", 0, 1], ["FullyQualifiedName", "string", 0, 1], ["Taxable", "boolean", 0, 1], ["SalesTaxIncluded", "boolean", 0, 1], ["PercentBased", "boolean", 0, 1], ["UnitPrice", "decimal", 0, 1], ["RatePercent", "decimal", 0, 1], ["Type", "ItemTypeEnum", 0, 1], ["PaymentMethodRef", "ReferenceType", 0, 1], ["UOMSetRef", "ReferenceType", 0, 1], ["IncomeAccountRef", "ReferenceType", 0, 1], ["PurchaseDesc", "string", 0, 1], ["PurchaseTaxIncluded", "boolean", 0, 1], ["PurchaseCost", "decimal", 0, 1], ["ExpenseAccountRef", "ReferenceType", 0, 1], ["COGSAccountRef", "ReferenceType", 0, 1], ["AssetAccountRef", "ReferenceType", 0, 1], ["PrefVendorRef", "ReferenceType", 0, 1], ["AvgCost", "decimal", 0, 1], ["TrackQtyOnHand", "boolean", 0, 1], ["QtyOnHand", "decimal", 0, 1], ["QtyOnPurchaseOrder", "decimal", 0, 1], ["QtyOnSalesOrder", "decimal", 0, 1], ["ReorderPoint", "decimal", 0, 1], ["ManPartNum", "string", 0, 1], ["DepositToAccountRef", "ReferenceType", 0, 1], ["SalesTaxCodeRef", "ReferenceType", 0, 1], ["PurchaseTaxCodeRef", "ReferenceType", 0, 1], ["InvStartDate", "date", 0, 1], ["BuildPoint", "decimal", 0, 1], ["PrintGroupedItems", "boolean", 0, 1], ["SpecialItem", "boolean", 0, 1], ["SpecialItemType", "SpecialItemTypeEnum", 0, 1], ["ItemGroupDetail", "ItemGroupDetail", 0, 1], ["ItemAssemblyDetail", "ItemAssemblyDetail", 0, 1], ["AbatementRate", "decimal", 0, 1], ["ReverseChargeRate", "decimal", 0, 1], ["ServiceType", "string", 0, 1], ["ItemCategoryType", "string", 0, 1], ["ItemEx", "IntuitAnyType", 0, 1], ["TaxClassificationRef", "ReferenceType", 0, 1], ["UQCDisplayText", "string", 0, 1], ["UQCId", "string", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["Source", "string", 0, 1], ["DeferredRevenue", "boolean", 0, 1], ["CustomExtensions", "CustomExtensions", 0, -1]], "base": "IntuitEntity" },
|
|
67026
|
+
"ItemAdjustmentLineDetail": { "fields": [["ItemRef", "ReferenceType", 1, 1], ["SalesPrice", "decimal", 0, 1], ["QtyDiff", "decimal", 0, 1, "c1"], ["NewQty", "decimal", 0, 1, "c1"], ["ClassRef", "ReferenceType", 0, 1]] },
|
|
67027
|
+
"ItemAssemblyDetail": { "fields": [["ItemAssemblyLine", "ItemComponentLine", 0, -1]] },
|
|
67028
|
+
"ItemBasedExpenseLineDetail": { "fields": [["CustomerRef", "ReferenceType", 0, 1], ["BillableStatus", "BillableStatusEnum", 0, 1], ["TaxInclusiveAmt", "decimal", 0, 1], ["ItemBasedExpenseLineDetailEx", "IntuitAnyType", 0, 1]], "base": "ItemLineDetail" },
|
|
67029
|
+
"ItemComponentLine": { "fields": [["ItemRef", "ReferenceType", 0, 1], ["Qty", "decimal", 0, 1], ["UOMRef", "UOMRef", 0, 1]] },
|
|
67030
|
+
"ItemGroupDetail": { "fields": [["ItemGroupLine", "ItemComponentLine", 0, -1]] },
|
|
67031
|
+
"ItemLineDetail": { "abstract": true, "fields": [["ItemRef", "ReferenceType", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["UnitPrice", "decimal", 0, 1, "c1"], ["UnitCostPrice", "decimal", 0, 1, "c1"], ["RatePercent", "decimal", 0, 1, "c1"], ["PriceLevelRef", "ReferenceType", 0, 1, "c1"], ["MarkupInfo", "MarkupInfo", 0, 1], ["Qty", "decimal", 0, 1], ["UOMRef", "UOMRef", 0, 1], ["ItemAccountRef", "ReferenceType", 0, 1], ["InventorySiteRef", "ReferenceType", 0, 1], ["TaxCodeRef", "ReferenceType", 0, 1], ["TaxClassificationRef", "ReferenceType", 0, 1]] },
|
|
67032
|
+
"ItemReceiptLineDetail": { "fields": [["ItemReceiptLineDetailEx", "IntuitAnyType", 0, 1]] },
|
|
67033
|
+
"JobInfo": { "fields": [["Status", "JobStatusEnum", 0, 1], ["StartDate", "date", 0, 1], ["ProjectedEndDate", "date", 0, 1], ["EndDate", "date", 0, 1], ["Description", "string", 0, 1], ["JobTypeRef", "ReferenceType", 0, 1]] },
|
|
67034
|
+
"JournalEntry": { "fields": [["Adjustment", "boolean", 0, 1], ["HomeCurrencyAdjustment", "boolean", 0, 1], ["EnteredInHomeCurrency", "boolean", 0, 1], ["GlobalTaxCalculation", "GlobalTaxCalculationEnum", 0, 1], ["TotalAmt", "decimal", 0, 1], ["HomeTotalAmt", "decimal", 0, 1], ["JournalEntryEx", "IntuitAnyType", 0, 1]], "base": "Transaction" },
|
|
67035
|
+
"JournalEntryLineDetail": { "fields": [["PostingType", "PostingTypeEnum", 0, 1], ["Entity", "EntityTypeRef", 0, 1], ["AccountRef", "ReferenceType", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["DepartmentRef", "ReferenceType", 0, 1], ["TaxCodeRef", "ReferenceType", 0, 1], ["TaxRateRef", "ReferenceType", 0, 1], ["TaxApplicableOn", "TaxApplicableOnEnum", 0, 1], ["TaxAmount", "decimal", 0, 1], ["TaxInclusiveAmt", "decimal", 0, 1], ["BillableStatus", "BillableStatusEnum", 0, 1], ["JournalCodeRef", "ReferenceType", 0, 1], ["JournalEntryLineDetailEx", "IntuitAnyType", 0, 1]] },
|
|
67036
|
+
"Line": { "fields": [["Id", "id", 0, 1], ["LineNum", "positiveInteger", 0, 1], ["Description", "string", 0, 1], ["Amount", "decimal", 0, 1], ["Received", "decimal", 0, 1], ["LinkedTxn", "LinkedTxn", 0, -1], ["DetailType", "LineDetailTypeEnum", 0, 1], ["PaymentLineDetail", "PaymentLineDetail", 0, 1, "c1"], ["DiscountLineDetail", "DiscountLineDetail", 0, 1, "c1"], ["TaxLineDetail", "TaxLineDetail", 0, 1, "c1"], ["SalesItemLineDetail", "SalesItemLineDetail", 0, 1, "c1"], ["DescriptionLineDetail", "DescriptionLineDetail", 0, 1, "c1"], ["ItemBasedExpenseLineDetail", "ItemBasedExpenseLineDetail", 0, 1, "c1"], ["AccountBasedExpenseLineDetail", "AccountBasedExpenseLineDetail", 0, 1, "c1"], ["ReimburseLineDetail", "ReimburseLineDetail", 0, 1, "c1"], ["DepositLineDetail", "DepositLineDetail", 0, 1, "c1"], ["PurchaseOrderItemLineDetail", "PurchaseOrderItemLineDetail", 0, 1, "c1"], ["SalesOrderItemLineDetail", "SalesOrderItemLineDetail", 0, 1, "c1"], ["ItemReceiptLineDetail", "ItemReceiptLineDetail", 0, 1, "c1"], ["JournalEntryLineDetail", "JournalEntryLineDetail", 0, 1, "c1"], ["GroupLineDetail", "GroupLineDetail", 0, 1, "c1"], ["SubTotalLineDetail", "SubTotalLineDetail", 0, 1, "c1"], ["TDSLineDetail", "TDSLineDetail", 0, 1, "c1"], ["ItemAdjustmentLineDetail", "ItemAdjustmentLineDetail", 0, 1, "c1"], ["CustomField", "CustomField", 0, -1], ["LineEx", "IntuitAnyType", 0, 1], ["ProjectRef", "ReferenceType", 0, 1], ["CostAmount", "decimal", 0, 1], ["HomeCostAmount", "decimal", 0, 1], ["CustomExtensions", "CustomExtensions", 0, -1]] },
|
|
67037
|
+
"LinkedTxn": { "fields": [["TxnId", "id", 0, 1], ["TxnType", "string", 0, 1], ["TxnLineId", "id", 0, 1]] },
|
|
67038
|
+
"MXGlobalInfo": { "fields": [["Periodicity", "string", 0, 1], ["Month", "string", 0, 1], ["Year", "string", 0, 1]] },
|
|
67039
|
+
"MarkupInfo": { "fields": [["PercentBased", "boolean", 0, 1], ["Value", "decimal", 0, 1], ["Percent", "decimal", 0, 1], ["PriceLevelRef", "ReferenceType", 0, 1], ["MarkUpIncomeAccountRef", "ReferenceType", 0, 1]] },
|
|
67040
|
+
"MemoRef": { "fields": [["id", "id", 0, 1, "a"]], "simple": "string" },
|
|
67041
|
+
"ModificationMetaData": { "fields": [["CreatedByRef", "ReferenceType", 0, 1], ["CreateTime", "dateTime", 0, 1], ["LastModifiedByRef", "ReferenceType", 0, 1], ["LastUpdatedTime", "dateTime", 0, 1], ["LastChangedInQB", "dateTime", 0, 1], ["Synchronized", "boolean", 0, 1]] },
|
|
67042
|
+
"NameBase": { "fields": [["IntuitId", "string", 0, 1], ["Organization", "boolean", 0, 1], ["Title", "string", 0, 1], ["GivenName", "string", 0, 1], ["MiddleName", "string", 0, 1], ["FamilyName", "string", 0, 1], ["Suffix", "string", 0, 1], ["FullyQualifiedName", "string", 0, 1], ["CompanyName", "string", 0, 1], ["DisplayName", "string", 0, 1], ["PrintOnCheckName", "string", 0, 1], ["UserId", "string", 0, 1], ["Active", "boolean", 0, 1], ["V4IDPseudonym", "string", 0, 1], ["PrimaryPhone", "TelephoneNumber", 0, 1], ["AlternatePhone", "TelephoneNumber", 0, 1], ["Mobile", "TelephoneNumber", 0, 1], ["Fax", "TelephoneNumber", 0, 1], ["PrimaryEmailAddr", "EmailAddress", 0, 1], ["WebAddr", "WebSiteAddress", 0, 1], ["OtherContactInfo", "ContactInfo", 0, -1], ["DefaultTaxCodeRef", "ReferenceType", 0, 1]], "base": "IntuitEntity" },
|
|
67043
|
+
"NameValue": { "fields": [["Name", "string", 0, 1], ["Value", "string", 0, 1]] },
|
|
67044
|
+
"OtherPrefs": { "fields": [["NameValue", "NameValue", 0, -1]] },
|
|
67045
|
+
"Payment": { "fields": [["CustomerRef", "ReferenceType", 0, 1], ["RemitToRef", "ReferenceType", 0, 1], ["ARAccountRef", "ReferenceType", 0, 1], ["DepositToAccountRef", "ReferenceType", 0, 1], ["PaymentMethodRef", "ReferenceType", 0, 1], ["PaymentRefNum", "string", 0, 1], ["PaymentType", "PaymentTypeEnum", 0, 1], ["CheckPayment", "CheckPayment", 0, 1, "c1"], ["CreditCardPayment", "CreditCardPayment", 0, 1, "c1"], ["TotalAmt", "decimal", 0, 1], ["UnappliedAmt", "decimal", 0, 1], ["ProcessPayment", "boolean", 0, 1], ["PaymentExtendedType", "PaymentExtendedTypeEnum", 0, 1], ["PaymentEx", "IntuitAnyType", 0, 1]], "base": "Transaction" },
|
|
67046
|
+
"PaymentLineDetail": { "fields": [["ItemRef", "ReferenceType", 1, 1], ["ServiceDate", "date", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["Balance", "decimal", 0, 1], ["HomeBalance", "decimal", 0, 1], ["Discount", "DiscountOverride", 0, 1], ["PaymentLineEx", "IntuitAnyType", 0, 1]] },
|
|
67047
|
+
"PaymentMethod": { "fields": [["Name", "string", 0, 1], ["Active", "boolean", 0, 1], ["Type", "string", 0, 1], ["PaymentMethodEx", "IntuitAnyType", 0, 1]], "base": "IntuitEntity" },
|
|
67048
|
+
"PhysicalAddress": { "fields": [["Id", "id", 0, 1], ["Line1", "string", 0, 1], ["Line2", "string", 0, 1], ["Line3", "string", 0, 1], ["Line4", "string", 0, 1], ["Line5", "string", 0, 1], ["City", "string", 0, 1], ["Country", "string", 0, 1], ["CountryCode", "string", 0, 1], ["County", "string", 0, 1], ["CountrySubDivisionCode", "string", 0, 1], ["PostalCode", "string", 0, 1], ["PostalCodeSuffix", "string", 0, 1], ["Lat", "string", 0, 1], ["Long", "string", 0, 1], ["Tag", "string", 0, 1], ["Note", "string", 0, 1]] },
|
|
67049
|
+
"Preferences": { "fields": [["AccountingInfoPrefs", "CompanyAccountingPrefs", 0, 1], ["AdvancedInventoryPrefs", "AdvancedInventoryPrefs", 0, 1], ["ProductAndServicesPrefs", "ProductAndServicesPrefs", 0, 1], ["SalesFormsPrefs", "SalesFormsPrefs", 0, 1], ["EmailMessagesPrefs", "EmailMessagesPrefs", 0, 1], ["PrintDocumentPrefs", "PrintDocumentPrefs", 0, 1], ["VendorAndPurchasesPrefs", "VendorAndPurchasesPrefs", 0, 1], ["TimeTrackingPrefs", "TimeTrackingPrefs", 0, 1], ["TaxPrefs", "TaxPrefs", 0, 1], ["FinanceChargesPrefs", "FinanceChargePrefs", 0, 1], ["CurrencyPrefs", "CurrencyPrefs", 0, 1], ["ReportPrefs", "ReportPrefs", 0, 1], ["OtherPrefs", "OtherPrefs", 0, 1]], "base": "IntuitEntity" },
|
|
67050
|
+
"PrintDocumentPrefs": { "fields": [["NameValue", "NameValue", 0, -1]] },
|
|
67051
|
+
"ProductAndServicesPrefs": { "fields": [["ForSales", "boolean", 0, 1], ["ForPurchase", "boolean", 0, 1], ["InventoryAndPurchaseOrder", "boolean", 0, 1], ["QuantityWithPriceAndRate", "boolean", 0, 1], ["QuantityOnHand", "boolean", 0, 1], ["UOM", "UOMFeatureTypeEnum", 0, 1], ["RevenueRecognition", "boolean", 0, 1], ["RevenueRecognitionFrequency", "string", 0, 1]] },
|
|
67052
|
+
"Purchase": { "fields": [["AccountRef", "ReferenceType", 0, 1], ["PaymentMethodRef", "ReferenceType", 0, 1], ["PaymentRefNum", "string", 0, 1], ["PaymentType", "PaymentTypeEnum", 0, 1], ["CheckPayment", "CheckPayment", 0, 1, "c1"], ["CreditCardPayment", "CreditCardPayment", 0, 1, "c1"], ["EntityRef", "ReferenceType", 0, 1], ["Credit", "boolean", 0, 1], ["RemitToAddr", "PhysicalAddress", 0, 1], ["TotalAmt", "decimal", 0, 1], ["TxnId", "id", 0, 1], ["TxnNum", "string", 0, 1], ["Memo", "string", 0, 1], ["PrintStatus", "PrintStatusEnum", 0, 1], ["GlobalTaxCalculation", "GlobalTaxCalculationEnum", 0, 1], ["PurchaseEx", "IntuitAnyType", 0, 1], ["LessCIS", "decimal", 0, 1], ["IncludeInAnnualTPAR", "boolean", 0, 1]], "base": "Transaction" },
|
|
67053
|
+
"PurchaseByVendor": { "fields": [["VendorRef", "ReferenceType", 0, 1], ["APAccountRef", "ReferenceType", 0, 1], ["TotalAmt", "decimal", 0, 1], ["BillEmail", "EmailAddress", 0, 1], ["ReplyEmail", "EmailAddress", 0, 1], ["Memo", "string", 0, 1], ["GlobalTaxCalculation", "GlobalTaxCalculationEnum", 0, 1]], "base": "Transaction" },
|
|
67054
|
+
"PurchaseOrder": { "fields": [["TaxCodeRef", "ReferenceType", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["ReimbursableInfoRef", "ReferenceType", 0, 1], ["SalesTermRef", "ReferenceType", 0, 1], ["DueDate", "date", 0, 1], ["ExpectedDate", "date", 0, 1], ["VendorAddr", "PhysicalAddress", 0, 1], ["ShipTo", "ReferenceType", 0, 1], ["DropShipToEntity", "ReferenceType", 0, 1, "c1"], ["InventorySiteRef", "ReferenceType", 0, 1, "c1"], ["ShipAddr", "PhysicalAddress", 0, 1], ["ShipMethodRef", "ReferenceType", 0, 1], ["FOB", "string", 0, 1], ["POEmail", "EmailAddress", 0, 1], ["TemplateRef", "ReferenceType", 0, 1], ["PrintStatus", "PrintStatusEnum", 0, 1], ["EmailStatus", "EmailStatusEnum", 0, 1], ["ManuallyClosed", "boolean", 0, 1], ["POStatus", "PurchaseOrderStatusEnum", 0, 1], ["PurchaseOrderEx", "IntuitAnyType", 0, 1]], "base": "PurchaseByVendor" },
|
|
67055
|
+
"PurchaseOrderItemLineDetail": { "fields": [["ManPartNum", "string", 0, 1], ["ManuallyClosed", "boolean", 0, 1], ["OpenQty", "decimal", 0, 1], ["PurchaseOrderItemLineDetailEx", "IntuitAnyType", 0, 1]], "base": "SalesItemLineDetail" },
|
|
67056
|
+
"QueryResponse": { "fields": [["Warnings", "Warnings", 0, 1], ["IntuitObject", "IntuitEntity", 0, -1, "c1"], ["Fault", "Fault", 0, 1, "c1"], ["startPosition", "int", 0, 1, "a"], ["maxResults", "int", 0, 1, "a"], ["totalCount", "int", 0, 1, "a"]] },
|
|
67057
|
+
"RecurringInfo": { "fields": [["Name", "string", 0, 1], ["RecurType", "string", 0, 1], ["Active", "boolean", 0, 1], ["ScheduleInfo", "RecurringScheduleInfo", 0, 1]] },
|
|
67058
|
+
"RecurringScheduleInfo": { "fields": [["IntervalType", "string", 0, 1], ["NumInterval", "int", 0, 1], ["DayOfMonth", "int", 0, 1], ["DayOfWeek", "WeekEnum", 0, 1], ["WeekOfMonth", "int", 0, 1], ["MonthOfYear", "MonthEnum", 0, 1], ["RemindDays", "int", 0, 1], ["DaysBefore", "int", 0, 1], ["MaxOccurrences", "int", 0, 1], ["StartDate", "date", 0, 1], ["EndDate", "date", 0, 1], ["NextDate", "date", 0, 1], ["PreviousDate", "date", 0, 1]] },
|
|
67059
|
+
"ReferenceType": { "fields": [["name", "string", 0, 1, "a"], ["type", "string", 0, 1, "a"]], "simple": "id" },
|
|
67060
|
+
"RefundReceipt": { "fields": [["RemainingCredit", "decimal", 0, 1], ["RefundReceiptEx", "IntuitAnyType", 0, 1]], "base": "SalesTransaction" },
|
|
67061
|
+
"ReimburseLineDetail": { "fields": [], "base": "ItemLineDetail" },
|
|
67062
|
+
"Report": { "fields": [["Header", "ReportHeader", 0, 1], ["Columns", "Columns", 0, 1], ["Rows", "Rows", 0, 1]] },
|
|
67063
|
+
"ReportHeader": { "fields": [["Time", "dateTime", 0, 1], ["ReportName", "string", 0, 1], ["DateMacro", "string", 0, 1], ["ReportBasis", "ReportBasisEnum", 0, 1], ["StartPeriod", "string", 0, 1], ["EndPeriod", "string", 0, 1], ["SummarizeColumnsBy", "string", 0, 1], ["Currency", "string", 0, 1], ["Customer", "string", 0, 1], ["Vendor", "string", 0, 1], ["Employee", "string", 0, 1], ["Item", "string", 0, 1], ["Class", "string", 0, 1], ["Department", "string", 0, 1], ["Option", "NameValue", 0, -1]] },
|
|
67064
|
+
"ReportPrefs": { "fields": [["ReportBasis", "ReportBasisEnum", 0, 1], ["CalcAgingReportFromTxnDate", "boolean", 0, 1]] },
|
|
67065
|
+
"Row": { "fields": [["id", "string", 0, 1], ["parentId", "string", 0, 1], ["Header", "Header", 0, 1, "c1"], ["Rows", "Rows", 0, 1, "c1"], ["Summary", "Summary", 0, 1, "c1"], ["ColData", "ColData", 1, -1, "c1"], ["type", "RowTypeEnum", 0, 1, "a"], ["group", "string", 0, 1, "a"]] },
|
|
67066
|
+
"Rows": { "fields": [["Row", "Row", 0, -1]] },
|
|
67067
|
+
"SalesFormsPrefs": { "fields": [["UsingProgressInvoicing", "boolean", 0, 1], ["CustomField", "CustomFieldDefinition", 0, -1], ["CustomTxnNumbers", "boolean", 0, 1], ["DelayedCharges", "boolean", 0, 1], ["SalesEmailCc", "EmailAddress", 0, 1], ["SalesEmailBcc", "EmailAddress", 0, 1], ["EmailCopyToCompany", "boolean", 0, 1], ["AllowDeposit", "boolean", 0, 1], ["AllowDiscount", "boolean", 0, 1], ["DefaultDiscountAccount", "string", 0, 1], ["AllowEstimates", "boolean", 0, 1], ["EstimateMessage", "string", 0, 1], ["ETransactionEnabledStatus", "ETransactionEnabledStatusEnum", 0, 1], ["ETransactionAttachPDF", "boolean", 0, 1], ["ETransactionPaymentEnabled", "boolean", 0, 1], ["IPNSupportEnabled", "boolean", 0, 1], ["InvoiceMessage", "string", 0, 1], ["AllowServiceDate", "boolean", 0, 1], ["AllowShipping", "boolean", 0, 1], ["DefaultShippingAccount", "string", 0, 1], ["DefaultItem", "ReferenceType", 0, 1], ["DefaultTerms", "ReferenceType", 0, 1], ["DefaultDeliveryMethod", "string", 0, 1], ["AutoApplyCredit", "boolean", 0, 1], ["AutoApplyPayments", "boolean", 0, 1], ["PrintItemWithZeroAmount", "boolean", 0, 1], ["DefaultShipMethodRef", "ReferenceType", 0, 1], ["DefaultMarkup", "decimal", 0, 1], ["TrackReimbursableExpensesAsIncome", "boolean", 0, 1], ["UsingSalesOrders", "boolean", 0, 1], ["UsingPriceLevels", "boolean", 0, 1], ["DefaultFOB", "string", 0, 1], ["DefaultCustomerMessage", "string", 0, 1]] },
|
|
67068
|
+
"SalesItemLineDetail": { "fields": [["ServiceDate", "date", 0, 1], ["TaxInclusiveAmt", "decimal", 0, 1], ["DiscountRate", "decimal", 0, 1], ["DiscountAmt", "decimal", 0, 1], ["DeferredRevenue", "boolean", 0, 1], ["RetainageAmount", "decimal", 0, 1], ["SalesItemLineDetailEx", "IntuitAnyType", 0, 1]], "base": "ItemLineDetail" },
|
|
67069
|
+
"SalesOrderItemLineDetail": { "fields": [["ManuallyClosed", "boolean", 0, 1]], "base": "SalesItemLineDetail" },
|
|
67070
|
+
"SalesReceipt": { "fields": [["SalesReceiptEx", "IntuitAnyType", 0, 1], ["LessCIS", "decimal", 0, 1]], "base": "SalesTransaction" },
|
|
67071
|
+
"SalesTransaction": { "fields": [["AutoDocNumber", "boolean", 0, 1], ["CustomerRef", "ReferenceType", 0, 1], ["CustomerMemo", "MemoRef", 0, 1], ["BillAddr", "PhysicalAddress", 0, 1], ["ShipAddr", "PhysicalAddress", 0, 1], ["FreeFormAddress", "boolean", 0, 1], ["ShipFromAddr", "PhysicalAddress", 0, 1], ["RemitToRef", "ReferenceType", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["SalesTermRef", "ReferenceType", 0, 1], ["DueDate", "date", 0, 1], ["SalesRepRef", "ReferenceType", 0, 1], ["PONumber", "string", 0, 1], ["FOB", "string", 0, 1], ["ShipMethodRef", "ReferenceType", 0, 1], ["ShipDate", "date", 0, 1], ["TrackingNum", "string", 0, 1], ["GlobalTaxCalculation", "GlobalTaxCalculationEnum", 0, 1], ["TotalAmt", "decimal", 0, 1], ["HomeTotalAmt", "decimal", 0, 1], ["ApplyTaxAfterDiscount", "boolean", 0, 1], ["ShippingTaxIncludedInTotalTax", "boolean", 0, 1], ["TemplateRef", "ReferenceType", 0, 1], ["PrintStatus", "PrintStatusEnum", 0, 1], ["EmailStatus", "EmailStatusEnum", 0, 1], ["BillEmail", "EmailAddress", 0, 1], ["BillEmailCc", "EmailAddress", 0, 1], ["BillEmailBcc", "EmailAddress", 0, 1], ["ARAccountRef", "ReferenceType", 0, 1], ["Balance", "decimal", 0, 1], ["HomeBalance", "decimal", 0, 1], ["FinanceCharge", "boolean", 0, 1], ["PaymentMethodRef", "ReferenceType", 0, 1], ["PaymentRefNum", "string", 0, 1], ["PaymentType", "PaymentTypeEnum", 0, 1], ["CheckPayment", "CheckPayment", 0, 1, "c1"], ["CreditCardPayment", "CreditCardPayment", 0, 1, "c1"], ["DepositToAccountRef", "ReferenceType", 0, 1], ["DeliveryInfo", "TransactionDeliveryInfo", 0, 1], ["DiscountRate", "decimal", 0, 1], ["DiscountAmt", "decimal", 0, 1], ["GovtTxnRefIdentifier", "string", 0, 1], ["TaxExemptionRef", "ReferenceType", 0, 1]], "base": "Transaction" },
|
|
67072
|
+
"StatusInfo": { "fields": [["status", "string", 0, 1], ["statusDate", "date", 0, 1], ["callToAction", "string", 0, 1]] },
|
|
67073
|
+
"SubTotalLineDetail": { "fields": [["ItemRef", "ReferenceType", 0, 1], ["ServiceDate", "date", 0, 1]] },
|
|
67074
|
+
"Summary": { "fields": [["ColData", "ColData", 1, -1]] },
|
|
67075
|
+
"SurchargePaymentMethodInfo": { "fields": [["Enabled", "boolean", 0, 1]] },
|
|
67076
|
+
"TDSLineDetail": { "fields": [["TDSAccountRef", "ReferenceType", 0, 1], ["TDSSectionTypeId", "int", 0, 1], ["TDSLineDetailEx", "IntuitAnyType", 0, 1]] },
|
|
67077
|
+
"Tag": { "fields": [["Name", "string", 0, 1]], "base": "IntuitEntity" },
|
|
67078
|
+
"TaxCode": { "fields": [["Name", "string", 0, 1], ["Description", "string", 0, 1], ["Active", "boolean", 0, 1], ["Hidden", "boolean", 0, 1], ["Taxable", "boolean", 0, 1], ["TaxGroup", "boolean", 0, 1], ["SalesTaxRateList", "TaxRateList", 0, 1], ["PurchaseTaxRateList", "TaxRateList", 0, 1], ["AdjustmentTaxRateList", "TaxRateList", 0, 1], ["TaxCodeEx", "IntuitAnyType", 0, 1], ["TaxCodeConfigType", "GTMConfigTypeEnum", 0, 1]], "base": "IntuitEntity" },
|
|
67079
|
+
"TaxLineDetail": { "fields": [["TaxRateRef", "ReferenceType", 0, 1], ["PercentBased", "boolean", 0, 1], ["TaxPercent", "decimal", 0, 1], ["NetAmountTaxable", "decimal", 0, 1], ["TaxInclusiveAmount", "decimal", 0, 1], ["OverrideDeltaAmount", "decimal", 0, 1], ["ServiceDate", "date", 0, 1], ["TaxLineDetailEx", "IntuitAnyType", 0, 1]] },
|
|
67080
|
+
"TaxPrefs": { "fields": [["UsingSalesTax", "boolean", 0, 1], ["PartnerTaxEnabled", "boolean", 0, 1], ["HideTaxManagement", "boolean", 0, 1], ["TaxGroupCodeRef", "ReferenceType", 0, 1, "c1"], ["TaxRateRef", "ReferenceType", 0, 1, "c1"], ["PaySalesTax", "PaySalesTaxEnum", 0, 1], ["NonTaxableSalesTaxCodeRef", "ReferenceType", 0, 1], ["TaxableSalesTaxCodeRef", "ReferenceType", 0, 1]] },
|
|
67081
|
+
"TaxRate": { "fields": [["Name", "string", 0, 1], ["Description", "string", 0, 1], ["Active", "boolean", 0, 1], ["RateValue", "decimal", 0, 1], ["AgencyRef", "ReferenceType", 0, 1], ["TaxReturnLineRef", "ReferenceType", 0, 1], ["EffectiveTaxRate", "EffectiveTaxRate", 0, -1], ["SpecialTaxType", "SpecialTaxTypeEnum", 0, 1], ["DisplayType", "TaxRateDisplayTypeEnum", 0, 1], ["TaxRateEx", "IntuitAnyType", 0, 1], ["OriginalTaxRate", "ReferenceType", 0, 1]], "base": "IntuitEntity" },
|
|
67082
|
+
"TaxRateDetail": { "fields": [["TaxRateRef", "ReferenceType", 0, 1], ["TaxTypeApplicable", "TaxTypeApplicablityEnum", 0, 1], ["TaxOrder", "int", 0, 1], ["TaxOnTaxOrder", "int", 0, 1]] },
|
|
67083
|
+
"TaxRateList": { "fields": [["TaxRateDetail", "TaxRateDetail", 0, -1], ["originatingGroupId", "string", 0, 1, "a"]] },
|
|
67084
|
+
"TelephoneNumber": { "fields": [["Id", "id", 0, 1], ["DeviceType", "string", 0, 1], ["CountryCode", "string", 0, 1], ["AreaCode", "string", 0, 1], ["ExchangeCode", "string", 0, 1], ["Extension", "string", 0, 1], ["FreeFormNumber", "string", 0, 1], ["Default", "boolean", 0, 1], ["Tag", "string", 0, 1]] },
|
|
67085
|
+
"Term": { "fields": [["Name", "string", 0, 1], ["Active", "boolean", 0, 1], ["Type", "string", 0, 1], ["DiscountPercent", "decimal", 0, 1], ["DueDays", "int", 0, 1, "c1"], ["DiscountDays", "int", 0, 1, "c1"], ["DayOfMonthDue", "positiveInteger", 0, 1, "c1"], ["DueNextMonthDays", "positiveInteger", 0, 1, "c1"], ["DiscountDayOfMonth", "positiveInteger", 0, 1, "c1"], ["SalesTermEx", "IntuitAnyType", 0, 1]], "base": "IntuitEntity" },
|
|
67086
|
+
"TimeTrackingPrefs": { "fields": [["UseServices", "boolean", 0, 1], ["DefaultTimeItem", "ReferenceType", 0, 1], ["BillCustomers", "boolean", 0, 1], ["ShowBillRateToAll", "boolean", 0, 1], ["WorkWeekStartDate", "WeekEnum", 0, 1], ["TimeTrackingEnabled", "boolean", 0, 1], ["MarkTimeEntriesBillable", "boolean", 0, 1], ["MarkExpensesAsBillable", "boolean", 0, 1]] },
|
|
67087
|
+
"Transaction": { "fields": [["DocNumber", "string", 0, 1], ["TxnDate", "date", 0, 1], ["TxnSubType", "TxnSubTypeEnum", 0, 1], ["DepartmentRef", "ReferenceType", 0, 1], ["CurrencyRef", "ReferenceType", 0, 1], ["ExchangeRate", "decimal", 0, 1], ["PrivateNote", "string", 0, 1], ["TxnStatus", "string", 0, 1], ["LinkedTxn", "LinkedTxn", 0, -1], ["Line", "Line", 0, -1], ["TxnTaxDetail", "TxnTaxDetail", 0, 1], ["TxnSource", "string", 0, 1], ["TaxFormType", "string", 0, 1], ["TaxFormNum", "string", 0, 1], ["TransactionLocationType", "string", 0, 1], ["Tag", "Tag", 0, -1], ["TxnApprovalInfo", "TxnApprovalInfo", 0, 1], ["RecurDataRef", "ReferenceType", 0, 1], ["RecurringInfo", "RecurringInfo", 0, 1], ["ProjectRef", "ReferenceType", 0, 1], ["TotalCostAmount", "decimal", 0, 1], ["HomeTotalCostAmount", "decimal", 0, 1]], "base": "IntuitEntity" },
|
|
67088
|
+
"TransactionDeliveryInfo": { "fields": [["DeliveryType", "DeliveryTypeEnum", 0, 1], ["DeliveryTime", "dateTime", 0, 1], ["DeliveryErrorType", "DeliveryErrorTypeEnum", 0, 1]] },
|
|
67089
|
+
"Transfer": { "fields": [["FromAccountRef", "ReferenceType", 0, 1], ["ToAccountRef", "ReferenceType", 0, 1], ["Amount", "decimal", 0, 1], ["ClassRef", "ReferenceType", 0, 1], ["TransferEx", "IntuitAnyType", 1, 1]], "base": "Transaction" },
|
|
67090
|
+
"TxnApprovalInfo": { "fields": [["ApprovalStatus", "string", 0, 1], ["ApprovalStatusDetail", "string", 0, 1], ["LastChangedByUser", "string", 0, 1], ["LastChangedDate", "dateTime", 0, 1]] },
|
|
67091
|
+
"TxnRetainageDetail": { "fields": [["RetainageAmount", "decimal", 0, 1], ["RetainageOpenBalance", "decimal", 0, 1]] },
|
|
67092
|
+
"TxnTaxDetail": { "fields": [["DefaultTaxCodeRef", "ReferenceType", 0, 1], ["TxnTaxCodeRef", "ReferenceType", 0, 1], ["TotalTax", "decimal", 0, 1], ["TaxReviewStatus", "TaxReviewStatusEnum", 0, 1], ["TaxLine", "Line", 0, -1], ["UseAutomatedSalesTax", "boolean", 0, 1]] },
|
|
67093
|
+
"UOMRef": { "fields": [["Unit", "string", 1, 1], ["UOMSetRef", "ReferenceType", 1, 1]] },
|
|
67094
|
+
"Vendor": { "fields": [["ContactName", "string", 0, 1], ["AltContactName", "string", 0, 1], ["Notes", "string", 0, 1], ["BillAddr", "PhysicalAddress", 0, 1], ["ShipAddr", "PhysicalAddress", 0, 1], ["OtherAddr", "PhysicalAddress", 0, -1], ["TaxCountry", "string", 0, 1], ["TaxIdentifier", "string", 0, 1], ["TaxIdEffectiveDate", "date", 0, 1], ["BusinessNumber", "string", 0, 1], ["ParentRef", "ReferenceType", 0, 1], ["VendorTypeRef", "ReferenceType", 0, 1], ["TermRef", "ReferenceType", 0, 1], ["PrefillAccountRef", "ReferenceType", 0, 1], ["Balance", "decimal", 0, 1], ["BillRate", "decimal", 0, 1], ["OpenBalanceDate", "date", 0, 1], ["CreditLimit", "decimal", 0, 1], ["AcctNum", "string", 0, 1], ["Vendor1099", "boolean", 0, 1], ["T4AEligible", "boolean", 0, 1], ["T5018Eligible", "boolean", 0, 1], ["CurrencyRef", "ReferenceType", 0, 1], ["TDSEnabled", "boolean", 0, 1], ["TDSEntityTypeId", "int", 0, 1], ["TDSSectionTypeId", "int", 0, 1], ["TDSOverrideThreshold", "boolean", 0, 1], ["TaxReportingBasis", "string", 0, 1], ["APAccountRef", "ReferenceType", 0, 1], ["VendorEx", "IntuitAnyType", 0, 1], ["GSTIN", "string", 0, 1], ["GSTRegistrationType", "string", 0, 1], ["IsSubContractor", "boolean", 0, 1], ["SubcontractorType", "string", 0, 1], ["CISRate", "string", 0, 1], ["HasTPAR", "boolean", 0, 1], ["VendorPaymentBankDetail", "VendorBankAccountDetail", 0, 1], ["Source", "string", 0, 1], ["CostRate", "decimal", 0, 1], ["AgencyVerificationStatus", "AgencyVerificationStatus", 0, 1], ["AgencyVerificationStatusMsg", "string", 0, 1], ["AgencyVerificationTSUTC", "dateTime", 0, 1], ["CompanyRegistrationNumber", "string", 0, 1]], "base": "NameBase" },
|
|
67095
|
+
"VendorAndPurchasesPrefs": { "fields": [["EnableBills", "boolean", 0, 1], ["TrackingByCustomer", "boolean", 0, 1], ["BillableExpenseTracking", "boolean", 0, 1], ["DefaultTerms", "ReferenceType", 0, 1], ["DefaultMarkup", "decimal", 0, 1], ["DefaultMarkupAccount", "ReferenceType", 0, 1], ["AutomaticBillPayment", "boolean", 0, 1], ["TPAREnabled", "boolean", 0, 1], ["POCustomField", "CustomFieldDefinition", 0, -1], ["MsgToVendors", "string", 0, 1], ["UsingInventory", "boolean", 0, 1], ["UsingMultiLocationInventory", "boolean", 0, 1], ["DaysBillsAreDue", "int", 0, 1], ["DiscountAccountRef", "ReferenceType", 0, 1]] },
|
|
67096
|
+
"VendorBankAccountDetail": { "fields": [["BankBranchIdentifier", "string", 0, 1], ["BankAccountNumber", "string", 0, 1], ["BankAccountName", "string", 0, 1], ["StatementText", "string", 0, 1]] },
|
|
67097
|
+
"VendorCredit": { "fields": [["VendorAddr", "PhysicalAddress", 0, 1], ["VendorCreditEx", "IntuitAnyType", 0, 1], ["Balance", "decimal", 0, 1], ["IncludeInAnnualTPAR", "boolean", 0, 1]], "base": "PurchaseByVendor" },
|
|
67098
|
+
"WebSiteAddress": { "fields": [["Id", "id", 0, 1], ["URI", "anyURI", 0, 1], ["Default", "boolean", 0, 1], ["Tag", "string", 0, 1]] }
|
|
67099
|
+
};
|
|
67100
|
+
var QBO_ENUMS = {
|
|
67101
|
+
"AccountClassificationEnum": ["Asset", "Equity", "Expense", "Liability", "Revenue"],
|
|
67102
|
+
"AccountTypeEnum": ["Bank", "Accounts Receivable", "Other Current Asset", "Fixed Asset", "Other Asset", "Accounts Payable", "Credit Card", "Other Current Liability", "Long Term Liability", "Equity", "Income", "Cost of Goods Sold", "Expense", "Other Income", "Other Expense", "Non-Posting"],
|
|
67103
|
+
"AgencyVerificationStatus": ["MATCHED", "UNMATCHED", "PENDING", "FAILED"],
|
|
67104
|
+
"BillPaymentTypeEnum": ["Check", "CreditCard"],
|
|
67105
|
+
"BillableStatusEnum": ["Billable", "NotBillable", "HasBeenBilled"],
|
|
67106
|
+
"CCAVSMatchEnum": ["Fail", "NotAvailable", "Pass"],
|
|
67107
|
+
"CCPaymentStatusEnum": ["Completed", "Voided", "Unknown"],
|
|
67108
|
+
"CCSecurityCodeMatchEnum": ["Fail", "NotAvailable", "Pass"],
|
|
67109
|
+
"CCTxnModeEnum": ["CardNotPresent", "CardPresent"],
|
|
67110
|
+
"CCTxnTypeEnum": ["Authorization", "Capture", "Charge", "Refund", "VoiceAuthorization"],
|
|
67111
|
+
"ContactTypeEnum": ["TelephoneNumber", "EmailAddress", "WebSiteAddress", "GenericContactType"],
|
|
67112
|
+
"ConvenienceFeeTypeEnum": ["MANUAL", "AUTO", "PAID", "DISABLED"],
|
|
67113
|
+
"CustomFieldTypeEnum": ["StringType", "BooleanType", "NumberType", "DateType"],
|
|
67114
|
+
"DeliveryErrorTypeEnum": ["Missing Info", "Undeliverable", "Delivery Server Down", "Bounced Email"],
|
|
67115
|
+
"DeliveryTypeEnum": ["Email", "Tradeshift"],
|
|
67116
|
+
"ETransactionEnabledStatusEnum": ["Enabled", "NotApplicable"],
|
|
67117
|
+
"ETransactionStatusEnum": ["Sent", "Viewed", "Paid", "Delivery Error", "Updated", "Error", "Accepted", "Rejected", "Sent With ICN Error", "Delivered", "Disputed"],
|
|
67118
|
+
"EmailStatusEnum": ["NotSet", "NeedToSend", "EmailSent"],
|
|
67119
|
+
"EntityStatusEnum": ["Deleted", "Voided", "Draft", "Pending", "InTransit", "Synchronized", "SyncError"],
|
|
67120
|
+
"EntityTypeEnum": ["Customer", "Employee", "Job", "Other", "Vendor"],
|
|
67121
|
+
"FifoCalculationStatus": ["None", "InProgress", "Completed", "Error"],
|
|
67122
|
+
"FinancingProductTypeEnum": ["GET_PAID_UPFRONT"],
|
|
67123
|
+
"GTMConfigTypeEnum": ["SYSTEM_GENERATED", "USER_DEFINED", "SCRA_DEFINED", "HIDDEN_AGENCY"],
|
|
67124
|
+
"GlobalTaxCalculationEnum": ["TaxInclusive", "TaxExcluded", "NotApplicable"],
|
|
67125
|
+
"ItemTypeEnum": ["Assembly", "Category", "Fixed Asset", "Group", "Inventory", "NonInventory", "Other Charge", "Payment", "Service", "Subtotal", "Discount", "Tax", "Tax Group", "Bundle"],
|
|
67126
|
+
"JobStatusEnum": ["Awarded", "Closed", "InProgress", "None", "NotAwarded", "Pending"],
|
|
67127
|
+
"LineDetailTypeEnum": ["PaymentLineDetail", "DiscountLineDetail", "TaxLineDetail", "SalesItemLineDetail", "ItemBasedExpenseLineDetail", "AccountBasedExpenseLineDetail", "DepositLineDetail", "PurchaseOrderItemLineDetail", "ItemReceiptLineDetail", "JournalEntryLineDetail", "GroupLineDetail", "DescriptionOnly", "SubTotalLineDetail", "SalesOrderItemLineDetail", "TDSLineDetail", "ReimburseLineDetail", "ItemAdjustmentLineDetail"],
|
|
67128
|
+
"MonthEnum": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
67129
|
+
"OperationEnum": ["create", "update", "revert", "delete", "void", "send", "merge"],
|
|
67130
|
+
"PaySalesTaxEnum": ["Annually", "Monthly", "Quarterly"],
|
|
67131
|
+
"PaymentExtendedTypeEnum": ["Prepayment"],
|
|
67132
|
+
"PaymentTypeEnum": ["Cash", "Check", "CreditCard", "Expense", "Other"],
|
|
67133
|
+
"PostingTypeEnum": ["Credit", "Debit"],
|
|
67134
|
+
"PrintStatusEnum": ["NotSet", "NeedToPrint", "PrintComplete"],
|
|
67135
|
+
"PurchaseOrderStatusEnum": ["Open", "Closed"],
|
|
67136
|
+
"ReportBasisEnum": ["Accrual", "Cash"],
|
|
67137
|
+
"RowTypeEnum": ["Section", "Data"],
|
|
67138
|
+
"SpecialItemTypeEnum": ["FinanceCharge", "ReimbursableExpenseGroup", "ReimbursableExpenseSubtotal"],
|
|
67139
|
+
"SpecialTaxTypeEnum": ["NONE", "ZERO_RATE", "FOREIGN_TAX", "REVERSE_CHARGE", "ADJUSTMENT_RATE"],
|
|
67140
|
+
"SubscriptionPaymentsSettingEnum": ["SALE_TERM"],
|
|
67141
|
+
"TaxApplicableOnEnum": ["Purchase", "Sales"],
|
|
67142
|
+
"TaxRateDisplayTypeEnum": ["ReadOnly", "HideInTransactionForms", "HideInPrintedForms", "HideInAll"],
|
|
67143
|
+
"TaxReviewStatusEnum": ["NON_AST_TAX", "AST_TAX_OVERRIDE"],
|
|
67144
|
+
"TaxTypeApplicablityEnum": ["TaxOnAmount", "TaxOnAmountPlusTax", "TaxOnTax"],
|
|
67145
|
+
"TimeEntryUsedForPaychecksEnum": ["NotSet", "DoNotUseTimeEntry", "UseTimeEntry"],
|
|
67146
|
+
"TxnSubTypeEnum": ["InvoiceTax", "InvoiceRetail", "JournalTaxAdjustment", "ProjectCostEstimate", "EmployeeReimbursableExpense", "EmployeeReimbursableExpensePayment", "RetainageRelease"],
|
|
67147
|
+
"TxnTypeEnum": ["APCreditCard", "ARRefundCreditCard", "Bill", "BillPaymentCheck", "BuildAssembly", "CarryOver", "CashPurchase", "Charge", "Check", "CreditCardPayment", "CreditMemo", "Deposit", "EFPLiabilityCheck", "EFTBillPayment", "EFTRefund", "Estimate", "InventoryAdjustment", "InventoryTransfer", "Invoice", "ItemReceipt", "JournalEntry", "LiabilityAdjustment", "Paycheck", "PayrollLiabilityCheck", "PurchaseOrder", "PriorPayment", "ReceivePayment", "RefundCheck", "ReimburseCharge", "SalesOrder", "SalesReceipt", "SalesTaxPaymentCheck", "Transfer", "TimeActivity", "VendorCredit", "VendorPrepayment", "YTDAdjustment"],
|
|
67148
|
+
"UOMFeatureTypeEnum": ["Disabled", "SinglePerItem", "MultiplePerItem"],
|
|
67149
|
+
"WeekEnum": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
67150
|
+
"gender": ["Male", "Female"]
|
|
67151
|
+
};
|
|
67152
|
+
var QBO_MAX_LENGTH = {};
|
|
67153
|
+
|
|
67154
|
+
// packages/core/src/tools/quickbooks.ts
|
|
67155
|
+
var QUICKBOOKS_ENTITIES = [
|
|
67156
|
+
"Account",
|
|
67157
|
+
"Customer",
|
|
67158
|
+
"Vendor",
|
|
67159
|
+
"Employee",
|
|
67160
|
+
"Item",
|
|
67161
|
+
"Class",
|
|
67162
|
+
"Department",
|
|
67163
|
+
"Term",
|
|
67164
|
+
"PaymentMethod",
|
|
67165
|
+
"TaxCode",
|
|
67166
|
+
"TaxRate",
|
|
67167
|
+
"CompanyInfo",
|
|
67168
|
+
"Preferences",
|
|
67169
|
+
"Invoice",
|
|
67170
|
+
"Estimate",
|
|
67171
|
+
"SalesReceipt",
|
|
67172
|
+
"CreditMemo",
|
|
67173
|
+
"RefundReceipt",
|
|
67174
|
+
"Payment",
|
|
67175
|
+
"Bill",
|
|
67176
|
+
"BillPayment",
|
|
67177
|
+
"VendorCredit",
|
|
67178
|
+
"Purchase",
|
|
67179
|
+
"PurchaseOrder",
|
|
67180
|
+
"Deposit",
|
|
67181
|
+
"Transfer",
|
|
67182
|
+
"JournalEntry"
|
|
67183
|
+
];
|
|
67184
|
+
function quickbooksFields(type) {
|
|
67185
|
+
const t = QBO_TYPES[type];
|
|
67186
|
+
return t ? [...t.base ? quickbooksFields(t.base) : [], ...t.fields] : [];
|
|
67187
|
+
}
|
|
67188
|
+
function quickbooksIssues(type, value2, seed2 = false, path2 = []) {
|
|
67189
|
+
const issues = [], fail = (p2, detail, code2 = 2010) => issues.push({ code: code2, path: p2, detail });
|
|
67190
|
+
const t = QBO_TYPES[type];
|
|
67191
|
+
if (!t) {
|
|
67192
|
+
const strings = ["string", "id", "date", "dateTime", "time", "duration", "anyURI", "base64Binary"];
|
|
67193
|
+
if (QBO_ENUMS[type]) {
|
|
67194
|
+
if (typeof value2 !== "string" || !QBO_ENUMS[type].includes(value2)) fail(path2, `${path2.join(".")} must be a ${type} value.`);
|
|
67195
|
+
} else if (type === "boolean") {
|
|
67196
|
+
if (typeof value2 !== "boolean") fail(path2, `${path2.join(".")} must be boolean.`);
|
|
67197
|
+
} else if (strings.includes(type)) {
|
|
67198
|
+
if (typeof value2 !== "string") fail(path2, `${path2.join(".")} must be a string.`);
|
|
67199
|
+
else if (type === "date" && !(seed2 && /^[+-]\d+d$/.test(value2)) && (!/^\d{4}-\d{2}-\d{2}$/.test(value2) || Number.isNaN(Date.parse(value2)) || new Date(value2).toISOString().slice(0, 10) !== value2)) fail(path2, `${path2.join(".")} must be a calendar date.`);
|
|
67200
|
+
else if (type === "dateTime" && Number.isNaN(Date.parse(value2))) fail(path2, `${path2.join(".")} must be a datetime.`);
|
|
67201
|
+
} else if (type !== "anyType" && (typeof value2 !== "number" || !Number.isFinite(value2) || type !== "decimal" && type !== "double" && type !== "float" && !Number.isInteger(value2))) fail(path2, `${path2.join(".")} has the wrong JSON type.`);
|
|
67202
|
+
if (typeof value2 === "number" && (type === "positiveInteger" && value2 <= 0 || type === "nonNegativeInteger" && value2 < 0)) fail(path2, `${path2.join(".")} is outside the ${type} range.`);
|
|
67203
|
+
const max = QBO_MAX_LENGTH[type];
|
|
67204
|
+
if (max && typeof value2 === "string" && value2.length > max) fail(path2, `${path2.join(".")} exceeds ${max} characters.`, 2050);
|
|
67205
|
+
return issues;
|
|
67206
|
+
}
|
|
67207
|
+
if (!value2 || typeof value2 !== "object" || Array.isArray(value2)) {
|
|
67208
|
+
fail(path2, `${path2.join(".")} must be an object.`);
|
|
67209
|
+
return issues;
|
|
67210
|
+
}
|
|
67211
|
+
const row = value2, fields3 = quickbooksFields(type), choices = /* @__PURE__ */ new Map();
|
|
67212
|
+
for (const [key2, v] of Object.entries(row)) {
|
|
67213
|
+
if (key2 === "value" && t.simple) {
|
|
67214
|
+
issues.push(...quickbooksIssues(t.simple, v, seed2, [...path2, key2]));
|
|
67215
|
+
continue;
|
|
67216
|
+
}
|
|
67217
|
+
const f = fields3.find((f2) => f2[0] === key2);
|
|
67218
|
+
if (!f) {
|
|
67219
|
+
fail([...path2, key2], `${type}.${key2} is not a schema property.`);
|
|
67220
|
+
continue;
|
|
67221
|
+
}
|
|
67222
|
+
const [, child, , max, flags] = f;
|
|
67223
|
+
if (flags?.startsWith("c")) {
|
|
67224
|
+
if (choices.has(flags)) fail([...path2, key2], `${key2} cannot accompany ${choices.get(flags)}.`);
|
|
67225
|
+
choices.set(flags, key2);
|
|
67226
|
+
}
|
|
67227
|
+
const p2 = [...path2, key2];
|
|
67228
|
+
if (max !== 1) {
|
|
67229
|
+
if (!Array.isArray(v)) fail(p2, `${key2} must be an array.`);
|
|
67230
|
+
else v.forEach((item2, i) => issues.push(...quickbooksIssues(child, item2, seed2, [...p2, i])));
|
|
67231
|
+
} else issues.push(...quickbooksIssues(child, v, seed2, p2));
|
|
67232
|
+
const limit = key2 === "DocNumber" ? 21 : key2 === "DisplayName" ? 500 : QBO_MAX_LENGTH[`${type}.${key2}`];
|
|
67233
|
+
if (limit && typeof v === "string" && v.length > limit) fail(p2, `${key2} exceeds ${limit} characters.`, 2050);
|
|
67234
|
+
if (type === "Line" && key2.endsWith("LineDetail") && key2 !== row.DetailType) fail(p2, `${key2} must match DetailType.`);
|
|
67235
|
+
}
|
|
67236
|
+
if (type === "Line" && row.DetailType && row[row.DetailType] === void 0) fail([...path2, row.DetailType], `${row.DetailType} is required for DetailType.`, 2020);
|
|
67237
|
+
if (t.simple && row.value === void 0) fail([...path2, "value"], `${type}.value is required.`, 2020);
|
|
67238
|
+
return issues;
|
|
67239
|
+
}
|
|
67240
|
+
function quickbooksRequiredIssues(type, row) {
|
|
67241
|
+
const missing = [], need = (...keys) => {
|
|
67242
|
+
for (const key2 of keys) if (row[key2] === void 0 || typeof row[key2] === "string" && !row[key2].trim() || Array.isArray(row[key2]) && !row[key2].length) missing.push(key2);
|
|
67243
|
+
};
|
|
67244
|
+
if (["Customer", "Vendor", "Employee"].includes(type) && !["DisplayName", "GivenName", "MiddleName", "FamilyName"].some((k) => typeof row[k] === "string" && row[k].trim())) missing.push("DisplayName");
|
|
67245
|
+
if (["Account", "Item", "Class", "Department", "Term", "PaymentMethod", "TaxCode", "TaxRate"].includes(type)) need("Name");
|
|
67246
|
+
if (type === "Account" && !row.AccountType && !row.AccountSubType) missing.push("AccountType");
|
|
67247
|
+
if (type === "Item") {
|
|
67248
|
+
need("Type");
|
|
67249
|
+
if (["Service", "NonInventory"].includes(row.Type)) need("IncomeAccountRef");
|
|
67250
|
+
if (row.Type === "NonInventory") need("ExpenseAccountRef");
|
|
67251
|
+
}
|
|
67252
|
+
if (["Invoice", "Estimate", "SalesReceipt", "CreditMemo", "RefundReceipt"].includes(type)) need("CustomerRef", "Line");
|
|
67253
|
+
if (["Bill", "VendorCredit", "PurchaseOrder"].includes(type)) need("VendorRef", "Line");
|
|
67254
|
+
if (["JournalEntry", "Purchase", "Deposit"].includes(type)) need("Line");
|
|
67255
|
+
if (type === "Payment") need("TotalAmt", "CustomerRef");
|
|
67256
|
+
if (type === "BillPayment") {
|
|
67257
|
+
need("VendorRef", "PayType", "TotalAmt");
|
|
67258
|
+
if (row.PayType === "Check") need("CheckPayment");
|
|
67259
|
+
if (row.PayType === "CreditCard") need("CreditCardPayment");
|
|
67260
|
+
}
|
|
67261
|
+
if (type === "Transfer") need("FromAccountRef", "ToAccountRef", "Amount");
|
|
67262
|
+
const issues = missing.map((key2) => ({ code: 2020, path: [key2], detail: `${key2} is required.` }));
|
|
67263
|
+
for (const [i, line2] of (Array.isArray(row.Line) ? row.Line : []).entries()) if (line2 && typeof line2 === "object") {
|
|
67264
|
+
if (!["DescriptionLineDetail", "SubTotalLineDetail"].includes(line2.DetailType) && line2.Amount === void 0) issues.push({ code: 2020, path: ["Line", i, "Amount"], detail: "Amount is required on a detail line." });
|
|
67265
|
+
}
|
|
67266
|
+
return issues;
|
|
67267
|
+
}
|
|
67268
|
+
var native2 = (type) => external_exports.record(external_exports.string(), external_exports.unknown()).superRefine((row, ctx) => {
|
|
67269
|
+
for (const issue2 of quickbooksIssues(type, row, true)) ctx.addIssue({ code: "custom", path: issue2.path, message: issue2.detail });
|
|
67270
|
+
});
|
|
67271
|
+
var entityShape = Object.fromEntries(QUICKBOOKS_ENTITIES.filter((t) => !["CompanyInfo", "Preferences"].includes(t)).map((t) => [t, external_exports.array(native2(t)).optional()]));
|
|
67272
|
+
var QuickbooksSeedSchema = external_exports.strictObject({
|
|
67273
|
+
realmId: external_exports.string().regex(/^\d{8,20}$/).optional(),
|
|
67274
|
+
timeZone: external_exports.string().default("America/Los_Angeles").refine((v) => {
|
|
67275
|
+
try {
|
|
67276
|
+
new Intl.DateTimeFormat("en", { timeZone: v });
|
|
67277
|
+
return true;
|
|
67278
|
+
} catch {
|
|
67279
|
+
return false;
|
|
67280
|
+
}
|
|
67281
|
+
}, "Use an IANA time zone"),
|
|
67282
|
+
companyInfo: native2("CompanyInfo").default({}),
|
|
67283
|
+
preferences: native2("Preferences").default({}),
|
|
67284
|
+
entities: external_exports.strictObject(entityShape).default({})
|
|
67285
|
+
}).superRefine((seed2, ctx) => {
|
|
67286
|
+
const sharedIds = /* @__PURE__ */ new Map(), sharedNames = /* @__PURE__ */ new Map();
|
|
67287
|
+
for (const [type, rows] of Object.entries(seed2.entities)) {
|
|
67288
|
+
const group5 = ["Customer", "Vendor", "Employee"].includes(type) ? "names" : QUICKBOOKS_ENTITIES.indexOf(type) >= 13 ? "transactions" : type;
|
|
67289
|
+
const ids = sharedIds.get(group5) ?? /* @__PURE__ */ new Set();
|
|
67290
|
+
sharedIds.set(group5, ids);
|
|
67291
|
+
rows?.forEach((r, i) => {
|
|
67292
|
+
for (const issue2 of quickbooksRequiredIssues(type, r)) ctx.addIssue({ code: "custom", path: ["entities", type, i, ...issue2.path], message: issue2.detail });
|
|
67293
|
+
if (r.Id !== void 0 && (typeof r.Id !== "string" || !/^\d+$/.test(r.Id) || ids.has(r.Id))) ctx.addIssue({ code: "custom", path: ["entities", type, i, "Id"], message: "Id must be a unique decimal string in its sequence." });
|
|
67294
|
+
if (typeof r.Id === "string") ids.add(r.Id);
|
|
67295
|
+
if (QUICKBOOKS_ENTITIES.indexOf(type) < 11) {
|
|
67296
|
+
const field2 = ["Customer", "Vendor", "Employee"].includes(type) ? "DisplayName" : "Name";
|
|
67297
|
+
const value2 = r[field2] ?? (field2 === "DisplayName" ? ["GivenName", "MiddleName", "FamilyName"].map((k) => r[k]).filter(Boolean).join(" ") : void 0);
|
|
67298
|
+
if (typeof value2 === "string" && value2.trim()) {
|
|
67299
|
+
const parent = type === "Account" ? String(r.ParentRef?.value ?? "") : "";
|
|
67300
|
+
const key2 = `${group5}:${parent}:${value2.trim().toLowerCase()}`;
|
|
67301
|
+
if (sharedNames.has(key2)) ctx.addIssue({ code: "custom", path: ["entities", type, i, field2], message: `${field2} is already held by ${sharedNames.get(key2)}.` });
|
|
67302
|
+
sharedNames.set(key2, `${type} ${r.Id ?? i + 1}`);
|
|
67303
|
+
}
|
|
67304
|
+
}
|
|
67305
|
+
});
|
|
67306
|
+
}
|
|
67307
|
+
const targets = { CustomerRef: "Customer", VendorRef: "Vendor", PrefVendorRef: "Vendor", ItemRef: "Item", ClassRef: "Class", DepartmentRef: "Department", SalesTermRef: "Term", TermRef: "Term", PaymentMethodRef: "PaymentMethod", DefaultTaxCodeRef: "TaxCode", TaxCodeRef: "TaxCode", TxnTaxCodeRef: "TaxCode", TaxRateRef: "TaxRate", DefaultARAccount: "Account", DefaultAPAccount: "Account" };
|
|
67308
|
+
const visit3 = (value2, owner, path2) => {
|
|
67309
|
+
if (Array.isArray(value2)) {
|
|
67310
|
+
value2.forEach((v, i) => visit3(v, owner, [...path2, i]));
|
|
67311
|
+
return;
|
|
67312
|
+
}
|
|
67313
|
+
if (!value2 || typeof value2 !== "object") return;
|
|
67314
|
+
const object3 = value2;
|
|
67315
|
+
for (const [key2, v] of Object.entries(object3)) {
|
|
67316
|
+
const type = key2 === "ParentRef" ? owner : key2.includes("AccountRef") ? "Account" : targets[key2];
|
|
67317
|
+
if (type && v && typeof v === "object" && typeof v.value === "string" && !(key2 === "TaxCodeRef" && ["TAX", "NON"].includes(v.value))) {
|
|
67318
|
+
const candidates = seed2.entities[type] ?? [];
|
|
67319
|
+
if (candidates.every((r) => typeof r.Id === "string")) {
|
|
67320
|
+
const target = candidates.find((r) => r.Id === v.value);
|
|
67321
|
+
if (!target || target.Active === false) ctx.addIssue({ code: "custom", path: [...path2, key2], message: `${type} ${v.value} ${target ? "is inactive" : "does not exist"}.` });
|
|
67322
|
+
}
|
|
67323
|
+
}
|
|
67324
|
+
visit3(v, owner, [...path2, key2]);
|
|
67325
|
+
}
|
|
67326
|
+
};
|
|
67327
|
+
for (const [type, rows] of Object.entries(seed2.entities)) rows?.forEach((row, i) => visit3(row, type, ["entities", type, i]));
|
|
67328
|
+
visit3(seed2.preferences, "Preferences", ["preferences"]);
|
|
67329
|
+
});
|
|
67330
|
+
var ref19 = (value2) => ({ value: value2 });
|
|
67331
|
+
function quickbooksStarterSeed() {
|
|
67332
|
+
const accounts = [
|
|
67333
|
+
["1", "Operating bank", "Bank", "Checking"],
|
|
67334
|
+
["2", "Undeposited Funds", "Other Current Asset", "UndepositedFunds"],
|
|
67335
|
+
["3", "Trade receivables", "Accounts Receivable", "AccountsReceivable"],
|
|
67336
|
+
["4", "Trade payables", "Accounts Payable", "AccountsPayable"],
|
|
67337
|
+
["5", "Company card", "Credit Card", "CreditCard"],
|
|
67338
|
+
["6", "Field service revenue", "Income", "ServiceFeeIncome"],
|
|
67339
|
+
["7", "Materials revenue", "Income", "SalesOfProductIncome"],
|
|
67340
|
+
["8", "Field supplies", "Expense", "SuppliesMaterials"],
|
|
67341
|
+
["9", "Software subscriptions", "Expense", "DuesSubscriptions"],
|
|
67342
|
+
["10", "Sales tax payable", "Other Current Liability", "SalesTaxPayable"],
|
|
67343
|
+
["11", "Opening Balance Equity", "Equity", "OpeningBalanceEquity"]
|
|
67344
|
+
].map(([Id, Name, AccountType, AccountSubType]) => ({ Id, Name, AccountType, AccountSubType }));
|
|
67345
|
+
const sale = (Amount) => ({ Amount, DetailType: "SalesItemLineDetail", SalesItemLineDetail: { ItemRef: ref19("1"), TaxCodeRef: ref19("NON") } });
|
|
67346
|
+
const expense = (Amount, account3) => ({ Amount, DetailType: "AccountBasedExpenseLineDetail", AccountBasedExpenseLineDetail: { AccountRef: ref19(account3) } });
|
|
67347
|
+
return QuickbooksSeedSchema.parse({
|
|
67348
|
+
realmId: "9341458206001234",
|
|
67349
|
+
timeZone: "America/Los_Angeles",
|
|
67350
|
+
companyInfo: { CompanyName: "Larchmere Field Services", Country: "US" },
|
|
67351
|
+
preferences: { SalesFormsPrefs: { CustomTxnNumbers: false }, CurrencyPrefs: { MultiCurrencyEnabled: false, HomeCurrency: ref19("USD") }, AccountingInfoPrefs: { DefaultARAccount: ref19("3"), DefaultAPAccount: ref19("4") } },
|
|
67352
|
+
entities: {
|
|
67353
|
+
Account: accounts,
|
|
67354
|
+
Customer: [{ Id: "1", DisplayName: "Ternwick Studio", PrimaryEmailAddr: { Address: "accounts@ternwick.example" } }, { Id: "2", DisplayName: "Morrowfen Survey" }, { Id: "3", DisplayName: "Kestrel Loomworks" }, { Id: "4", DisplayName: "Kestrel workshop", ParentRef: ref19("3"), Job: true }],
|
|
67355
|
+
Vendor: [{ Id: "5", DisplayName: "Brindle Quay Supply" }, { Id: "6", DisplayName: "Sablewick Hosting" }, { Id: "7", DisplayName: "Alderfen Equipment", Active: false }],
|
|
67356
|
+
Item: [{ Id: "1", Name: "Site review", Type: "Service", IncomeAccountRef: ref19("6") }, { Id: "2", Name: "Cable kit", Type: "NonInventory", IncomeAccountRef: ref19("7"), ExpenseAccountRef: ref19("8") }],
|
|
67357
|
+
Class: [{ Id: "1", Name: "Field operations" }],
|
|
67358
|
+
Department: [{ Id: "1", Name: "West workshop" }],
|
|
67359
|
+
Term: [{ Id: "1", Name: "Net 30", DueDays: 30 }],
|
|
67360
|
+
PaymentMethod: [{ Id: "1", Name: "Bank transfer" }],
|
|
67361
|
+
TaxRate: [{ Id: "1", Name: "Larchmere district tax", RateValue: 8.25, AgencyRef: ref19("10") }],
|
|
67362
|
+
TaxCode: [{ Id: "1", Name: "Larchmere local tax", Taxable: true, SalesTaxRateList: { TaxRateDetail: [{ TaxRateRef: ref19("1"), TaxTypeApplicable: "TaxOnAmount", TaxOrder: 0 }] } }],
|
|
67363
|
+
JournalEntry: [{ Id: "1", TxnDate: "-100d", Line: [{ Amount: 1e4, DetailType: "JournalEntryLineDetail", JournalEntryLineDetail: { PostingType: "Debit", AccountRef: ref19("1") } }, { Amount: 1e4, DetailType: "JournalEntryLineDetail", JournalEntryLineDetail: { PostingType: "Credit", AccountRef: ref19("11") } }] }],
|
|
67364
|
+
Invoice: [{ Id: "2", CustomerRef: ref19("1"), TxnDate: "-100d", DueDate: "-70d", BillEmail: { Address: "accounts@ternwick.example" }, Line: [sale(1200)] }, { Id: "3", CustomerRef: ref19("2"), TxnDate: "-5d", DueDate: "+12d", Line: [sale(900)] }, { Id: "4", CustomerRef: ref19("3"), TxnDate: "-20d", DueDate: "+11d", Line: [sale(1e3)] }],
|
|
67365
|
+
Payment: [{ Id: "5", TxnDate: "-10d", CustomerRef: ref19("3"), TotalAmt: 400, Line: [{ Amount: 400, LinkedTxn: [{ TxnId: "4", TxnType: "Invoice" }] }] }],
|
|
67366
|
+
Bill: [{ Id: "6", TxnDate: "-15d", DueDate: "+15d", VendorRef: ref19("5"), Line: [expense(450, "8")] }, { Id: "7", TxnDate: "-7d", DueDate: "+23d", VendorRef: ref19("6"), Line: [expense(300, "9")] }]
|
|
67367
|
+
}
|
|
67368
|
+
});
|
|
67369
|
+
}
|
|
67370
|
+
var paths = external_exports.record(external_exports.string().regex(/^(?!.*(?:__proto__|constructor|prototype))[A-Za-z]\w*(?:\[\d+\]|\.[A-Za-z]\w*)*$/), external_exports.unknown());
|
|
67371
|
+
var QuickbooksEntityCheckSchema = external_exports.strictObject({ type: external_exports.enum(QUICKBOOKS_ENTITIES), id: external_exports.string().optional(), where: paths.optional(), fields: paths.optional(), exists: external_exports.boolean().default(true) }).refine((v) => v.id !== void 0 !== (v.where !== void 0), "Supply exactly one of id or where");
|
|
67372
|
+
var QuickbooksUnchangedCheckSchema = external_exports.strictObject({ types: external_exports.array(external_exports.enum(QUICKBOOKS_ENTITIES)).min(1), except: external_exports.array(external_exports.strictObject({ type: external_exports.enum(QUICKBOOKS_ENTITIES), id: external_exports.string() })).optional() });
|
|
67373
|
+
var QuickbooksCountCheckSchema = external_exports.strictObject({ type: external_exports.enum(QUICKBOOKS_ENTITIES), where: paths.optional(), count: external_exports.number().int().min(0) });
|
|
67374
|
+
var QuickbooksSentCheckSchema = external_exports.strictObject({ type: external_exports.enum(QUICKBOOKS_ENTITIES).optional(), to: external_exports.string().optional(), doc_number: external_exports.string().optional(), exists: external_exports.boolean().default(true) });
|
|
67375
|
+
|
|
66965
67376
|
// packages/core/src/scene/schema.ts
|
|
66966
|
-
var SUPPORTED_TWINS = ["slack", "github", "datadog", "pagerduty", "linkedin-ads", "salesforce", "gong", "hubspot", "ga4", "google-ads", "chatgpt-ads", "open-meteo", "google-drive", "gmail", "amazon-s3", "linear", "okta", "stripe", "clerk", "better-stack", "notion", "attio", "dropbox", "resend", "microsoft-word", "outlook", "shopify", "lob", "paypal", "jira", "kalshi", "intercom", "zendesk", "google-calendar", "twilio", "asana", "discord", "sentry", "airtable", "netsuite", "carrier-portal"];
|
|
67377
|
+
var SUPPORTED_TWINS = ["slack", "github", "datadog", "pagerduty", "linkedin-ads", "salesforce", "gong", "hubspot", "ga4", "google-ads", "chatgpt-ads", "open-meteo", "google-drive", "gmail", "amazon-s3", "linear", "okta", "stripe", "clerk", "better-stack", "notion", "attio", "dropbox", "resend", "microsoft-word", "outlook", "shopify", "lob", "paypal", "jira", "kalshi", "intercom", "zendesk", "google-calendar", "twilio", "asana", "discord", "sentry", "airtable", "netsuite", "carrier-portal", "quickbooks"];
|
|
66967
67378
|
var refName3 = external_exports.string().describe(`Declares a ref: a bare name matching ${REF_NAME_PATTERN}, e.g. alice`);
|
|
66968
67379
|
var refUse3 = external_exports.string().describe("Reference to a declared ref: $name or $kind.name, e.g. $alice or $user.alice").meta({ pattern: REF_USE_PATTERN });
|
|
66969
67380
|
var DURATION_ERROR = "expected a duration string like 500ms, 30s, 5m, 1h, 1m30s, 2d or -1h";
|
|
@@ -67184,6 +67595,10 @@ var StateCheckSchema = external_exports.union([
|
|
|
67184
67595
|
external_exports.strictObject({ "netsuite.unchanged": NetsuiteUnchangedCheckSchema }),
|
|
67185
67596
|
external_exports.strictObject({ "netsuite.preserved": NetsuitePreservedCheckSchema }),
|
|
67186
67597
|
external_exports.strictObject({ "netsuite.count": NetsuiteCountCheckSchema }),
|
|
67598
|
+
external_exports.strictObject({ "quickbooks.entity": QuickbooksEntityCheckSchema }),
|
|
67599
|
+
external_exports.strictObject({ "quickbooks.unchanged": QuickbooksUnchangedCheckSchema }),
|
|
67600
|
+
external_exports.strictObject({ "quickbooks.count": QuickbooksCountCheckSchema }),
|
|
67601
|
+
external_exports.strictObject({ "quickbooks.sent": QuickbooksSentCheckSchema }),
|
|
67187
67602
|
external_exports.strictObject({ "carrier-portal.request": CarrierRequestCheckSchema }),
|
|
67188
67603
|
external_exports.strictObject({ "carrier-portal.downloaded": CarrierDownloadCheckSchema }),
|
|
67189
67604
|
external_exports.strictObject({ "carrier-portal.message": CarrierMessageCheckSchema })
|
|
@@ -67365,7 +67780,7 @@ var SceneSchema = external_exports.strictObject({
|
|
|
67365
67780
|
trigger: TriggerSchema.optional(),
|
|
67366
67781
|
agent_input: external_exports.literal("per_event").optional().describe("Runs the command once per addressed event, taking precedence over agent.input in ancha.yaml"),
|
|
67367
67782
|
tools: external_exports.record(external_exports.string().regex(TOOL_NAME_PATTERN, "a tool name as the model saw it"), SceneToolSchema).optional(),
|
|
67368
|
-
seed: external_exports.strictObject({ slack: SlackSeedSchema.optional(), github: GitHubSeedSchema.optional(), datadog: DatadogSeedSchema.optional(), pagerduty: PagerDutySeedSchema.optional(), "linkedin-ads": LinkedInAdsSeedSchema.optional(), salesforce: SalesforceSeedSchema.optional(), gong: GongSeedSchema.optional(), hubspot: HubSpotSeedSchema.optional(), ga4: GA4SeedSchema.optional(), "google-ads": GoogleAdsSeedSchema.optional(), "chatgpt-ads": ChatGPTAdsSeedSchema.optional(), "open-meteo": OpenMeteoSeedSchema.optional(), "google-drive": GoogleDriveSeedSchema.optional(), gmail: GmailSeedSchema.optional(), "amazon-s3": AmazonS3SeedSchema.optional(), linear: LinearSeedSchema.optional(), "okta": OktaSeedSchema.optional(), stripe: StripeSeedSchema.optional(), "clerk": ClerkSeedSchema.optional(), "better-stack": BetterStackSeedSchema.optional(), notion: NotionSeedSchema.optional(), attio: AttioSeedSchema.optional(), "dropbox": DropboxSeedSchema.optional(), resend: ResendSeedSchema.optional(), "microsoft-word": MicrosoftWordSeedSchema.optional(), outlook: OutlookSeedSchema.optional(), shopify: ShopifySeedSchema.optional(), "lob": LobSeedSchema.optional(), paypal: PayPalSeedSchema.optional(), jira: JiraSeedSchema.optional(), "kalshi": KalshiSeedSchema.optional(), intercom: IntercomSeedSchema.optional(), "zendesk": ZendeskSeedSchema.optional(), "google-calendar": GoogleCalendarSeedSchema.optional(), "twilio": TwilioSeedSchema.optional(), "asana": AsanaSeedSchema.optional(), "discord": DiscordSeedSchema.optional(), sentry: SentrySeedSchema.optional(), "airtable": AirtableSeedSchema.optional(), netsuite: NetsuiteSeedSchema.optional(), "carrier-portal": CarrierPortalSeedSchema.optional() }),
|
|
67783
|
+
seed: external_exports.strictObject({ slack: SlackSeedSchema.optional(), github: GitHubSeedSchema.optional(), datadog: DatadogSeedSchema.optional(), pagerduty: PagerDutySeedSchema.optional(), "linkedin-ads": LinkedInAdsSeedSchema.optional(), salesforce: SalesforceSeedSchema.optional(), gong: GongSeedSchema.optional(), hubspot: HubSpotSeedSchema.optional(), ga4: GA4SeedSchema.optional(), "google-ads": GoogleAdsSeedSchema.optional(), "chatgpt-ads": ChatGPTAdsSeedSchema.optional(), "open-meteo": OpenMeteoSeedSchema.optional(), "google-drive": GoogleDriveSeedSchema.optional(), gmail: GmailSeedSchema.optional(), "amazon-s3": AmazonS3SeedSchema.optional(), linear: LinearSeedSchema.optional(), "okta": OktaSeedSchema.optional(), stripe: StripeSeedSchema.optional(), "clerk": ClerkSeedSchema.optional(), "better-stack": BetterStackSeedSchema.optional(), notion: NotionSeedSchema.optional(), attio: AttioSeedSchema.optional(), "dropbox": DropboxSeedSchema.optional(), resend: ResendSeedSchema.optional(), "microsoft-word": MicrosoftWordSeedSchema.optional(), outlook: OutlookSeedSchema.optional(), shopify: ShopifySeedSchema.optional(), "lob": LobSeedSchema.optional(), paypal: PayPalSeedSchema.optional(), jira: JiraSeedSchema.optional(), "kalshi": KalshiSeedSchema.optional(), intercom: IntercomSeedSchema.optional(), "zendesk": ZendeskSeedSchema.optional(), "google-calendar": GoogleCalendarSeedSchema.optional(), "twilio": TwilioSeedSchema.optional(), "asana": AsanaSeedSchema.optional(), "discord": DiscordSeedSchema.optional(), sentry: SentrySeedSchema.optional(), "airtable": AirtableSeedSchema.optional(), netsuite: NetsuiteSeedSchema.optional(), "carrier-portal": CarrierPortalSeedSchema.optional(), quickbooks: QuickbooksSeedSchema.optional() }),
|
|
67369
67784
|
world_rules: external_exports.strictObject({ actors: external_exports.array(ActorSchema).optional(), app_calls: external_exports.array(AppCallSchema).optional(), pipelines: external_exports.array(PipelineRuleSchema).optional(), faults: external_exports.array(FaultRuleSchema).optional(), metrics: external_exports.array(MetricRuleSchema).optional(), logs: external_exports.array(LogRuleSchema).optional(), monitors: external_exports.array(MonitorRuleSchema).optional(), integrations: external_exports.array(IntegrationSchema).optional() }).optional(),
|
|
67370
67785
|
people: PeopleSchema.optional(),
|
|
67371
67786
|
until: UntilSchema.optional(),
|
|
@@ -67597,13 +68012,14 @@ var DatasetSchema = external_exports.discriminatedUnion("tool", [
|
|
|
67597
68012
|
external_exports.strictObject({ ...header, kind: external_exports.literal("dataset"), tool: external_exports.literal("sentry"), seed: seed["sentry"].unwrap() }),
|
|
67598
68013
|
external_exports.strictObject({ ...header, kind: external_exports.literal("dataset"), tool: external_exports.literal("airtable"), seed: seed["airtable"].unwrap() }),
|
|
67599
68014
|
external_exports.strictObject({ ...header, kind: external_exports.literal("dataset"), tool: external_exports.literal("carrier-portal"), seed: seed["carrier-portal"].unwrap() }),
|
|
67600
|
-
external_exports.strictObject({ ...header, kind: external_exports.literal("dataset"), tool: external_exports.literal("netsuite"), seed: seed["netsuite"].unwrap() })
|
|
68015
|
+
external_exports.strictObject({ ...header, kind: external_exports.literal("dataset"), tool: external_exports.literal("netsuite"), seed: seed["netsuite"].unwrap() }),
|
|
68016
|
+
external_exports.strictObject({ ...header, kind: external_exports.literal("dataset"), tool: external_exports.literal("quickbooks"), seed: seed["quickbooks"].unwrap() })
|
|
67601
68017
|
]);
|
|
67602
|
-
var
|
|
68018
|
+
var ref20 = external_exports.string().regex(new RegExp(REF_USE_PATTERN));
|
|
67603
68019
|
var BindingSchema = external_exports.strictObject({
|
|
67604
68020
|
tool: external_exports.enum(SUPPORTED_TWINS),
|
|
67605
68021
|
kind: external_exports.enum(["user", "channel", "message", "repo", "commit", "pull", "issue", "monitor", "service", "escalation_policy", "schedule", "incident", "dashboard", "event", "log"]),
|
|
67606
|
-
ref:
|
|
68022
|
+
ref: ref20
|
|
67607
68023
|
});
|
|
67608
68024
|
var bindings = external_exports.record(external_exports.string().regex(/^[a-z][a-z0-9_]*$/), BindingSchema);
|
|
67609
68025
|
var DataPresetSchema = external_exports.strictObject({
|
|
@@ -67620,18 +68036,18 @@ var DataPresetSchema = external_exports.strictObject({
|
|
|
67620
68036
|
})).optional()
|
|
67621
68037
|
});
|
|
67622
68038
|
var InitialChangeSchema = external_exports.discriminatedUnion("op", [
|
|
67623
|
-
external_exports.strictObject({ op: external_exports.literal("slack.message.replace"), ref:
|
|
68039
|
+
external_exports.strictObject({ op: external_exports.literal("slack.message.replace"), ref: ref20, value: slack.shape.messages.unwrap().element }),
|
|
67624
68040
|
external_exports.strictObject({ op: external_exports.literal("slack.message.add"), value: slack.shape.messages.unwrap().element }),
|
|
67625
68041
|
external_exports.strictObject({
|
|
67626
68042
|
op: external_exports.literal("github.repo.update"),
|
|
67627
|
-
ref:
|
|
68043
|
+
ref: ref20,
|
|
67628
68044
|
add_commits: external_exports.array(repo.shape.commits.element).default([]),
|
|
67629
68045
|
branch_heads: external_exports.array(repo.shape.branches.unwrap().element).default([]),
|
|
67630
|
-
production:
|
|
68046
|
+
production: ref20.optional()
|
|
67631
68047
|
}),
|
|
67632
68048
|
external_exports.strictObject({ op: external_exports.literal("datadog.event.add"), value: datadog.shape.events.unwrap().element }),
|
|
67633
68049
|
external_exports.strictObject({ op: external_exports.literal("datadog.log.add"), value: datadog.shape.logs.unwrap().element }),
|
|
67634
|
-
external_exports.strictObject({ op: external_exports.literal("datadog.dashboard.replace"), ref:
|
|
68050
|
+
external_exports.strictObject({ op: external_exports.literal("datadog.dashboard.replace"), ref: ref20, value: datadog.shape.dashboards.unwrap().element })
|
|
67635
68051
|
]);
|
|
67636
68052
|
var ScenarioDefinitionSchema = SceneSchema.omit({ seed: true, twins: true, world_rules: true }).extend({
|
|
67637
68053
|
schema_version: external_exports.literal(1),
|
|
@@ -67952,7 +68368,8 @@ var TOOL_DESCRIPTORS = [
|
|
|
67952
68368
|
descriptor("sentry", "Sentry", "Issues, error events, triage and releases", ["Organizations", "Projects", "Teams", "Members", "Issues", "Events", "Tags", "Comments", "Releases", "Deploys", "Events query"], "REST API /api/0", ['Call ${SENTRY_API_URL}/api/0/... with Authorization: Bearer SENTRY_AUTH_TOKEN, using the shapes in Sentry\u2019s API docs (Sentry\u2019s generated API client is source-available, so the tests use HTTP). Lists page through the Link header (rel="next", results="true", cursor).', "Issue search covers Sentry\u2019s syntax for status, assignment, level, priority, releases, environments, times, users, error fields and tags; the organization default is is:unresolved issue.priority:[high, medium] over 14 days.", "Client keys point their DSNs at this replica."]),
|
|
67953
68369
|
descriptor("airtable", "Airtable", "Bases of linked tables: records, views, formulas and comments", ["Bases", "Tables", "Fields", "Records", "Views", "Formulas", "Comments"], "Web API v0", ["Send AIRTABLE_API_KEY (a personal access token) as a Bearer token to AIRTABLE_API_URL (it ends in /v0). The official airtable.js client reads AIRTABLE_API_KEY and AIRTABLE_ENDPOINT_URL by itself; these tests use the documented HTTP API.", "filterByFormula, view filters and formula, count, lookup and rollup fields run on a formula engine; links stay in step on both sides; TODAY() and NOW() follow the scene clock."]),
|
|
67954
68370
|
descriptor("carrier-portal", "Carrier portal", "Larchmont Mutual agency website: policy search, documents and underwriting requests", ["Policies", "Documents", "Loss runs", "Endorsements", "Certificates", "Messages"], "Agency portal v1", ["Open CARRIER_PORTAL_URL in a browser and sign in with CARRIER_PORTAL_AGENCY_CODE, CARRIER_PORTAL_USERNAME and CARRIER_PORTAL_PASSWORD.", "Submit requests through HTML forms; download declarations, endorsements, binders and loss runs as PDF files."]),
|
|
67955
|
-
descriptor("netsuite", "NetSuite", "Order to cash and procure to pay: customers, vendors, invoices, payments, bills and SuiteQL", ["Customers", "Vendors", "Items", "Sales orders", "Invoices", "Credit memos", "Customer payments", "Vendor bills", "Bill payments", "Journal entries", "SuiteQL"], "SuiteTalk REST record v1 and SuiteQL", ["Point the client at NETSUITE_API_URL instead of https://{account}.suitetalk.api.netsuite.com. Send record requests to NETSUITE_RECORD_URL and SuiteQL queries to NETSUITE_SUITEQL_URL.", "Sign OAuth 1.0 TBA requests with HMAC-SHA256, using NETSUITE_ACCOUNT_ID as the realm and NETSUITE_CONSUMER_KEY, NETSUITE_CONSUMER_SECRET, NETSUITE_TOKEN_ID and NETSUITE_TOKEN_SECRET; or send NETSUITE_ACCESS_TOKEN as a Bearer token.", "For OAuth 2.0, get tokens from NETSUITE_TOKEN_URL: client credentials with a JWT signed by NETSUITE_PRIVATE_KEY (ES256, kid NETSUITE_CERTIFICATE_ID, iss NETSUITE_CLIENT_ID), or the authorization code grant with NETSUITE_CLIENT_ID and NETSUITE_CLIENT_SECRET.", "POST SuiteQL queries with Prefer: transient and a JSON body containing q. Record creates return 204 with a Location header."])
|
|
68371
|
+
descriptor("netsuite", "NetSuite", "Order to cash and procure to pay: customers, vendors, invoices, payments, bills and SuiteQL", ["Customers", "Vendors", "Items", "Sales orders", "Invoices", "Credit memos", "Customer payments", "Vendor bills", "Bill payments", "Journal entries", "SuiteQL"], "SuiteTalk REST record v1 and SuiteQL", ["Point the client at NETSUITE_API_URL instead of https://{account}.suitetalk.api.netsuite.com. Send record requests to NETSUITE_RECORD_URL and SuiteQL queries to NETSUITE_SUITEQL_URL.", "Sign OAuth 1.0 TBA requests with HMAC-SHA256, using NETSUITE_ACCOUNT_ID as the realm and NETSUITE_CONSUMER_KEY, NETSUITE_CONSUMER_SECRET, NETSUITE_TOKEN_ID and NETSUITE_TOKEN_SECRET; or send NETSUITE_ACCESS_TOKEN as a Bearer token.", "For OAuth 2.0, get tokens from NETSUITE_TOKEN_URL: client credentials with a JWT signed by NETSUITE_PRIVATE_KEY (ES256, kid NETSUITE_CERTIFICATE_ID, iss NETSUITE_CLIENT_ID), or the authorization code grant with NETSUITE_CLIENT_ID and NETSUITE_CLIENT_SECRET.", "POST SuiteQL queries with Prefer: transient and a JSON body containing q. Record creates return 204 with a Location header."]),
|
|
68372
|
+
descriptor("quickbooks", "QuickBooks Online", "Small-business books: customers, vendors, items, invoices, payments, bills, expenses, journal entries and reports", ["Customers", "Vendors", "Items", "Accounts", "Invoices", "Estimates", "Sales receipts", "Credit memos", "Payments", "Bills", "Bill payments", "Expenses", "Journal entries", "Reports", "Query"], "Accounting API v3, minor version 75", ["Point the client at QUICKBOOKS_API_URL instead of https://quickbooks.api.intuit.com and send requests to /v3/company/{QUICKBOOKS_REALM_ID}/... with Accept: application/json.", "Authorize with Authorization: Bearer QUICKBOOKS_ACCESS_TOKEN; refresh it at QUICKBOOKS_TOKEN_URL with QUICKBOOKS_REFRESH_TOKEN, QUICKBOOKS_CLIENT_ID and QUICKBOOKS_CLIENT_SECRET."])
|
|
67956
68373
|
];
|
|
67957
68374
|
var starterSeeds = {
|
|
67958
68375
|
slack: slackStarterSeed,
|
|
@@ -67995,7 +68412,8 @@ var starterSeeds = {
|
|
|
67995
68412
|
sentry: sentryStarterSeed,
|
|
67996
68413
|
"airtable": airtableStarterSeed(),
|
|
67997
68414
|
netsuite: NetsuiteSeedSchema.parse(netsuiteStarterSeed),
|
|
67998
|
-
"carrier-portal": CarrierPortalSeedSchema.parse(carrierPortalStarterSeed)
|
|
68415
|
+
"carrier-portal": CarrierPortalSeedSchema.parse(carrierPortalStarterSeed),
|
|
68416
|
+
quickbooks: quickbooksStarterSeed()
|
|
67999
68417
|
};
|
|
68000
68418
|
|
|
68001
68419
|
// packages/core/src/sandbox.ts
|