node-autotask 0.90.0 → 0.91.0
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/CHANGELOG.md +4 -0
- package/MCP_TOOL_CATALOG.json +217 -9
- package/README.md +1 -1
- package/capabilities.json +873 -53
- package/dist/capabilities-data.js +872 -52
- package/dist/capabilities.cjs +4 -4
- package/dist/capabilities.js +1 -1
- package/dist/{chunk-CY6USWUY.js → chunk-2GP7W6QB.js} +100 -12
- package/dist/{chunk-K5X4BPQC.js → chunk-43ADHLZJ.js} +3 -3
- package/dist/{chunk-D7MJC7HA.cjs → chunk-5PUHGPKG.cjs} +200 -200
- package/dist/{chunk-ZLMYYO7R.cjs → chunk-KRYDLTY3.cjs} +3 -3
- package/dist/{chunk-OI6E5XQA.cjs → chunk-RXXITZH4.cjs} +105 -17
- package/dist/{chunk-Q73VQSUP.js → chunk-WAHRZDV4.js} +2 -2
- package/dist/{chunk-HU6OGAPI.js → chunk-Y2KXGSWM.js} +4 -2
- package/dist/{chunk-4CI27SCM.cjs → chunk-YFC5VAKK.cjs} +32 -30
- package/dist/{index-BEqbDuMk.d.cts → index-BfGOllfY.d.cts} +4 -2
- package/dist/{index-DWyJAad_.d.ts → index-C3jXvpXZ.d.ts} +4 -2
- package/dist/{index-4jmitXBs.d.cts → index-Dy92Xbpv.d.cts} +75 -1
- package/dist/{index-4jmitXBs.d.ts → index-Dy92Xbpv.d.ts} +75 -1
- package/dist/index.cjs +85 -85
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/operations/index.cjs +51 -51
- package/dist/operations/index.d.cts +4 -4
- package/dist/operations/index.d.ts +4 -4
- package/dist/operations/index.js +2 -2
- package/dist/pool.cjs +12 -12
- package/dist/pool.d.cts +1 -1
- package/dist/pool.d.ts +1 -1
- package/dist/pool.js +4 -4
- package/dist/resources/index.cjs +27 -27
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/docs/API.md +4 -2
- package/package.json +1 -1
package/dist/capabilities.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKRYDLTY3_cjs = require('./chunk-KRYDLTY3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CAPABILITY_PLAN_HASHES", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkKRYDLTY3_cjs.CAPABILITY_PLAN_HASHES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "loadCapabilities", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkKRYDLTY3_cjs.loadCapabilities; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "loadCapabilityRecords", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkKRYDLTY3_cjs.loadCapabilityRecords; }
|
|
18
18
|
});
|
package/dist/capabilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-
|
|
1
|
+
export { CAPABILITY_PLAN_HASHES, loadCapabilities, loadCapabilityRecords } from './chunk-43ADHLZJ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadCapabilityRecords } from './chunk-
|
|
1
|
+
import { loadCapabilityRecords } from './chunk-43ADHLZJ.js';
|
|
2
2
|
import { NoopLogger, REDACTED, deepMarkUntrusted, wrapUntrusted } from './chunk-X6VWD6WW.js';
|
|
3
3
|
import { randomUUID, createHash } from 'crypto';
|
|
4
4
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
@@ -251,6 +251,7 @@ var SECRET_RESPONSE_FIELDS = [
|
|
|
251
251
|
// IntegrationVendorInsightModel, IntegrationVendorWidgetModel
|
|
252
252
|
];
|
|
253
253
|
var PERSONAL_RESPONSE_FIELDS = [
|
|
254
|
+
"additionalAddressInfo",
|
|
254
255
|
"additionalAddressInformation",
|
|
255
256
|
"additionalBillToAddressInformation",
|
|
256
257
|
"additionalShipToAddressInformation",
|
|
@@ -11016,6 +11017,48 @@ var RELATIONSHIP_MAP = {
|
|
|
11016
11017
|
"proof": "spec-derived"
|
|
11017
11018
|
},
|
|
11018
11019
|
"markerField": null
|
|
11020
|
+
},
|
|
11021
|
+
"internal_locations": {
|
|
11022
|
+
"resource": "internal_locations",
|
|
11023
|
+
"apiEntity": "InternalLocation",
|
|
11024
|
+
"kind": "entity",
|
|
11025
|
+
"path": "InternalLocations",
|
|
11026
|
+
"parentScoped": false,
|
|
11027
|
+
"tier": "extended",
|
|
11028
|
+
"workflowResource": false,
|
|
11029
|
+
"group": "B",
|
|
11030
|
+
"parent": null,
|
|
11031
|
+
"children": [],
|
|
11032
|
+
"naturalKeys": {
|
|
11033
|
+
"hasSearch": false,
|
|
11034
|
+
"searchCovers": null,
|
|
11035
|
+
"findBy": []
|
|
11036
|
+
},
|
|
11037
|
+
"blindSurfaces": null,
|
|
11038
|
+
"zoneFacts": null,
|
|
11039
|
+
"deleteBoundary": null,
|
|
11040
|
+
"markerField": null
|
|
11041
|
+
},
|
|
11042
|
+
"shipping_types": {
|
|
11043
|
+
"resource": "shipping_types",
|
|
11044
|
+
"apiEntity": "ShippingType",
|
|
11045
|
+
"kind": "entity",
|
|
11046
|
+
"path": "ShippingTypes",
|
|
11047
|
+
"parentScoped": false,
|
|
11048
|
+
"tier": "extended",
|
|
11049
|
+
"workflowResource": false,
|
|
11050
|
+
"group": "B",
|
|
11051
|
+
"parent": null,
|
|
11052
|
+
"children": [],
|
|
11053
|
+
"naturalKeys": {
|
|
11054
|
+
"hasSearch": false,
|
|
11055
|
+
"searchCovers": null,
|
|
11056
|
+
"findBy": []
|
|
11057
|
+
},
|
|
11058
|
+
"blindSurfaces": null,
|
|
11059
|
+
"zoneFacts": null,
|
|
11060
|
+
"deleteBoundary": null,
|
|
11061
|
+
"markerField": null
|
|
11019
11062
|
}
|
|
11020
11063
|
};
|
|
11021
11064
|
var BLIND_SURFACE_STAMPS = {
|
|
@@ -16452,6 +16495,16 @@ var UNTRUSTED_FIELDS_BY_RESOURCE = {
|
|
|
16452
16495
|
],
|
|
16453
16496
|
"inventory_locations": [
|
|
16454
16497
|
"locationName"
|
|
16498
|
+
],
|
|
16499
|
+
"internal_locations": [
|
|
16500
|
+
"additionalAddressInfo",
|
|
16501
|
+
"country",
|
|
16502
|
+
"name",
|
|
16503
|
+
"timeZone"
|
|
16504
|
+
],
|
|
16505
|
+
"shipping_types": [
|
|
16506
|
+
"description",
|
|
16507
|
+
"name"
|
|
16455
16508
|
]
|
|
16456
16509
|
};
|
|
16457
16510
|
|
|
@@ -16911,9 +16964,9 @@ function isKnowledgeBaseRootResource(resource) {
|
|
|
16911
16964
|
return resource === "knowledge_base_categories" || resource === "knowledge_base_articles";
|
|
16912
16965
|
}
|
|
16913
16966
|
function isExactRecordResource(resource) {
|
|
16914
|
-
return resource === "inventory_locations" || isKnowledgeBaseRootResource(resource);
|
|
16967
|
+
return resource === "inventory_locations" || resource === "internal_locations" || resource === "shipping_types" || isKnowledgeBaseRootResource(resource);
|
|
16915
16968
|
}
|
|
16916
|
-
var EXACT_RECORD_PATH = /^\/v1\.0\/(?:InventoryLocations|KnowledgeBaseArticles|KnowledgeBaseCategories(?:\/\d+\/KnowledgeBaseArticles)?)(?:\/(query(?:\/(?:next|previous|count))?|\d+))?\/?$/i;
|
|
16969
|
+
var EXACT_RECORD_PATH = /^\/v1\.0\/(?:InventoryLocations|InternalLocations|ShippingTypes|KnowledgeBaseArticles|KnowledgeBaseCategories(?:\/\d+\/KnowledgeBaseArticles)?)(?:\/(query(?:\/(?:next|previous|count))?|\d+))?\/?$/i;
|
|
16917
16970
|
function exactRecordResponseTarget(path, method, operation) {
|
|
16918
16971
|
const match = EXACT_RECORD_PATH.exec(path);
|
|
16919
16972
|
if (match === null) return void 0;
|
|
@@ -16935,6 +16988,9 @@ function receiptId(body) {
|
|
|
16935
16988
|
function isNonNegativeInt64(id) {
|
|
16936
16989
|
return typeof id === "number" ? Number.isSafeInteger(id) && id >= 0 : typeof id === "string" && isAuditDecimalId(id);
|
|
16937
16990
|
}
|
|
16991
|
+
function isSignedInt64Token(token) {
|
|
16992
|
+
return token.startsWith("-") ? /^-[0-9]{1,19}$/.test(token) && BigInt(token) >= -9223372036854775808n : isAuditDecimalId(token);
|
|
16993
|
+
}
|
|
16938
16994
|
function validateExactRecordResponse(body, target, path, method, requestBody, operation) {
|
|
16939
16995
|
const invalid = (message) => {
|
|
16940
16996
|
throw new AutotaskError(message, { code: "INVALID_RESPONSE", category: "server", operation, suggestedAction: INVALID_SHAPE_ACTION });
|
|
@@ -16975,7 +17031,7 @@ function validateExactRecordResponse(body, target, path, method, requestBody, op
|
|
|
16975
17031
|
return invalid("Expected an item envelope with a valid record ID");
|
|
16976
17032
|
}
|
|
16977
17033
|
const entity = parts.at(-2)?.toLowerCase();
|
|
16978
|
-
const resource = entity === "inventorylocations" ? "inventory location" : entity === "knowledgebasearticles" ? "article" : "category";
|
|
17034
|
+
const resource = entity === "inventorylocations" ? "inventory location" : entity === "knowledgebasearticles" ? "article" : entity === "knowledgebasecategories" ? "category" : "record";
|
|
16979
17035
|
if (String(id) !== expectedId) {
|
|
16980
17036
|
throw new AutotaskConfigError(`returned ${resource} id must match the requested id`, { operation });
|
|
16981
17037
|
}
|
|
@@ -16997,7 +17053,7 @@ function serializeExactRecordUpdate(body, operation) {
|
|
|
16997
17053
|
const { rawJSON } = JSON;
|
|
16998
17054
|
return JSON.stringify({ ...body, id: rawJSON(body.id) });
|
|
16999
17055
|
}
|
|
17000
|
-
function decodeResponseJson(text, auditTarget, recordTarget) {
|
|
17056
|
+
function decodeResponseJson(text, auditTarget, recordTarget, path) {
|
|
17001
17057
|
const target = auditTarget ?? recordTarget;
|
|
17002
17058
|
if (target === void 0) return JSON.parse(text);
|
|
17003
17059
|
if (target === "query/count") {
|
|
@@ -17005,10 +17061,13 @@ function decodeResponseJson(text, auditTarget, recordTarget) {
|
|
|
17005
17061
|
}
|
|
17006
17062
|
const idTokens = /* @__PURE__ */ new WeakMap();
|
|
17007
17063
|
const receiptTokens = /* @__PURE__ */ new WeakMap();
|
|
17064
|
+
const holidaySetTokens = /* @__PURE__ */ new WeakMap();
|
|
17065
|
+
const internalLocations = path !== void 0 && /^\/v1\.0\/InternalLocations\//i.test(path);
|
|
17008
17066
|
const body = JSON.parse(text, function(key, value, context) {
|
|
17009
17067
|
if (typeof value === "number" && context?.source !== void 0) {
|
|
17010
17068
|
if (key === "id") idTokens.set(this, context.source);
|
|
17011
17069
|
if (key === "itemId" && target === "mutation") receiptTokens.set(this, context.source);
|
|
17070
|
+
if (internalLocations && key === "holidaySetId") holidaySetTokens.set(this, context.source);
|
|
17012
17071
|
}
|
|
17013
17072
|
return value;
|
|
17014
17073
|
});
|
|
@@ -17016,6 +17075,10 @@ function decodeResponseJson(text, auditTarget, recordTarget) {
|
|
|
17016
17075
|
if (Array.isArray(rows)) {
|
|
17017
17076
|
for (const row of rows) {
|
|
17018
17077
|
if (!isRecord2(row)) continue;
|
|
17078
|
+
const holidaySet = holidaySetTokens.get(row);
|
|
17079
|
+
if (holidaySet !== void 0 && !Number.isSafeInteger(row.holidaySetId) && isSignedInt64Token(holidaySet)) {
|
|
17080
|
+
row.holidaySetId = holidaySet;
|
|
17081
|
+
}
|
|
17019
17082
|
const key = target === "mutation" && ownField(row, "itemId") !== void 0 ? "itemId" : "id";
|
|
17020
17083
|
const value = ownField(row, key);
|
|
17021
17084
|
if (typeof value !== "number") continue;
|
|
@@ -17075,7 +17138,7 @@ function attachEmptyReasonDetails(err) {
|
|
|
17075
17138
|
} : {
|
|
17076
17139
|
surface,
|
|
17077
17140
|
kind: "not-found",
|
|
17078
|
-
note: isDeletedAuditRead(surface) ? "No audit log entry at this ID was visible to this API user." : resource === "knowledge_base_articles" ? "No published article at this ID was visible to this API user." : `no ${resource} record exists at this id (a miss is the data, not an error condition)`,
|
|
17141
|
+
note: isDeletedAuditRead(surface) ? "No audit log entry at this ID was visible to this API user." : resource === "internal_locations" || resource === "shipping_types" ? "No record at this ID was visible to this API user." : resource === "knowledge_base_articles" ? "No published article at this ID was visible to this API user." : `no ${resource} record exists at this id (a miss is the data, not an error condition)`,
|
|
17079
17142
|
authority: `${resource}.query`,
|
|
17080
17143
|
remedy: `query the ${resource} collection (a bounded queryBounded walk) or verify the id from the authority surface \u2014 do not retry the same get`
|
|
17081
17144
|
};
|
|
@@ -17641,7 +17704,7 @@ var HttpClient = class {
|
|
|
17641
17704
|
}
|
|
17642
17705
|
let parsed;
|
|
17643
17706
|
try {
|
|
17644
|
-
parsed = decodeResponseJson(text, s.auditTarget, s.recordTarget);
|
|
17707
|
+
parsed = decodeResponseJson(text, s.auditTarget, s.recordTarget, decodeURIComponent(s.opts.path));
|
|
17645
17708
|
} catch {
|
|
17646
17709
|
return this.handleNonJson2xx(s, res, status, text);
|
|
17647
17710
|
}
|
|
@@ -17866,7 +17929,7 @@ var HttpClient = class {
|
|
|
17866
17929
|
if (queryRoute) {
|
|
17867
17930
|
const audit = auditTarget === "query" || auditTarget === "query/count";
|
|
17868
17931
|
const exactRecord = recordTarget === "query" || recordTarget === "query/count";
|
|
17869
|
-
const recordLabel = /^\/v1\.0\/InventoryLocations\//i.test(route) ? "inventory location" : "Knowledge Base record";
|
|
17932
|
+
const recordLabel = /^\/v1\.0\/InventoryLocations\//i.test(route) ? "inventory location" : /^\/v1\.0\/KnowledgeBase/i.test(route) ? "Knowledge Base record" : "record";
|
|
17870
17933
|
const exactIdLabel = audit ? "audit log" : exactRecord ? recordLabel : void 0;
|
|
17871
17934
|
assertQueryFilters(opts, requestUrl, bodyText, exactIdLabel);
|
|
17872
17935
|
}
|
|
@@ -18934,7 +18997,7 @@ function truncateNoteChars(items, cap, fields) {
|
|
|
18934
18997
|
const copy = { ...item };
|
|
18935
18998
|
for (const field of fields) {
|
|
18936
18999
|
const v = copy[field];
|
|
18937
|
-
if (typeof v === "string" && v.length > cap) {
|
|
19000
|
+
if (typeof v === "string" && v !== REDACTED && v.length > cap) {
|
|
18938
19001
|
const end = cap > 0 && (v.charCodeAt(cap - 1) & 64512) === 55296 ? cap - 1 : cap;
|
|
18939
19002
|
copy[field] = v.slice(0, end) + noteCharsTruncationMarker(v.length - end);
|
|
18940
19003
|
truncated += 1;
|
|
@@ -20119,6 +20182,7 @@ var MODEL_FIELD_SETS = {
|
|
|
20119
20182
|
"expense_reports": ["id", "amountDue", "approvedDate", "approverID", "departmentNumber", "internalCurrencyCashAdvanceAmount", "internalCurrencyExpenseTotal", "name", "organizationalLevelAssociationID", "quickBooksReferenceNumber", "reimbursementCurrencyAmountDue", "reimbursementCurrencyCashAdvanceAmount", "reimbursementCurrencyID", "rejectionReason", "status", "submit", "submitDate", "submitterID", "weekEnding"],
|
|
20120
20183
|
"holiday_sets": ["id", "holidaySetDescription", "holidaySetName"],
|
|
20121
20184
|
"holidays": ["id", "holidayDate", "holidayName", "holidaySetID", "soapParentPropertyId"],
|
|
20185
|
+
"internal_locations": ["id", "additionalAddressInfo", "address1", "address2", "city", "country", "holidaySetId", "isDefault", "name", "postalCode", "state", "timeZone"],
|
|
20122
20186
|
"inventory_locations": ["id", "impersonatorCreatorResourceID", "isActive", "isDefault", "locationName", "resourceID"],
|
|
20123
20187
|
"inventory_products": ["id", "availableUnits", "backOrderQuantity", "bin", "createDateTime", "createdByResourceID", "inventoryLocationID", "onHandUnits", "pickedUnits", "productID", "quantityMaximum", "quantityMinimum", "referenceNumber", "reservedUnits", "unitsOnOrder"],
|
|
20124
20188
|
"invoice_templates": ["id", "coveredByBlockRetainerContractLabel", "coveredByRecurringServiceFixedPricePerTicketContractLabel", "currencyNegativeFormat", "currencyPositiveFormat", "dateFormat", "displayFixedPriceContractLabor", "displayRecurringServiceContractLabor", "displaySeparateLineItemForEachTax", "displayTaxCategory", "displayTaxCategorySuperscripts", "displayZeroAmountRecurringServicesAndBundles", "groupBy", "itemizeItemsInEachGroup", "itemizeServicesAndBundles", "name", "nonBillableLaborLabel", "numberFormat", "pageLayout", "pageNumberFormat", "paymentTerms", "rateCostExpression", "showGridHeader", "showVerticalGridLines", "sortBy", "timeFormat"],
|
|
@@ -20165,6 +20229,7 @@ var MODEL_FIELD_SETS = {
|
|
|
20165
20229
|
"service_calls": ["id", "cancelationNoticeHours", "canceledByResourceID", "canceledDateTime", "companyID", "companyLocationID", "createDateTime", "creatorResourceID", "description", "duration", "endDateTime", "impersonatorCreatorResourceID", "isComplete", "lastModifiedDateTime", "startDateTime", "status"],
|
|
20166
20230
|
"service_level_agreement_results": ["id", "firstResponseElapsedHours", "firstResponseInitiatingResourceID", "firstResponseResourceID", "isFirstResponseMet", "isResolutionMet", "isResolutionPlanMet", "resolutionElapsedHours", "resolutionPlanElapsedHours", "resolutionPlanResourceID", "resolutionResourceID", "serviceLevelAgreementName", "ticketID", "soapParentPropertyId"],
|
|
20167
20231
|
"services": ["id", "billingCodeID", "createDate", "creatorResourceID", "description", "invoiceDescription", "isActive", "lastModifiedDate", "markupRate", "name", "periodType", "serviceLevelAgreementID", "unitCost", "unitPrice", "updateResourceID", "vendorCompanyID", "manufacturerServiceProvider", "manufacturerServiceProviderProductNumber", "catalogNumberPartNumber", "sku", "internalID", "externalID", "url", "userDefinedFields"],
|
|
20232
|
+
"shipping_types": ["id", "billingCodeID", "description", "isActive", "name"],
|
|
20168
20233
|
"skills": ["id", "categoryID", "description", "isActive", "name"],
|
|
20169
20234
|
"subscription_periods": ["id", "periodCost", "periodDate", "periodPrice", "postedDate", "purchaseOrderNumber", "subscriptionID", "soapParentPropertyId"],
|
|
20170
20235
|
"subscriptions": ["id", "configurationItemID", "description", "effectiveDate", "expirationDate", "impersonatorCreatorResourceID", "materialCodeID", "organizationalLevelAssociationID", "periodCost", "periodPrice", "periodType", "purchaseOrderNumber", "status", "subscriptionName", "totalCost", "totalPrice", "vendorID", "userDefinedFields"],
|
|
@@ -20468,11 +20533,14 @@ var ROW_FK_TABLES = {
|
|
|
20468
20533
|
configurationItemCategoryID: "configurationItemCategory"
|
|
20469
20534
|
};
|
|
20470
20535
|
var isResourceFkField = (field) => field === "resourceID" || field.endsWith("ResourceID");
|
|
20536
|
+
function rowFkTable(resourceKey, field) {
|
|
20537
|
+
return resourceKey === "shipping_types" && field === "billingCodeID" ? void 0 : ROW_FK_TABLES[field];
|
|
20538
|
+
}
|
|
20471
20539
|
function rowNamePlan(rows, resourceKey, picklistFields = []) {
|
|
20472
20540
|
const builder = createNamePlan(picklistFields, resourceKey);
|
|
20473
20541
|
for (const row of rows) {
|
|
20474
20542
|
for (const [field, value] of Object.entries(row)) {
|
|
20475
|
-
const table =
|
|
20543
|
+
const table = rowFkTable(resourceKey, field);
|
|
20476
20544
|
if (table !== void 0) builder.addFk(table, value);
|
|
20477
20545
|
else if (isResourceFkField(field)) builder.addResource(value);
|
|
20478
20546
|
}
|
|
@@ -20510,7 +20578,7 @@ async function labelRows(client, resourceKey, rows) {
|
|
|
20510
20578
|
if (!isAutotaskError(err) || err.code === "ABORTED") throw err;
|
|
20511
20579
|
}
|
|
20512
20580
|
}
|
|
20513
|
-
const labelled = (field) => picklistFields.includes(field) ||
|
|
20581
|
+
const labelled = (field) => picklistFields.includes(field) || rowFkTable(resourceKey, field) !== void 0 || isResourceFkField(field);
|
|
20514
20582
|
if (![...keys].some(labelled)) return { rows: [...rows] };
|
|
20515
20583
|
const plan = rowNamePlan(rows, resourceKey, picklistFields);
|
|
20516
20584
|
const names = plan.resourceIds.length === 0 && plan.recordFks.length === 0 && picklistFields.length === 0 ? void 0 : await resolveCompositeNames(client.http, plan);
|
|
@@ -20519,7 +20587,7 @@ async function labelRows(client, resourceKey, rows) {
|
|
|
20519
20587
|
for (const [field, value] of Object.entries(row)) {
|
|
20520
20588
|
const has2 = value !== null && value !== void 0 && names !== void 0;
|
|
20521
20589
|
if (picklistFields.includes(field)) r[`${field}Label`] = has2 ? names.labelFor(field, value) : null;
|
|
20522
|
-
const table =
|
|
20590
|
+
const table = rowFkTable(resourceKey, field);
|
|
20523
20591
|
const set = has2 && (table === "company" || value !== 0 && value !== "0");
|
|
20524
20592
|
if (table !== void 0) r[`${field}Name`] = set && isVendorId(value) ? untrustedName(names.recordName(table, value)) : null;
|
|
20525
20593
|
else if (isResourceFkField(field)) r[`${field}Name`] = set && isVendorId(value) ? untrustedName(names.resourceName(value)) : null;
|
|
@@ -23858,6 +23926,16 @@ var SIMPLE_RESOURCES = [
|
|
|
23858
23926
|
helpers: { search: false, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
23859
23927
|
opForms: { get: "scoped", create: "scoped", update: "scoped", delete: "scoped" }
|
|
23860
23928
|
},
|
|
23929
|
+
{
|
|
23930
|
+
key: "internal_locations",
|
|
23931
|
+
accessor: "internalLocations",
|
|
23932
|
+
resourcePath: "/V1.0/InternalLocations",
|
|
23933
|
+
deletable: false,
|
|
23934
|
+
udfCapable: false,
|
|
23935
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: false, update: false, delete: false, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
|
|
23936
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
23937
|
+
opForms: { get: "global" }
|
|
23938
|
+
},
|
|
23861
23939
|
{
|
|
23862
23940
|
key: "inventory_locations",
|
|
23863
23941
|
accessor: "inventoryLocations",
|
|
@@ -24356,6 +24434,16 @@ var SIMPLE_RESOURCES = [
|
|
|
24356
24434
|
helpers: { search: true, resolve: true, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
24357
24435
|
opForms: { get: "global", create: "global", update: "global" }
|
|
24358
24436
|
},
|
|
24437
|
+
{
|
|
24438
|
+
key: "shipping_types",
|
|
24439
|
+
accessor: "shippingTypes",
|
|
24440
|
+
resourcePath: "/V1.0/ShippingTypes",
|
|
24441
|
+
deletable: false,
|
|
24442
|
+
udfCapable: false,
|
|
24443
|
+
ops: { query: true, queryAll: false, count: true, get: true, create: false, update: false, delete: false, getEntityInfo: true, getFieldInfo: true, getUdfInfo: true },
|
|
24444
|
+
helpers: { search: false, resolve: false, getContext: false, createIfNotExists: false, attachToDocument: false, findBy: [] },
|
|
24445
|
+
opForms: { get: "global" }
|
|
24446
|
+
},
|
|
24359
24447
|
{
|
|
24360
24448
|
key: "skills",
|
|
24361
24449
|
accessor: "skills",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/capabilities.ts
|
|
2
2
|
var CAPABILITY_PLAN_HASHES = {
|
|
3
|
-
"B": "
|
|
4
|
-
"A": "
|
|
5
|
-
"operations": "
|
|
3
|
+
"B": "fe0c9ce6a957bb730c1bdb9fb46498e61e2d04cc1cdd861d796ac26f982ab505",
|
|
4
|
+
"A": "fe0c9ce6a957bb730c1bdb9fb46498e61e2d04cc1cdd861d796ac26f982ab505",
|
|
5
|
+
"operations": "fe0c9ce6a957bb730c1bdb9fb46498e61e2d04cc1cdd861d796ac26f982ab505"
|
|
6
6
|
};
|
|
7
7
|
var cached = null;
|
|
8
8
|
function loadCapabilities() {
|