@keystrokehq/salesforce 0.1.3 → 0.1.4
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/README.md +2 -2
- package/dist/actions/add-opportunity-line-item.cjs +1 -1
- package/dist/actions/add-opportunity-line-item.cjs.map +1 -1
- package/dist/actions/add-opportunity-line-item.mjs +1 -1
- package/dist/actions/add-opportunity-line-item.mjs.map +1 -1
- package/dist/actions/create-bulk-ingest-job.cjs +53 -0
- package/dist/actions/create-bulk-ingest-job.cjs.map +1 -0
- package/dist/actions/create-bulk-ingest-job.d.cts +57 -0
- package/dist/actions/create-bulk-ingest-job.d.cts.map +1 -0
- package/dist/actions/create-bulk-ingest-job.d.mts +57 -0
- package/dist/actions/create-bulk-ingest-job.d.mts.map +1 -0
- package/dist/actions/create-bulk-ingest-job.mjs +50 -0
- package/dist/actions/create-bulk-ingest-job.mjs.map +1 -0
- package/dist/actions/create-bulk-query-job.cjs +43 -0
- package/dist/actions/create-bulk-query-job.cjs.map +1 -0
- package/dist/actions/create-bulk-query-job.d.cts +48 -0
- package/dist/actions/create-bulk-query-job.d.cts.map +1 -0
- package/dist/actions/create-bulk-query-job.d.mts +48 -0
- package/dist/actions/create-bulk-query-job.d.mts.map +1 -0
- package/dist/actions/create-bulk-query-job.mjs +40 -0
- package/dist/actions/create-bulk-query-job.mjs.map +1 -0
- package/dist/actions/create-custom-field.cjs +1 -1
- package/dist/actions/create-custom-field.cjs.map +1 -1
- package/dist/actions/create-custom-field.mjs +1 -1
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/execute-global-quick-action.cjs +32 -0
- package/dist/actions/execute-global-quick-action.cjs.map +1 -0
- package/dist/actions/execute-global-quick-action.d.cts +28 -0
- package/dist/actions/execute-global-quick-action.d.cts.map +1 -0
- package/dist/actions/execute-global-quick-action.d.mts +28 -0
- package/dist/actions/execute-global-quick-action.d.mts.map +1 -0
- package/dist/actions/execute-global-quick-action.mjs +31 -0
- package/dist/actions/execute-global-quick-action.mjs.map +1 -0
- package/dist/actions/execute-invocable-action.cjs +28 -0
- package/dist/actions/execute-invocable-action.cjs.map +1 -0
- package/dist/actions/execute-invocable-action.d.cts +29 -0
- package/dist/actions/execute-invocable-action.d.cts.map +1 -0
- package/dist/actions/execute-invocable-action.d.mts +29 -0
- package/dist/actions/execute-invocable-action.d.mts.map +1 -0
- package/dist/actions/execute-invocable-action.mjs +27 -0
- package/dist/actions/execute-invocable-action.mjs.map +1 -0
- package/dist/actions/get-all-custom-objects.cjs +1 -1
- package/dist/actions/get-all-custom-objects.cjs.map +1 -1
- package/dist/actions/get-all-custom-objects.mjs +1 -1
- package/dist/actions/get-all-custom-objects.mjs.map +1 -1
- package/dist/actions/get-app.cjs +1 -1
- package/dist/actions/get-app.cjs.map +1 -1
- package/dist/actions/get-app.d.cts +2 -2
- package/dist/actions/get-app.d.mts +2 -2
- package/dist/actions/get-app.mjs +1 -1
- package/dist/actions/get-app.mjs.map +1 -1
- package/dist/actions/get-consent-action.cjs +1 -1
- package/dist/actions/get-consent-action.cjs.map +1 -1
- package/dist/actions/get-consent-action.mjs +1 -1
- package/dist/actions/get-consent-action.mjs.map +1 -1
- package/dist/actions/get-last-selected-app.cjs +1 -1
- package/dist/actions/get-last-selected-app.cjs.map +1 -1
- package/dist/actions/get-last-selected-app.d.cts +2 -2
- package/dist/actions/get-last-selected-app.d.mts +2 -2
- package/dist/actions/get-last-selected-app.mjs +1 -1
- package/dist/actions/get-last-selected-app.mjs.map +1 -1
- package/dist/actions/get-report-instance.cjs +117 -0
- package/dist/actions/get-report-instance.cjs.map +1 -0
- package/dist/actions/get-report-instance.d.cts +116 -0
- package/dist/actions/get-report-instance.d.cts.map +1 -0
- package/dist/actions/get-report-instance.d.mts +116 -0
- package/dist/actions/get-report-instance.d.mts.map +1 -0
- package/dist/actions/get-report-instance.mjs +116 -0
- package/dist/actions/get-report-instance.mjs.map +1 -0
- package/dist/actions/get-support.cjs +6 -6
- package/dist/actions/get-support.cjs.map +1 -1
- package/dist/actions/get-support.d.cts +6 -6
- package/dist/actions/get-support.d.mts +6 -6
- package/dist/actions/get-support.mjs +6 -6
- package/dist/actions/get-support.mjs.map +1 -1
- package/dist/actions/index.cjs +14 -4
- package/dist/actions/index.d.cts +8 -3
- package/dist/actions/index.d.mts +8 -3
- package/dist/actions/index.mjs +8 -3
- package/dist/actions/list-dashboards.cjs +1 -1
- package/dist/actions/list-dashboards.cjs.map +1 -1
- package/dist/actions/list-dashboards.mjs +1 -1
- package/dist/actions/list-dashboards.mjs.map +1 -1
- package/dist/actions/list-reports.cjs +1 -1
- package/dist/actions/list-reports.cjs.map +1 -1
- package/dist/actions/list-reports.mjs +1 -1
- package/dist/actions/list-reports.mjs.map +1 -1
- package/dist/actions/mass-transfer-ownership.cjs +1 -1
- package/dist/actions/mass-transfer-ownership.cjs.map +1 -1
- package/dist/actions/mass-transfer-ownership.mjs +1 -1
- package/dist/actions/mass-transfer-ownership.mjs.map +1 -1
- package/dist/actions/query-more.cjs +21 -0
- package/dist/actions/query-more.cjs.map +1 -0
- package/dist/actions/query-more.d.cts +18 -0
- package/dist/actions/query-more.d.cts.map +1 -0
- package/dist/actions/query-more.d.mts +18 -0
- package/dist/actions/query-more.d.mts.map +1 -0
- package/dist/actions/query-more.mjs +18 -0
- package/dist/actions/query-more.mjs.map +1 -0
- package/dist/actions/run-report-async.cjs +30 -0
- package/dist/actions/run-report-async.cjs.map +1 -0
- package/dist/actions/run-report-async.d.cts +27 -0
- package/dist/actions/run-report-async.d.cts.map +1 -0
- package/dist/actions/run-report-async.d.mts +27 -0
- package/dist/actions/run-report-async.d.mts.map +1 -0
- package/dist/actions/run-report-async.mjs +27 -0
- package/dist/actions/run-report-async.mjs.map +1 -0
- package/dist/actions/run-report.cjs +1 -1
- package/dist/actions/run-report.cjs.map +1 -1
- package/dist/actions/run-report.mjs +1 -1
- package/dist/actions/run-report.mjs.map +1 -1
- package/dist/actions/search-knowledge-articles.cjs +2 -2
- package/dist/actions/search-knowledge-articles.cjs.map +1 -1
- package/dist/actions/search-knowledge-articles.d.cts +5 -5
- package/dist/actions/search-knowledge-articles.d.mts +5 -5
- package/dist/actions/search-knowledge-articles.mjs +2 -2
- package/dist/actions/search-knowledge-articles.mjs.map +1 -1
- package/dist/actions/send-mass-email.cjs +1 -1
- package/dist/actions/send-mass-email.cjs.map +1 -1
- package/dist/actions/send-mass-email.mjs +1 -1
- package/dist/actions/send-mass-email.mjs.map +1 -1
- package/dist/actions/set-user-password.cjs +6 -3
- package/dist/actions/set-user-password.cjs.map +1 -1
- package/dist/actions/set-user-password.d.cts +2 -1
- package/dist/actions/set-user-password.d.cts.map +1 -1
- package/dist/actions/set-user-password.d.mts +2 -1
- package/dist/actions/set-user-password.d.mts.map +1 -1
- package/dist/actions/set-user-password.mjs +6 -3
- package/dist/actions/set-user-password.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/dist/index.cjs +14 -4
- package/dist/index.d.cts +8 -3
- package/dist/index.d.mts +8 -3
- package/dist/index.mjs +8 -3
- package/package.json +1 -1
- package/dist/actions/get-mru-list-view-metadata.cjs +0 -72
- package/dist/actions/get-mru-list-view-metadata.cjs.map +0 -1
- package/dist/actions/get-mru-list-view-metadata.d.cts +0 -58
- package/dist/actions/get-mru-list-view-metadata.d.cts.map +0 -1
- package/dist/actions/get-mru-list-view-metadata.d.mts +0 -58
- package/dist/actions/get-mru-list-view-metadata.d.mts.map +0 -1
- package/dist/actions/get-mru-list-view-metadata.mjs +0 -71
- package/dist/actions/get-mru-list-view-metadata.mjs.map +0 -1
- package/dist/actions/get-mru-list-view-records.cjs +0 -52
- package/dist/actions/get-mru-list-view-records.cjs.map +0 -1
- package/dist/actions/get-mru-list-view-records.d.cts +0 -50
- package/dist/actions/get-mru-list-view-records.d.cts.map +0 -1
- package/dist/actions/get-mru-list-view-records.d.mts +0 -50
- package/dist/actions/get-mru-list-view-records.d.mts.map +0 -1
- package/dist/actions/get-mru-list-view-records.mjs +0 -51
- package/dist/actions/get-mru-list-view-records.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ let zod = require("zod");
|
|
|
4
4
|
const SalesforceAddOpportunityLineItemInput = zod.z.object({
|
|
5
5
|
discount: zod.z.number().describe("Discount percentage (0-100). Cannot be used with TotalPrice.").optional(),
|
|
6
6
|
quantity: zod.z.number().describe("The quantity of the product to add."),
|
|
7
|
-
unit_price: zod.z.number().describe("The sales price per unit.
|
|
7
|
+
unit_price: zod.z.number().describe("The sales price per unit. Provide either unit_price or total_price — Salesforce does NOT auto-fill the price from the pricebook entry on insert, and omitting both fails with FIELD_INTEGRITY_EXCEPTION.").optional(),
|
|
8
8
|
description: zod.z.string().default("").describe("Optional description for this line item.").optional(),
|
|
9
9
|
total_price: zod.z.number().describe("The total price for this line item. Cannot be used with UnitPrice or Discount.").optional(),
|
|
10
10
|
service_date: zod.z.string().describe("Service date for the product in YYYY-MM-DD format.").optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-opportunity-line-item.cjs","names":["z","action"],"sources":["../../src/actions/add-opportunity-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceAddOpportunityLineItemInput = z.object({\n discount: z.number().describe(\"Discount percentage (0-100). Cannot be used with TotalPrice.\").optional(),\n quantity: z.number().describe(\"The quantity of the product to add.\"),\n unit_price: z.number().describe(\"The sales price per unit.
|
|
1
|
+
{"version":3,"file":"add-opportunity-line-item.cjs","names":["z","action"],"sources":["../../src/actions/add-opportunity-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceAddOpportunityLineItemInput = z.object({\n discount: z.number().describe(\"Discount percentage (0-100). Cannot be used with TotalPrice.\").optional(),\n quantity: z.number().describe(\"The quantity of the product to add.\"),\n unit_price: z.number().describe(\"The sales price per unit. Provide either unit_price or total_price — Salesforce does NOT auto-fill the price from the pricebook entry on insert, and omitting both fails with FIELD_INTEGRITY_EXCEPTION.\").optional(),\n description: z.string().default(\"\").describe(\"Optional description for this line item.\").optional(),\n total_price: z.number().describe(\"The total price for this line item. Cannot be used with UnitPrice or Discount.\").optional(),\n service_date: z.string().describe(\"Service date for the product in YYYY-MM-DD format.\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Dictionary of custom field API names and their values. Custom field names typically end with '__c'.\").optional(),\n opportunity_id: z.string().describe(\"The Salesforce ID of the opportunity to add a product to.\"),\n pricebook_entry_id: z.string().describe(\"The ID of the PricebookEntry that contains the product and price information. This links to a specific product in a specific pricebook. Entry must be active and match the opportunity's pricebook and currency; mismatches cause REQUIRED_FIELD_MISSING or INVALID_CROSS_REFERENCE_KEY errors. Use SALESFORCE_LIST_PRICEBOOK_ENTRIES to find valid entries.\"),\n});\nconst SalesforceAddOpportunityLineItem_ErrorDetailSchema = z.object({\n fields: z.array(z.string()).describe(\"Array of field names associated with the error. Empty array for record-level errors.\"),\n message: z.string().describe(\"Human-readable description of the error that occurred.\").nullable(),\n statusCode: z.string().describe(\"The error code identifying the type of error (e.g., REQUIRED_FIELD_MISSING, UNABLE_TO_LOCK_ROW, MALFORMED_ID, INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY).\").nullable(),\n}).passthrough().describe(\"Represents an error returned by Salesforce API.\");\nexport const SalesforceAddOpportunityLineItemOutput = z.object({\n id: z.string().describe(\"The unique Salesforce ID of the newly created OpportunityLineItem record.\").nullable(),\n errors: z.array(SalesforceAddOpportunityLineItem_ErrorDetailSchema).describe(\"Array of error objects. Empty array when the operation is successful.\"),\n success: z.boolean().describe(\"Indicates whether the operation was successful (true) or failed (false).\").nullable(),\n}).passthrough().describe(\"Response from Salesforce after creating an OpportunityLineItem.\");\n\nexport const salesforceAddOpportunityLineItem = action(\"SALESFORCE_ADD_OPPORTUNITY_LINE_ITEM\", {\n slug: \"salesforce-add-opportunity-line-item\",\n name: \"Add product to opportunity\",\n description: \"Adds a product (line item) to an opportunity. The product must exist in a pricebook entry that's associated with the opportunity's pricebook.\",\n input: SalesforceAddOpportunityLineItemInput,\n output: SalesforceAddOpportunityLineItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M,CAAC,CAAC,SAAS;CACrP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1K,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC/F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8VAA8V;AACxY,CAAC;AACD,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sFAAsF;CAC3H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;AAC5M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,uEAAuE;CACpJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
const SalesforceAddOpportunityLineItemInput = z.object({
|
|
5
5
|
discount: z.number().describe("Discount percentage (0-100). Cannot be used with TotalPrice.").optional(),
|
|
6
6
|
quantity: z.number().describe("The quantity of the product to add."),
|
|
7
|
-
unit_price: z.number().describe("The sales price per unit.
|
|
7
|
+
unit_price: z.number().describe("The sales price per unit. Provide either unit_price or total_price — Salesforce does NOT auto-fill the price from the pricebook entry on insert, and omitting both fails with FIELD_INTEGRITY_EXCEPTION.").optional(),
|
|
8
8
|
description: z.string().default("").describe("Optional description for this line item.").optional(),
|
|
9
9
|
total_price: z.number().describe("The total price for this line item. Cannot be used with UnitPrice or Discount.").optional(),
|
|
10
10
|
service_date: z.string().describe("Service date for the product in YYYY-MM-DD format.").optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-opportunity-line-item.mjs","names":[],"sources":["../../src/actions/add-opportunity-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceAddOpportunityLineItemInput = z.object({\n discount: z.number().describe(\"Discount percentage (0-100). Cannot be used with TotalPrice.\").optional(),\n quantity: z.number().describe(\"The quantity of the product to add.\"),\n unit_price: z.number().describe(\"The sales price per unit.
|
|
1
|
+
{"version":3,"file":"add-opportunity-line-item.mjs","names":[],"sources":["../../src/actions/add-opportunity-line-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceAddOpportunityLineItemInput = z.object({\n discount: z.number().describe(\"Discount percentage (0-100). Cannot be used with TotalPrice.\").optional(),\n quantity: z.number().describe(\"The quantity of the product to add.\"),\n unit_price: z.number().describe(\"The sales price per unit. Provide either unit_price or total_price — Salesforce does NOT auto-fill the price from the pricebook entry on insert, and omitting both fails with FIELD_INTEGRITY_EXCEPTION.\").optional(),\n description: z.string().default(\"\").describe(\"Optional description for this line item.\").optional(),\n total_price: z.number().describe(\"The total price for this line item. Cannot be used with UnitPrice or Discount.\").optional(),\n service_date: z.string().describe(\"Service date for the product in YYYY-MM-DD format.\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Dictionary of custom field API names and their values. Custom field names typically end with '__c'.\").optional(),\n opportunity_id: z.string().describe(\"The Salesforce ID of the opportunity to add a product to.\"),\n pricebook_entry_id: z.string().describe(\"The ID of the PricebookEntry that contains the product and price information. This links to a specific product in a specific pricebook. Entry must be active and match the opportunity's pricebook and currency; mismatches cause REQUIRED_FIELD_MISSING or INVALID_CROSS_REFERENCE_KEY errors. Use SALESFORCE_LIST_PRICEBOOK_ENTRIES to find valid entries.\"),\n});\nconst SalesforceAddOpportunityLineItem_ErrorDetailSchema = z.object({\n fields: z.array(z.string()).describe(\"Array of field names associated with the error. Empty array for record-level errors.\"),\n message: z.string().describe(\"Human-readable description of the error that occurred.\").nullable(),\n statusCode: z.string().describe(\"The error code identifying the type of error (e.g., REQUIRED_FIELD_MISSING, UNABLE_TO_LOCK_ROW, MALFORMED_ID, INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY).\").nullable(),\n}).passthrough().describe(\"Represents an error returned by Salesforce API.\");\nexport const SalesforceAddOpportunityLineItemOutput = z.object({\n id: z.string().describe(\"The unique Salesforce ID of the newly created OpportunityLineItem record.\").nullable(),\n errors: z.array(SalesforceAddOpportunityLineItem_ErrorDetailSchema).describe(\"Array of error objects. Empty array when the operation is successful.\"),\n success: z.boolean().describe(\"Indicates whether the operation was successful (true) or failed (false).\").nullable(),\n}).passthrough().describe(\"Response from Salesforce after creating an OpportunityLineItem.\");\n\nexport const salesforceAddOpportunityLineItem = action(\"SALESFORCE_ADD_OPPORTUNITY_LINE_ITEM\", {\n slug: \"salesforce-add-opportunity-line-item\",\n name: \"Add product to opportunity\",\n description: \"Adds a product (line item) to an opportunity. The product must exist in a pricebook entry that's associated with the opportunity's pricebook.\",\n input: SalesforceAddOpportunityLineItemInput,\n output: SalesforceAddOpportunityLineItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M,CAAC,CAAC,SAAS;CACrP,aAAa,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC5H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACjG,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC1K,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC/F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8VAA8V;AACxY,CAAC;AACD,MAAM,qDAAqD,EAAE,OAAO;CAClE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sFAAsF;CAC3H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;AAC5M,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAO3E,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAC9G,QAAQ,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,uEAAuE;EACpJ,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-bulk-ingest-job.ts
|
|
4
|
+
const SalesforceCreateBulkIngestJobInput = zod.z.object({
|
|
5
|
+
operation: zod.z.enum([
|
|
6
|
+
"insert",
|
|
7
|
+
"delete",
|
|
8
|
+
"hardDelete",
|
|
9
|
+
"update",
|
|
10
|
+
"upsert"
|
|
11
|
+
]).describe("The processing operation for the job. 'upsert' requires external_id_field_name. 'hardDelete' permanently deletes records (bypassing the Recycle Bin) and requires the 'Bulk API Hard Delete' user permission."),
|
|
12
|
+
line_ending: zod.z.enum(["LF", "CRLF"]).describe("Line ending used in the CSV data you will upload. Defaults to LF if omitted.").optional(),
|
|
13
|
+
object_type: zod.z.string().describe("The API name of the Salesforce object the job operates on (e.g., 'Account', 'Contact', 'MyObject__c'). Sent to the API as the 'object' field."),
|
|
14
|
+
content_type: zod.z.string().default("CSV").describe("Format of the data to be uploaded. Bulk API 2.0 ingest only supports 'CSV'.").optional(),
|
|
15
|
+
column_delimiter: zod.z.enum([
|
|
16
|
+
"BACKQUOTE",
|
|
17
|
+
"CARET",
|
|
18
|
+
"COMMA",
|
|
19
|
+
"PIPE",
|
|
20
|
+
"SEMICOLON",
|
|
21
|
+
"TAB"
|
|
22
|
+
]).describe("Column delimiter used in the CSV data you will upload. Defaults to COMMA if omitted.").optional(),
|
|
23
|
+
assignment_rule_id: zod.z.string().describe("The ID of a specific assignment rule to run for Case or Lead records. Optional.").optional(),
|
|
24
|
+
external_id_field_name: zod.z.string().describe("The external ID field API name used to match records. REQUIRED when operation is 'upsert'; ignored otherwise.").optional()
|
|
25
|
+
});
|
|
26
|
+
const SalesforceCreateBulkIngestJobOutput = zod.z.object({
|
|
27
|
+
id: zod.z.string().describe("The unique identifier for the created job.").nullable(),
|
|
28
|
+
state: zod.z.string().describe("Current job state. A freshly created job is 'Open' — upload data to it, then close it (state UploadComplete) to queue processing.").nullable(),
|
|
29
|
+
object: zod.z.string().describe("The object type the job operates on.").nullable(),
|
|
30
|
+
jobType: zod.z.string().describe("Type of job (e.g., V2Ingest).").nullable().optional(),
|
|
31
|
+
operation: zod.z.string().describe("The processing operation (insert, update, upsert, etc.).").nullable(),
|
|
32
|
+
apiVersion: zod.z.number().describe("Salesforce API version used for the job.").nullable(),
|
|
33
|
+
contentUrl: zod.z.string().describe("The URL to use for uploading the CSV data for this job (PUT .../jobs/ingest/{id}/batches).").nullable().optional(),
|
|
34
|
+
lineEnding: zod.z.string().describe("Line ending format (LF, CRLF).").nullable().optional(),
|
|
35
|
+
contentType: zod.z.string().describe("Format of the data (e.g., CSV).").nullable(),
|
|
36
|
+
createdById: zod.z.string().describe("ID of the user who created the job.").nullable(),
|
|
37
|
+
createdDate: zod.z.string().describe("ISO 8601 datetime when the job was created.").nullable(),
|
|
38
|
+
systemModstamp: zod.z.string().describe("ISO 8601 datetime when the job was last modified.").nullable(),
|
|
39
|
+
columnDelimiter: zod.z.string().describe("Column delimiter used in the CSV (COMMA, TAB, etc.).").nullable().optional(),
|
|
40
|
+
concurrencyMode: zod.z.string().describe("How the job processes batches (e.g., Parallel).").nullable(),
|
|
41
|
+
externalIdFieldName: zod.z.string().describe("External ID field name. Only present for upsert jobs.").nullable().optional()
|
|
42
|
+
}).passthrough().describe("The Bulk API 2.0 ingest job resource returned in the 'Open' state after creation.");
|
|
43
|
+
const salesforceCreateBulkIngestJob = require_action.action("SALESFORCE_CREATE_BULK_INGEST_JOB", {
|
|
44
|
+
slug: "salesforce-create-bulk-ingest-job",
|
|
45
|
+
name: "Create bulk ingest job",
|
|
46
|
+
description: "Create a Bulk API 2.0 ingest job (POST /jobs/ingest). Returns a job in the 'Open' state with an id and contentUrl. This is the first step of a bulk load: create the job here, upload CSV data to it (upload_job_data), then close it (close_or_abort_a_job with state=UploadComplete) to queue processing. Without this action the rest of the ingest-job family has no obtainable job_id.",
|
|
47
|
+
input: SalesforceCreateBulkIngestJobInput,
|
|
48
|
+
output: SalesforceCreateBulkIngestJobOutput
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
exports.salesforceCreateBulkIngestJob = salesforceCreateBulkIngestJob;
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=create-bulk-ingest-job.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bulk-ingest-job.cjs","names":["z","action"],"sources":["../../src/actions/create-bulk-ingest-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceCreateBulkIngestJobInput = z.object({\n operation: z.enum([\"insert\", \"delete\", \"hardDelete\", \"update\", \"upsert\"]).describe(\"The processing operation for the job. 'upsert' requires external_id_field_name. 'hardDelete' permanently deletes records (bypassing the Recycle Bin) and requires the 'Bulk API Hard Delete' user permission.\"),\n line_ending: z.enum([\"LF\", \"CRLF\"]).describe(\"Line ending used in the CSV data you will upload. Defaults to LF if omitted.\").optional(),\n object_type: z.string().describe(\"The API name of the Salesforce object the job operates on (e.g., 'Account', 'Contact', 'MyObject__c'). Sent to the API as the 'object' field.\"),\n content_type: z.string().default(\"CSV\").describe(\"Format of the data to be uploaded. Bulk API 2.0 ingest only supports 'CSV'.\").optional(),\n column_delimiter: z.enum([\"BACKQUOTE\", \"CARET\", \"COMMA\", \"PIPE\", \"SEMICOLON\", \"TAB\"]).describe(\"Column delimiter used in the CSV data you will upload. Defaults to COMMA if omitted.\").optional(),\n assignment_rule_id: z.string().describe(\"The ID of a specific assignment rule to run for Case or Lead records. Optional.\").optional(),\n external_id_field_name: z.string().describe(\"The external ID field API name used to match records. REQUIRED when operation is 'upsert'; ignored otherwise.\").optional(),\n});\nexport const SalesforceCreateBulkIngestJobOutput = z.object({\n id: z.string().describe(\"The unique identifier for the created job.\").nullable(),\n state: z.string().describe(\"Current job state. A freshly created job is 'Open' — upload data to it, then close it (state UploadComplete) to queue processing.\").nullable(),\n object: z.string().describe(\"The object type the job operates on.\").nullable(),\n jobType: z.string().describe(\"Type of job (e.g., V2Ingest).\").nullable().optional(),\n operation: z.string().describe(\"The processing operation (insert, update, upsert, etc.).\").nullable(),\n apiVersion: z.number().describe(\"Salesforce API version used for the job.\").nullable(),\n contentUrl: z.string().describe(\"The URL to use for uploading the CSV data for this job (PUT .../jobs/ingest/{id}/batches).\").nullable().optional(),\n lineEnding: z.string().describe(\"Line ending format (LF, CRLF).\").nullable().optional(),\n contentType: z.string().describe(\"Format of the data (e.g., CSV).\").nullable(),\n createdById: z.string().describe(\"ID of the user who created the job.\").nullable(),\n createdDate: z.string().describe(\"ISO 8601 datetime when the job was created.\").nullable(),\n systemModstamp: z.string().describe(\"ISO 8601 datetime when the job was last modified.\").nullable(),\n columnDelimiter: z.string().describe(\"Column delimiter used in the CSV (COMMA, TAB, etc.).\").nullable().optional(),\n concurrencyMode: z.string().describe(\"How the job processes batches (e.g., Parallel).\").nullable(),\n externalIdFieldName: z.string().describe(\"External ID field name. Only present for upsert jobs.\").nullable().optional(),\n}).passthrough().describe(\"The Bulk API 2.0 ingest job resource returned in the 'Open' state after creation.\");\n\nexport const salesforceCreateBulkIngestJob = action(\"SALESFORCE_CREATE_BULK_INGEST_JOB\", {\n slug: \"salesforce-create-bulk-ingest-job\",\n name: \"Create bulk ingest job\",\n description: \"Create a Bulk API 2.0 ingest job (POST /jobs/ingest). Returns a job in the 'Open' state with an id and contentUrl. This is the first step of a bulk load: create the job here, upload CSV data to it (upload_job_data), then close it (close_or_abort_a_job with state=UploadComplete) to queue processing. Without this action the rest of the ingest-job family has no obtainable job_id.\",\n input: SalesforceCreateBulkIngestJobInput,\n output: SalesforceCreateBulkIngestJobOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAU;EAAc;EAAU;CAAQ,CAAC,CAAC,CAAC,SAAS,+MAA+M;CAClS,aAAaA,IAAAA,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACtI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+IAA+I;CAChL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzI,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAS;EAAS;EAAQ;EAAa;CAAK,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAChM,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACpI,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AACxK,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CACzK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAClG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mFAAmF;AAE7G,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-bulk-ingest-job.d.ts
|
|
4
|
+
declare const SalesforceCreateBulkIngestJobInput: z.ZodObject<{
|
|
5
|
+
operation: z.ZodEnum<{
|
|
6
|
+
insert: "insert";
|
|
7
|
+
delete: "delete";
|
|
8
|
+
hardDelete: "hardDelete";
|
|
9
|
+
update: "update";
|
|
10
|
+
upsert: "upsert";
|
|
11
|
+
}>;
|
|
12
|
+
line_ending: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
LF: "LF";
|
|
14
|
+
CRLF: "CRLF";
|
|
15
|
+
}>>;
|
|
16
|
+
object_type: z.ZodString;
|
|
17
|
+
content_type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
18
|
+
column_delimiter: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
BACKQUOTE: "BACKQUOTE";
|
|
20
|
+
CARET: "CARET";
|
|
21
|
+
COMMA: "COMMA";
|
|
22
|
+
PIPE: "PIPE";
|
|
23
|
+
SEMICOLON: "SEMICOLON";
|
|
24
|
+
TAB: "TAB";
|
|
25
|
+
}>>;
|
|
26
|
+
assignment_rule_id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
external_id_field_name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const SalesforceCreateBulkIngestJobOutput: z.ZodObject<{
|
|
30
|
+
id: z.ZodNullable<z.ZodString>;
|
|
31
|
+
state: z.ZodNullable<z.ZodString>;
|
|
32
|
+
object: z.ZodNullable<z.ZodString>;
|
|
33
|
+
jobType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
operation: z.ZodNullable<z.ZodString>;
|
|
35
|
+
apiVersion: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
contentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
lineEnding: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
contentType: z.ZodNullable<z.ZodString>;
|
|
39
|
+
createdById: z.ZodNullable<z.ZodString>;
|
|
40
|
+
createdDate: z.ZodNullable<z.ZodString>;
|
|
41
|
+
systemModstamp: z.ZodNullable<z.ZodString>;
|
|
42
|
+
columnDelimiter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
concurrencyMode: z.ZodNullable<z.ZodString>;
|
|
44
|
+
externalIdFieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
|
+
declare const salesforceCreateBulkIngestJob: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
|
+
operation: "insert" | "delete" | "hardDelete" | "update" | "upsert";
|
|
48
|
+
object_type: string;
|
|
49
|
+
line_ending?: "LF" | "CRLF" | undefined;
|
|
50
|
+
content_type?: string | undefined;
|
|
51
|
+
column_delimiter?: "BACKQUOTE" | "CARET" | "COMMA" | "PIPE" | "SEMICOLON" | "TAB" | undefined;
|
|
52
|
+
assignment_rule_id?: string | undefined;
|
|
53
|
+
external_id_field_name?: string | undefined;
|
|
54
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { salesforceCreateBulkIngestJob };
|
|
57
|
+
//# sourceMappingURL=create-bulk-ingest-job.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bulk-ingest-job.d.cts","names":[],"sources":["../../src/actions/create-bulk-ingest-job.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cASlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkBnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-bulk-ingest-job.d.ts
|
|
4
|
+
declare const SalesforceCreateBulkIngestJobInput: z.ZodObject<{
|
|
5
|
+
operation: z.ZodEnum<{
|
|
6
|
+
insert: "insert";
|
|
7
|
+
delete: "delete";
|
|
8
|
+
hardDelete: "hardDelete";
|
|
9
|
+
update: "update";
|
|
10
|
+
upsert: "upsert";
|
|
11
|
+
}>;
|
|
12
|
+
line_ending: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
LF: "LF";
|
|
14
|
+
CRLF: "CRLF";
|
|
15
|
+
}>>;
|
|
16
|
+
object_type: z.ZodString;
|
|
17
|
+
content_type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
18
|
+
column_delimiter: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
BACKQUOTE: "BACKQUOTE";
|
|
20
|
+
CARET: "CARET";
|
|
21
|
+
COMMA: "COMMA";
|
|
22
|
+
PIPE: "PIPE";
|
|
23
|
+
SEMICOLON: "SEMICOLON";
|
|
24
|
+
TAB: "TAB";
|
|
25
|
+
}>>;
|
|
26
|
+
assignment_rule_id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
external_id_field_name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const SalesforceCreateBulkIngestJobOutput: z.ZodObject<{
|
|
30
|
+
id: z.ZodNullable<z.ZodString>;
|
|
31
|
+
state: z.ZodNullable<z.ZodString>;
|
|
32
|
+
object: z.ZodNullable<z.ZodString>;
|
|
33
|
+
jobType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
operation: z.ZodNullable<z.ZodString>;
|
|
35
|
+
apiVersion: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
contentUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
lineEnding: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
contentType: z.ZodNullable<z.ZodString>;
|
|
39
|
+
createdById: z.ZodNullable<z.ZodString>;
|
|
40
|
+
createdDate: z.ZodNullable<z.ZodString>;
|
|
41
|
+
systemModstamp: z.ZodNullable<z.ZodString>;
|
|
42
|
+
columnDelimiter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
concurrencyMode: z.ZodNullable<z.ZodString>;
|
|
44
|
+
externalIdFieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
|
+
declare const salesforceCreateBulkIngestJob: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
|
+
operation: "insert" | "delete" | "hardDelete" | "update" | "upsert";
|
|
48
|
+
object_type: string;
|
|
49
|
+
line_ending?: "LF" | "CRLF" | undefined;
|
|
50
|
+
content_type?: string | undefined;
|
|
51
|
+
column_delimiter?: "BACKQUOTE" | "CARET" | "COMMA" | "PIPE" | "SEMICOLON" | "TAB" | undefined;
|
|
52
|
+
assignment_rule_id?: string | undefined;
|
|
53
|
+
external_id_field_name?: string | undefined;
|
|
54
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { salesforceCreateBulkIngestJob };
|
|
57
|
+
//# sourceMappingURL=create-bulk-ingest-job.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bulk-ingest-job.d.mts","names":[],"sources":["../../src/actions/create-bulk-ingest-job.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cASlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkBnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const salesforceCreateBulkIngestJob = action("SALESFORCE_CREATE_BULK_INGEST_JOB", {
|
|
4
|
+
slug: "salesforce-create-bulk-ingest-job",
|
|
5
|
+
name: "Create bulk ingest job",
|
|
6
|
+
description: "Create a Bulk API 2.0 ingest job (POST /jobs/ingest). Returns a job in the 'Open' state with an id and contentUrl. This is the first step of a bulk load: create the job here, upload CSV data to it (upload_job_data), then close it (close_or_abort_a_job with state=UploadComplete) to queue processing. Without this action the rest of the ingest-job family has no obtainable job_id.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
operation: z.enum([
|
|
9
|
+
"insert",
|
|
10
|
+
"delete",
|
|
11
|
+
"hardDelete",
|
|
12
|
+
"update",
|
|
13
|
+
"upsert"
|
|
14
|
+
]).describe("The processing operation for the job. 'upsert' requires external_id_field_name. 'hardDelete' permanently deletes records (bypassing the Recycle Bin) and requires the 'Bulk API Hard Delete' user permission."),
|
|
15
|
+
line_ending: z.enum(["LF", "CRLF"]).describe("Line ending used in the CSV data you will upload. Defaults to LF if omitted.").optional(),
|
|
16
|
+
object_type: z.string().describe("The API name of the Salesforce object the job operates on (e.g., 'Account', 'Contact', 'MyObject__c'). Sent to the API as the 'object' field."),
|
|
17
|
+
content_type: z.string().default("CSV").describe("Format of the data to be uploaded. Bulk API 2.0 ingest only supports 'CSV'.").optional(),
|
|
18
|
+
column_delimiter: z.enum([
|
|
19
|
+
"BACKQUOTE",
|
|
20
|
+
"CARET",
|
|
21
|
+
"COMMA",
|
|
22
|
+
"PIPE",
|
|
23
|
+
"SEMICOLON",
|
|
24
|
+
"TAB"
|
|
25
|
+
]).describe("Column delimiter used in the CSV data you will upload. Defaults to COMMA if omitted.").optional(),
|
|
26
|
+
assignment_rule_id: z.string().describe("The ID of a specific assignment rule to run for Case or Lead records. Optional.").optional(),
|
|
27
|
+
external_id_field_name: z.string().describe("The external ID field API name used to match records. REQUIRED when operation is 'upsert'; ignored otherwise.").optional()
|
|
28
|
+
}),
|
|
29
|
+
output: z.object({
|
|
30
|
+
id: z.string().describe("The unique identifier for the created job.").nullable(),
|
|
31
|
+
state: z.string().describe("Current job state. A freshly created job is 'Open' — upload data to it, then close it (state UploadComplete) to queue processing.").nullable(),
|
|
32
|
+
object: z.string().describe("The object type the job operates on.").nullable(),
|
|
33
|
+
jobType: z.string().describe("Type of job (e.g., V2Ingest).").nullable().optional(),
|
|
34
|
+
operation: z.string().describe("The processing operation (insert, update, upsert, etc.).").nullable(),
|
|
35
|
+
apiVersion: z.number().describe("Salesforce API version used for the job.").nullable(),
|
|
36
|
+
contentUrl: z.string().describe("The URL to use for uploading the CSV data for this job (PUT .../jobs/ingest/{id}/batches).").nullable().optional(),
|
|
37
|
+
lineEnding: z.string().describe("Line ending format (LF, CRLF).").nullable().optional(),
|
|
38
|
+
contentType: z.string().describe("Format of the data (e.g., CSV).").nullable(),
|
|
39
|
+
createdById: z.string().describe("ID of the user who created the job.").nullable(),
|
|
40
|
+
createdDate: z.string().describe("ISO 8601 datetime when the job was created.").nullable(),
|
|
41
|
+
systemModstamp: z.string().describe("ISO 8601 datetime when the job was last modified.").nullable(),
|
|
42
|
+
columnDelimiter: z.string().describe("Column delimiter used in the CSV (COMMA, TAB, etc.).").nullable().optional(),
|
|
43
|
+
concurrencyMode: z.string().describe("How the job processes batches (e.g., Parallel).").nullable(),
|
|
44
|
+
externalIdFieldName: z.string().describe("External ID field name. Only present for upsert jobs.").nullable().optional()
|
|
45
|
+
}).passthrough().describe("The Bulk API 2.0 ingest job resource returned in the 'Open' state after creation.")
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { salesforceCreateBulkIngestJob };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=create-bulk-ingest-job.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bulk-ingest-job.mjs","names":[],"sources":["../../src/actions/create-bulk-ingest-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceCreateBulkIngestJobInput = z.object({\n operation: z.enum([\"insert\", \"delete\", \"hardDelete\", \"update\", \"upsert\"]).describe(\"The processing operation for the job. 'upsert' requires external_id_field_name. 'hardDelete' permanently deletes records (bypassing the Recycle Bin) and requires the 'Bulk API Hard Delete' user permission.\"),\n line_ending: z.enum([\"LF\", \"CRLF\"]).describe(\"Line ending used in the CSV data you will upload. Defaults to LF if omitted.\").optional(),\n object_type: z.string().describe(\"The API name of the Salesforce object the job operates on (e.g., 'Account', 'Contact', 'MyObject__c'). Sent to the API as the 'object' field.\"),\n content_type: z.string().default(\"CSV\").describe(\"Format of the data to be uploaded. Bulk API 2.0 ingest only supports 'CSV'.\").optional(),\n column_delimiter: z.enum([\"BACKQUOTE\", \"CARET\", \"COMMA\", \"PIPE\", \"SEMICOLON\", \"TAB\"]).describe(\"Column delimiter used in the CSV data you will upload. Defaults to COMMA if omitted.\").optional(),\n assignment_rule_id: z.string().describe(\"The ID of a specific assignment rule to run for Case or Lead records. Optional.\").optional(),\n external_id_field_name: z.string().describe(\"The external ID field API name used to match records. REQUIRED when operation is 'upsert'; ignored otherwise.\").optional(),\n});\nexport const SalesforceCreateBulkIngestJobOutput = z.object({\n id: z.string().describe(\"The unique identifier for the created job.\").nullable(),\n state: z.string().describe(\"Current job state. A freshly created job is 'Open' — upload data to it, then close it (state UploadComplete) to queue processing.\").nullable(),\n object: z.string().describe(\"The object type the job operates on.\").nullable(),\n jobType: z.string().describe(\"Type of job (e.g., V2Ingest).\").nullable().optional(),\n operation: z.string().describe(\"The processing operation (insert, update, upsert, etc.).\").nullable(),\n apiVersion: z.number().describe(\"Salesforce API version used for the job.\").nullable(),\n contentUrl: z.string().describe(\"The URL to use for uploading the CSV data for this job (PUT .../jobs/ingest/{id}/batches).\").nullable().optional(),\n lineEnding: z.string().describe(\"Line ending format (LF, CRLF).\").nullable().optional(),\n contentType: z.string().describe(\"Format of the data (e.g., CSV).\").nullable(),\n createdById: z.string().describe(\"ID of the user who created the job.\").nullable(),\n createdDate: z.string().describe(\"ISO 8601 datetime when the job was created.\").nullable(),\n systemModstamp: z.string().describe(\"ISO 8601 datetime when the job was last modified.\").nullable(),\n columnDelimiter: z.string().describe(\"Column delimiter used in the CSV (COMMA, TAB, etc.).\").nullable().optional(),\n concurrencyMode: z.string().describe(\"How the job processes batches (e.g., Parallel).\").nullable(),\n externalIdFieldName: z.string().describe(\"External ID field name. Only present for upsert jobs.\").nullable().optional(),\n}).passthrough().describe(\"The Bulk API 2.0 ingest job resource returned in the 'Open' state after creation.\");\n\nexport const salesforceCreateBulkIngestJob = action(\"SALESFORCE_CREATE_BULK_INGEST_JOB\", {\n slug: \"salesforce-create-bulk-ingest-job\",\n name: \"Create bulk ingest job\",\n description: \"Create a Bulk API 2.0 ingest job (POST /jobs/ingest). Returns a job in the 'Open' state with an id and contentUrl. This is the first step of a bulk load: create the job here, upload CSV data to it (upload_job_data), then close it (close_or_abort_a_job with state=UploadComplete) to queue processing. Without this action the rest of the ingest-job family has no obtainable job_id.\",\n input: SalesforceCreateBulkIngestJobInput,\n output: SalesforceCreateBulkIngestJobOutput,\n});\n"],"mappings":";;AA+BA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BgD,EAAE,OAAO;EACzD,WAAW,EAAE,KAAK;GAAC;GAAU;GAAU;GAAc;GAAU;EAAQ,CAAC,CAAC,CAAC,SAAS,+MAA+M;EAClS,aAAa,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACtI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+IAA+I;EAChL,cAAc,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACzI,kBAAkB,EAAE,KAAK;GAAC;GAAa;GAAS;GAAS;GAAQ;GAAa;EAAK,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAChM,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACpI,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACxK,CAuBS;CACP,QAvBiD,EAAE,OAAO;EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;EACzK,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAClG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mFAOhB;AACV,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-bulk-query-job.ts
|
|
4
|
+
const SalesforceCreateBulkQueryJobInput = zod.z.object({
|
|
5
|
+
query: zod.z.string().describe("The SOQL query the job will run. For very large result sets, Bulk API 2.0 query jobs stream results as CSV pages."),
|
|
6
|
+
operation: zod.z.enum(["query", "queryAll"]).default("query").describe("'query' returns current rows; 'queryAll' also returns deleted and archived rows.").optional(),
|
|
7
|
+
line_ending: zod.z.enum(["LF", "CRLF"]).describe("Line ending for the CSV results. Defaults to LF if omitted.").optional(),
|
|
8
|
+
content_type: zod.z.string().default("CSV").describe("Format of the query results. Bulk API 2.0 query only supports 'CSV'.").optional(),
|
|
9
|
+
column_delimiter: zod.z.enum([
|
|
10
|
+
"BACKQUOTE",
|
|
11
|
+
"CARET",
|
|
12
|
+
"COMMA",
|
|
13
|
+
"PIPE",
|
|
14
|
+
"SEMICOLON",
|
|
15
|
+
"TAB"
|
|
16
|
+
]).describe("Column delimiter for the CSV results. Defaults to COMMA if omitted.").optional()
|
|
17
|
+
});
|
|
18
|
+
const SalesforceCreateBulkQueryJobOutput = zod.z.object({
|
|
19
|
+
id: zod.z.string().describe("The unique identifier for the created query job.").nullable(),
|
|
20
|
+
state: zod.z.string().describe("Current job state. A newly created query job is typically 'UploadComplete' and begins processing; poll get_job_info_query until 'JobComplete', then fetch results with get_job_query_result.").nullable(),
|
|
21
|
+
object: zod.z.string().describe("The primary object of the query, if reported.").nullable().optional(),
|
|
22
|
+
jobType: zod.z.string().describe("Type of job (e.g., V2Query).").nullable().optional(),
|
|
23
|
+
operation: zod.z.string().describe("The query operation (query or queryAll).").nullable(),
|
|
24
|
+
apiVersion: zod.z.number().describe("Salesforce API version used for the job.").nullable(),
|
|
25
|
+
lineEnding: zod.z.string().describe("Line ending format (LF, CRLF).").nullable().optional(),
|
|
26
|
+
contentType: zod.z.string().describe("Format of the results (e.g., CSV).").nullable(),
|
|
27
|
+
createdById: zod.z.string().describe("ID of the user who created the job.").nullable(),
|
|
28
|
+
createdDate: zod.z.string().describe("ISO 8601 datetime when the job was created.").nullable(),
|
|
29
|
+
systemModstamp: zod.z.string().describe("ISO 8601 datetime when the job was last modified.").nullable(),
|
|
30
|
+
columnDelimiter: zod.z.string().describe("Column delimiter used in the CSV results.").nullable().optional(),
|
|
31
|
+
concurrencyMode: zod.z.string().describe("How the job processes (e.g., Parallel).").nullable()
|
|
32
|
+
}).passthrough().describe("The Bulk API 2.0 query job resource returned after creation.");
|
|
33
|
+
const salesforceCreateBulkQueryJob = require_action.action("SALESFORCE_CREATE_BULK_QUERY_JOB", {
|
|
34
|
+
slug: "salesforce-create-bulk-query-job",
|
|
35
|
+
name: "Create bulk query job",
|
|
36
|
+
description: "Create a Bulk API 2.0 query job (POST /jobs/query) for a SOQL query over a large result set. Returns a job with an id; poll get_job_info_query until state is 'JobComplete', then retrieve CSV results with get_job_query_result. Without this action the Bulk query family has no obtainable job_id.",
|
|
37
|
+
input: SalesforceCreateBulkQueryJobInput,
|
|
38
|
+
output: SalesforceCreateBulkQueryJobOutput
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.salesforceCreateBulkQueryJob = salesforceCreateBulkQueryJob;
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=create-bulk-query-job.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bulk-query-job.cjs","names":["z","action"],"sources":["../../src/actions/create-bulk-query-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceCreateBulkQueryJobInput = z.object({\n query: z.string().describe(\"The SOQL query the job will run. For very large result sets, Bulk API 2.0 query jobs stream results as CSV pages.\"),\n operation: z.enum([\"query\", \"queryAll\"]).default(\"query\").describe(\"'query' returns current rows; 'queryAll' also returns deleted and archived rows.\").optional(),\n line_ending: z.enum([\"LF\", \"CRLF\"]).describe(\"Line ending for the CSV results. Defaults to LF if omitted.\").optional(),\n content_type: z.string().default(\"CSV\").describe(\"Format of the query results. Bulk API 2.0 query only supports 'CSV'.\").optional(),\n column_delimiter: z.enum([\"BACKQUOTE\", \"CARET\", \"COMMA\", \"PIPE\", \"SEMICOLON\", \"TAB\"]).describe(\"Column delimiter for the CSV results. Defaults to COMMA if omitted.\").optional(),\n});\nexport const SalesforceCreateBulkQueryJobOutput = z.object({\n id: z.string().describe(\"The unique identifier for the created query job.\").nullable(),\n state: z.string().describe(\"Current job state. A newly created query job is typically 'UploadComplete' and begins processing; poll get_job_info_query until 'JobComplete', then fetch results with get_job_query_result.\").nullable(),\n object: z.string().describe(\"The primary object of the query, if reported.\").nullable().optional(),\n jobType: z.string().describe(\"Type of job (e.g., V2Query).\").nullable().optional(),\n operation: z.string().describe(\"The query operation (query or queryAll).\").nullable(),\n apiVersion: z.number().describe(\"Salesforce API version used for the job.\").nullable(),\n lineEnding: z.string().describe(\"Line ending format (LF, CRLF).\").nullable().optional(),\n contentType: z.string().describe(\"Format of the results (e.g., CSV).\").nullable(),\n createdById: z.string().describe(\"ID of the user who created the job.\").nullable(),\n createdDate: z.string().describe(\"ISO 8601 datetime when the job was created.\").nullable(),\n systemModstamp: z.string().describe(\"ISO 8601 datetime when the job was last modified.\").nullable(),\n columnDelimiter: z.string().describe(\"Column delimiter used in the CSV results.\").nullable().optional(),\n concurrencyMode: z.string().describe(\"How the job processes (e.g., Parallel).\").nullable(),\n}).passthrough().describe(\"The Bulk API 2.0 query job resource returned after creation.\");\n\nexport const salesforceCreateBulkQueryJob = action(\"SALESFORCE_CREATE_BULK_QUERY_JOB\", {\n slug: \"salesforce-create-bulk-query-job\",\n name: \"Create bulk query job\",\n description: \"Create a Bulk API 2.0 query job (POST /jobs/query) for a SOQL query over a large result set. Returns a job with an id; poll get_job_info_query until state is 'JobComplete', then retrieve CSV results with get_job_query_result. Without this action the Bulk query family has no obtainable job_id.\",\n input: SalesforceCreateBulkQueryJobInput,\n output: SalesforceCreateBulkQueryJobOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CAC9I,WAAWA,IAAAA,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAChK,aAAaA,IAAAA,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAClI,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAS;EAAS;EAAQ;EAAa;CAAK,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACjL,CAAC;AACD,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L,CAAC,CAAC,SAAS;CACpO,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAClG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAExF,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-bulk-query-job.d.ts
|
|
4
|
+
declare const SalesforceCreateBulkQueryJobInput: z.ZodObject<{
|
|
5
|
+
query: z.ZodString;
|
|
6
|
+
operation: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
query: "query";
|
|
8
|
+
queryAll: "queryAll";
|
|
9
|
+
}>>>;
|
|
10
|
+
line_ending: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
LF: "LF";
|
|
12
|
+
CRLF: "CRLF";
|
|
13
|
+
}>>;
|
|
14
|
+
content_type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
15
|
+
column_delimiter: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
BACKQUOTE: "BACKQUOTE";
|
|
17
|
+
CARET: "CARET";
|
|
18
|
+
COMMA: "COMMA";
|
|
19
|
+
PIPE: "PIPE";
|
|
20
|
+
SEMICOLON: "SEMICOLON";
|
|
21
|
+
TAB: "TAB";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const SalesforceCreateBulkQueryJobOutput: z.ZodObject<{
|
|
25
|
+
id: z.ZodNullable<z.ZodString>;
|
|
26
|
+
state: z.ZodNullable<z.ZodString>;
|
|
27
|
+
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
jobType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
operation: z.ZodNullable<z.ZodString>;
|
|
30
|
+
apiVersion: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
lineEnding: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
contentType: z.ZodNullable<z.ZodString>;
|
|
33
|
+
createdById: z.ZodNullable<z.ZodString>;
|
|
34
|
+
createdDate: z.ZodNullable<z.ZodString>;
|
|
35
|
+
systemModstamp: z.ZodNullable<z.ZodString>;
|
|
36
|
+
columnDelimiter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
concurrencyMode: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const salesforceCreateBulkQueryJob: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
query: string;
|
|
41
|
+
operation?: "query" | "queryAll" | undefined;
|
|
42
|
+
line_ending?: "LF" | "CRLF" | undefined;
|
|
43
|
+
content_type?: string | undefined;
|
|
44
|
+
column_delimiter?: "BACKQUOTE" | "CARET" | "COMMA" | "PIPE" | "SEMICOLON" | "TAB" | undefined;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { salesforceCreateBulkQueryJob };
|
|
48
|
+
//# sourceMappingURL=create-bulk-query-job.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bulk-query-job.d.cts","names":[],"sources":["../../src/actions/create-bulk-query-job.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAOjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgBlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-bulk-query-job.d.ts
|
|
4
|
+
declare const SalesforceCreateBulkQueryJobInput: z.ZodObject<{
|
|
5
|
+
query: z.ZodString;
|
|
6
|
+
operation: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
query: "query";
|
|
8
|
+
queryAll: "queryAll";
|
|
9
|
+
}>>>;
|
|
10
|
+
line_ending: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
LF: "LF";
|
|
12
|
+
CRLF: "CRLF";
|
|
13
|
+
}>>;
|
|
14
|
+
content_type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
15
|
+
column_delimiter: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
BACKQUOTE: "BACKQUOTE";
|
|
17
|
+
CARET: "CARET";
|
|
18
|
+
COMMA: "COMMA";
|
|
19
|
+
PIPE: "PIPE";
|
|
20
|
+
SEMICOLON: "SEMICOLON";
|
|
21
|
+
TAB: "TAB";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const SalesforceCreateBulkQueryJobOutput: z.ZodObject<{
|
|
25
|
+
id: z.ZodNullable<z.ZodString>;
|
|
26
|
+
state: z.ZodNullable<z.ZodString>;
|
|
27
|
+
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
jobType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
operation: z.ZodNullable<z.ZodString>;
|
|
30
|
+
apiVersion: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
lineEnding: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
contentType: z.ZodNullable<z.ZodString>;
|
|
33
|
+
createdById: z.ZodNullable<z.ZodString>;
|
|
34
|
+
createdDate: z.ZodNullable<z.ZodString>;
|
|
35
|
+
systemModstamp: z.ZodNullable<z.ZodString>;
|
|
36
|
+
columnDelimiter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
concurrencyMode: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const salesforceCreateBulkQueryJob: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
query: string;
|
|
41
|
+
operation?: "query" | "queryAll" | undefined;
|
|
42
|
+
line_ending?: "LF" | "CRLF" | undefined;
|
|
43
|
+
content_type?: string | undefined;
|
|
44
|
+
column_delimiter?: "BACKQUOTE" | "CARET" | "COMMA" | "PIPE" | "SEMICOLON" | "TAB" | undefined;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { salesforceCreateBulkQueryJob };
|
|
48
|
+
//# sourceMappingURL=create-bulk-query-job.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bulk-query-job.d.mts","names":[],"sources":["../../src/actions/create-bulk-query-job.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAOjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgBlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const salesforceCreateBulkQueryJob = action("SALESFORCE_CREATE_BULK_QUERY_JOB", {
|
|
4
|
+
slug: "salesforce-create-bulk-query-job",
|
|
5
|
+
name: "Create bulk query job",
|
|
6
|
+
description: "Create a Bulk API 2.0 query job (POST /jobs/query) for a SOQL query over a large result set. Returns a job with an id; poll get_job_info_query until state is 'JobComplete', then retrieve CSV results with get_job_query_result. Without this action the Bulk query family has no obtainable job_id.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
query: z.string().describe("The SOQL query the job will run. For very large result sets, Bulk API 2.0 query jobs stream results as CSV pages."),
|
|
9
|
+
operation: z.enum(["query", "queryAll"]).default("query").describe("'query' returns current rows; 'queryAll' also returns deleted and archived rows.").optional(),
|
|
10
|
+
line_ending: z.enum(["LF", "CRLF"]).describe("Line ending for the CSV results. Defaults to LF if omitted.").optional(),
|
|
11
|
+
content_type: z.string().default("CSV").describe("Format of the query results. Bulk API 2.0 query only supports 'CSV'.").optional(),
|
|
12
|
+
column_delimiter: z.enum([
|
|
13
|
+
"BACKQUOTE",
|
|
14
|
+
"CARET",
|
|
15
|
+
"COMMA",
|
|
16
|
+
"PIPE",
|
|
17
|
+
"SEMICOLON",
|
|
18
|
+
"TAB"
|
|
19
|
+
]).describe("Column delimiter for the CSV results. Defaults to COMMA if omitted.").optional()
|
|
20
|
+
}),
|
|
21
|
+
output: z.object({
|
|
22
|
+
id: z.string().describe("The unique identifier for the created query job.").nullable(),
|
|
23
|
+
state: z.string().describe("Current job state. A newly created query job is typically 'UploadComplete' and begins processing; poll get_job_info_query until 'JobComplete', then fetch results with get_job_query_result.").nullable(),
|
|
24
|
+
object: z.string().describe("The primary object of the query, if reported.").nullable().optional(),
|
|
25
|
+
jobType: z.string().describe("Type of job (e.g., V2Query).").nullable().optional(),
|
|
26
|
+
operation: z.string().describe("The query operation (query or queryAll).").nullable(),
|
|
27
|
+
apiVersion: z.number().describe("Salesforce API version used for the job.").nullable(),
|
|
28
|
+
lineEnding: z.string().describe("Line ending format (LF, CRLF).").nullable().optional(),
|
|
29
|
+
contentType: z.string().describe("Format of the results (e.g., CSV).").nullable(),
|
|
30
|
+
createdById: z.string().describe("ID of the user who created the job.").nullable(),
|
|
31
|
+
createdDate: z.string().describe("ISO 8601 datetime when the job was created.").nullable(),
|
|
32
|
+
systemModstamp: z.string().describe("ISO 8601 datetime when the job was last modified.").nullable(),
|
|
33
|
+
columnDelimiter: z.string().describe("Column delimiter used in the CSV results.").nullable().optional(),
|
|
34
|
+
concurrencyMode: z.string().describe("How the job processes (e.g., Parallel).").nullable()
|
|
35
|
+
}).passthrough().describe("The Bulk API 2.0 query job resource returned after creation.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { salesforceCreateBulkQueryJob };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=create-bulk-query-job.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-bulk-query-job.mjs","names":[],"sources":["../../src/actions/create-bulk-query-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceCreateBulkQueryJobInput = z.object({\n query: z.string().describe(\"The SOQL query the job will run. For very large result sets, Bulk API 2.0 query jobs stream results as CSV pages.\"),\n operation: z.enum([\"query\", \"queryAll\"]).default(\"query\").describe(\"'query' returns current rows; 'queryAll' also returns deleted and archived rows.\").optional(),\n line_ending: z.enum([\"LF\", \"CRLF\"]).describe(\"Line ending for the CSV results. Defaults to LF if omitted.\").optional(),\n content_type: z.string().default(\"CSV\").describe(\"Format of the query results. Bulk API 2.0 query only supports 'CSV'.\").optional(),\n column_delimiter: z.enum([\"BACKQUOTE\", \"CARET\", \"COMMA\", \"PIPE\", \"SEMICOLON\", \"TAB\"]).describe(\"Column delimiter for the CSV results. Defaults to COMMA if omitted.\").optional(),\n});\nexport const SalesforceCreateBulkQueryJobOutput = z.object({\n id: z.string().describe(\"The unique identifier for the created query job.\").nullable(),\n state: z.string().describe(\"Current job state. A newly created query job is typically 'UploadComplete' and begins processing; poll get_job_info_query until 'JobComplete', then fetch results with get_job_query_result.\").nullable(),\n object: z.string().describe(\"The primary object of the query, if reported.\").nullable().optional(),\n jobType: z.string().describe(\"Type of job (e.g., V2Query).\").nullable().optional(),\n operation: z.string().describe(\"The query operation (query or queryAll).\").nullable(),\n apiVersion: z.number().describe(\"Salesforce API version used for the job.\").nullable(),\n lineEnding: z.string().describe(\"Line ending format (LF, CRLF).\").nullable().optional(),\n contentType: z.string().describe(\"Format of the results (e.g., CSV).\").nullable(),\n createdById: z.string().describe(\"ID of the user who created the job.\").nullable(),\n createdDate: z.string().describe(\"ISO 8601 datetime when the job was created.\").nullable(),\n systemModstamp: z.string().describe(\"ISO 8601 datetime when the job was last modified.\").nullable(),\n columnDelimiter: z.string().describe(\"Column delimiter used in the CSV results.\").nullable().optional(),\n concurrencyMode: z.string().describe(\"How the job processes (e.g., Parallel).\").nullable(),\n}).passthrough().describe(\"The Bulk API 2.0 query job resource returned after creation.\");\n\nexport const salesforceCreateBulkQueryJob = action(\"SALESFORCE_CREATE_BULK_QUERY_JOB\", {\n slug: \"salesforce-create-bulk-query-job\",\n name: \"Create bulk query job\",\n description: \"Create a Bulk API 2.0 query job (POST /jobs/query) for a SOQL query over a large result set. Returns a job with an id; poll get_job_info_query until state is 'JobComplete', then retrieve CSV results with get_job_query_result. Without this action the Bulk query family has no obtainable job_id.\",\n input: SalesforceCreateBulkQueryJobInput,\n output: SalesforceCreateBulkQueryJobOutput,\n});\n"],"mappings":";;AA2BA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B+C,EAAE,OAAO;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;EAC9I,WAAW,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAChK,aAAa,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACrH,cAAc,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAClI,kBAAkB,EAAE,KAAK;GAAC;GAAa;GAAS;GAAS;GAAQ;GAAa;EAAK,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjL,CAqBS;CACP,QArBgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L,CAAC,CAAC,SAAS;EACpO,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAClG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAOhB;AACV,CAAC"}
|
|
@@ -4,7 +4,7 @@ let zod = require("zod");
|
|
|
4
4
|
const SalesforceCreateCustomFieldInput = zod.z.object({
|
|
5
5
|
label: zod.z.string().describe("The display label for the field shown in the Salesforce UI."),
|
|
6
6
|
scale: zod.z.number().int().describe("Number of decimal places for Number, Currency, or Percent fields. Must be less than precision.").optional(),
|
|
7
|
-
length: zod.z.number().int().describe("Maximum character length
|
|
7
|
+
length: zod.z.number().int().describe("Maximum character length. Required for Text (max 255) and LongTextArea (max 131072) fields.").optional(),
|
|
8
8
|
unique: zod.z.boolean().default(false).describe("If true, enforce that all values in this field are unique across all records (case-insensitive by default).").optional(),
|
|
9
9
|
required: zod.z.boolean().default(false).describe("If true, this field must be populated when creating or editing records.").optional(),
|
|
10
10
|
precision: zod.z.number().int().describe("Total number of digits for Number, Currency, or Percent fields (including decimal places). Maximum is 18.").optional(),
|