@syncmatters/script-api 1.0.31 → 1.0.33
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/lib/connection.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import API from "../index.js";
|
|
2
2
|
import { CodedError } from "./coded-error.js";
|
|
3
|
+
import type { ObjectSemanticType } from "./generated/object-semantic-type.generated.js";
|
|
4
|
+
import type { RowMatchRuleType } from "./generated/row-match-rule-type.generated.js";
|
|
3
5
|
import { FileProvider } from "./utilities/file-provider/file-provider.js";
|
|
4
6
|
import { SyncEndpoint } from "./sync.js";
|
|
5
7
|
export interface Connection {
|
|
@@ -217,7 +219,10 @@ export interface QueryOptions {
|
|
|
217
219
|
/** @deprecated (use standard fields filter) system specific property filters; allowed values are defined in meta.queryFilter.propertyFilter */
|
|
218
220
|
propertyFilter?: any;
|
|
219
221
|
}
|
|
220
|
-
export type RowMatchRuleType
|
|
222
|
+
export type { RowMatchRuleType } from "./generated/row-match-rule-type.generated.js";
|
|
223
|
+
export { RowMatchRuleTypeValues } from "./generated/row-match-rule-type.generated.js";
|
|
224
|
+
export type { ObjectSemanticType } from "./generated/object-semantic-type.generated.js";
|
|
225
|
+
export { ObjectSemanticTypeValues } from "./generated/object-semantic-type.generated.js";
|
|
221
226
|
export type RowMatchRuleOrder = "oldest" | "newest" | "alphabetical";
|
|
222
227
|
/** source row data used by the destination connector when matching a source row to a destination row */
|
|
223
228
|
export interface RowMatchData {
|
|
@@ -384,6 +389,12 @@ export interface ObjectMeta {
|
|
|
384
389
|
default?: boolean;
|
|
385
390
|
/** set by meta() when a selected object can no longer be described (e.g. deleted); the platform keeps the cached copy */
|
|
386
391
|
unavailable?: ObjectUnavailableReason;
|
|
392
|
+
/**
|
|
393
|
+
* the kind of record this object holds, for field auto-mapping: a canonical entity ("company"), an
|
|
394
|
+
* entity with its sub-type ("company.vendor"), or "unknown" when no entity fits; absent lets the
|
|
395
|
+
* platform detect it from the object name
|
|
396
|
+
*/
|
|
397
|
+
semanticType?: ObjectSemanticType;
|
|
387
398
|
}
|
|
388
399
|
/**
|
|
389
400
|
* ObjectUnavailableReason describes why a selected object could not be returned in hte meta refresh response: "deleted" (gone
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type ObjectSemanticType = "unknown" /** Unknown: no entity fits (a join object, an audit log); the name resolver is not applied */ | "contact" /** Contact: a person you deal with */ | "company" /** Company: an organization */ | "deal" /** Deal: a sales opportunity in a pipeline */ | "quote" /** Quote: a priced offer sent to a customer */ | "lead" /** Lead: an unqualified prospect */ | "user" /** User: a person who works in the system */ | "activity" /** Activity: a logged interaction or to-do */ | "ticket" /** Ticket: a support or service request */ | "project" /** Project: a piece of delivery work */ | "product" /** Product: something you sell or buy */ | "line_item" /** Line Item: one line of a deal, quote, order or invoice */ | "order" /** Order: a commitment to buy or sell */ | "invoice" /** Invoice: a request for payment */ | "payment" /** Payment: money received or paid */ | "shipment" /** Shipment: goods sent or received */ | "location" /** Location: a place or address */ | "contract" /** Contract: an agreement with terms over time */ | "campaign" /** Campaign: a marketing effort */ | "time_entry" /** Time Entry: time logged against work */ | "expense" /** Expense: a cost incurred by a person */ | "asset" /** Asset: equipment or property that is tracked */ | "document" /** Document: a file or its record */ | "journal_entry" /** Journal Entry: a general ledger posting */ | "reference" /** Reference: a lookup or code list */ | "job_requisition" /** Job Requisition: an open role being recruited for */ | "contact.candidate" /** Candidate: a person applying for a role */ | "company.account" /** Account: a customer company in a CRM */ | "company.customer" /** Customer: a company you sell to */ | "company.vendor" /** Vendor: a company you buy from */ | "company.partner" /** Partner: a company you work with to sell or deliver */ | "company.competitor" /** Competitor: a company you compete with */ | "company.subsidiary" /** Subsidiary: a legal entity within your own group */ | "deal.opportunity" /** Opportunity: a deal in a CRM pipeline */ | "quote.estimate" /** Estimate: a priced estimate of work or goods */ | "quote.proposal" /** Proposal: a priced proposal sent to a prospect */ | "user.employee" /** Employee: a person employed by the organization */ | "user.resource" /** Resource: a person scheduled onto work */ | "activity.task" /** Task: a to-do item */ | "activity.call" /** Call: a logged phone call */ | "activity.email" /** Email: a logged email message */ | "activity.meeting" /** Meeting: a scheduled meeting or event */ | "activity.note" /** Note: a free-text note */ | "ticket.case" /** Case: a customer support case */ | "ticket.issue" /** Issue: a tracked issue or bug */ | "ticket.incident" /** Incident: an IT service incident */ | "ticket.work_order" /** Work Order: a field service job */ | "project.job" /** Job: a billable job (professional services) */ | "product.item" /** Item: an inventory or catalog item */ | "order.sales_order" /** Sales Order: an order from a customer */ | "order.purchase_order" /** Purchase Order: an order to a vendor */ | "order.transfer_order" /** Transfer Order: stock moved between locations */ | "order.return_authorization" /** Return Authorization: an approved customer return */ | "order.purchase_requisition" /** Purchase Requisition: an internal request to buy */ | "invoice.bill" /** Bill: an invoice received from a vendor */ | "invoice.credit_memo" /** Credit Memo: a credit against an invoice */ | "invoice.cash_sale" /** Cash Sale: a sale paid at the time of sale */ | "payment.refund" /** Refund: money returned to a customer */ | "payment.deposit" /** Deposit: money paid in advance or banked */ | "payment.vendor_payment" /** Vendor Payment: money paid to a vendor */ | "shipment.fulfillment" /** Fulfillment: goods shipped against an order */ | "shipment.item_receipt" /** Item Receipt: goods received from a vendor */ | "shipment.return" /** Return: goods physically returned */ | "location.site" /** Site: a customer or company site */ | "location.address" /** Address: a postal address record */ | "location.warehouse" /** Warehouse: a place stock is held */ | "contract.agreement" /** Agreement: a service or sales agreement */ | "contract.subscription" /** Subscription: a recurring subscription */ | "contract.entitlement" /** Entitlement: support a customer is entitled to */ | "campaign.marketing_event" /** Marketing Event: a webinar, conference or similar event */ | "time_entry.worklog" /** Worklog: time logged against a task or issue */ | "time_entry.timesheet" /** Timesheet: a period's time for one person */ | "expense.expense_report" /** Expense Report: a claim grouping expenses */ | "asset.configuration_item" /** Configuration Item: an IT asset under management */ | "asset.fixed_asset" /** Fixed Asset: a depreciating asset on the books */ | "document.file" /** File: a stored file */ | "document.attachment" /** Attachment: a file attached to another record */ | "journal_entry.manual_journal" /** Manual Journal: a hand-entered journal */ | "reference.lookup" /** Lookup: a generic lookup list */ | "reference.code_list" /** Code List: a list of codes and names */ | "reference.currency" /** Currency: the currencies in use */ | "reference.payment_terms" /** Payment Terms: when payment is due */ | "reference.price_level" /** Price Level: a price list or tier */ | "reference.payment_method" /** Payment Method: how payment is made */ | "reference.unit_of_measure" /** Unit of Measure: the units quantities are counted in */ | "reference.tax_code" /** Tax Code: a tax rate or code */ | "reference.accounting_period" /** Accounting Period: a financial period */ | "reference.category" /** Category: a classification list */ | "reference.status" /** Status: a list of statuses */ | "reference.role" /** Role: a list of roles */ | "reference.gl_account" /** GL Account: a general ledger account */ | "reference.department"; /** Department: an organizational department */
|
|
2
|
+
export declare const ObjectSemanticTypeValues: readonly ObjectSemanticType[];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type RowMatchRuleType = "id" /** match source 'id' to a selected field on dest row */ | "name[ci]" /** select source field for 'name' to match the (hard coded) name value on dest row */ | "email[ci]" /** select source field for 'email' to match the (hard coded) email value on dest row */ | "domain[ci]" /** select source field for 'domain' to match the (hard coded) domain value on dest row */ | "first_and_last_name[ci]" /** select source fields for 'first' and 'last' names to match the (hard coded) first and last name values on dest row */ | "field_value_equals[ci]" /** select a source field and match to a selected field on dest row */ | "field_values_equal[ci]"; /** select 1 to 5 source/destination field pairs; a dest row matches when every pair is equal */
|
|
2
|
+
export declare const RowMatchRuleTypeValues: readonly RowMatchRuleType[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncmatters/script-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "TypeScript type definitions for the SyncMatters script API (types only - scripts execute on the SyncMatters platform)",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"author": "SyncMatters",
|
|
30
30
|
"homepage": "https://syncmatters.com",
|
|
31
|
-
"typesContentHash": "
|
|
31
|
+
"typesContentHash": "16e6abb1aabc93c5d76640d7bceda6c10e3d44d1a2234817aa0eb33b79a3951b",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@types/node": "*"
|
|
34
34
|
}
|