@epilot/erp-integration-client 0.27.0 → 0.27.2
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/dist/openapi.d.ts +45 -4
- package/dist/openapi.json +24 -4
- package/package.json +1 -1
- package/.claude/settings.local.json +0 -7
package/dist/openapi.d.ts
CHANGED
|
@@ -505,9 +505,10 @@ declare namespace Components {
|
|
|
505
505
|
*/
|
|
506
506
|
deduplication_id?: string; // ^[a-zA-Z0-9_-]+$
|
|
507
507
|
}
|
|
508
|
-
export
|
|
508
|
+
export type ErpEventV3 = {
|
|
509
509
|
/**
|
|
510
|
-
*
|
|
510
|
+
* Event name from integration mapping (e.g., business_partner, contract_account). Required when use_case_slug is not provided.
|
|
511
|
+
*
|
|
511
512
|
*/
|
|
512
513
|
event_name: string;
|
|
513
514
|
/**
|
|
@@ -536,7 +537,39 @@ declare namespace Components {
|
|
|
536
537
|
* evt-2025-05-01-12345-bp
|
|
537
538
|
*/
|
|
538
539
|
deduplication_id?: string; // ^[a-zA-Z0-9_-]+$
|
|
539
|
-
}
|
|
540
|
+
} | {
|
|
541
|
+
/**
|
|
542
|
+
* Event name from integration mapping (e.g., business_partner, contract_account). Required when use_case_slug is not provided.
|
|
543
|
+
*
|
|
544
|
+
*/
|
|
545
|
+
event_name?: string;
|
|
546
|
+
/**
|
|
547
|
+
* Timestamp when the event occurred
|
|
548
|
+
*/
|
|
549
|
+
timestamp: string; // date-time
|
|
550
|
+
/**
|
|
551
|
+
* Format of the payload data
|
|
552
|
+
*/
|
|
553
|
+
format: "json" | "xml";
|
|
554
|
+
/**
|
|
555
|
+
* The object data payload - can be either a serialized string or a direct JSON object
|
|
556
|
+
*/
|
|
557
|
+
payload: /* The object data payload - can be either a serialized string or a direct JSON object */ string | {
|
|
558
|
+
[name: string]: any;
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* Recommended. Use case slug for routing this event to the correct use case configuration. If provided, takes precedence over event_name for use case lookup. Preferred over event_name-based routing as slugs are portable across environments.
|
|
562
|
+
*
|
|
563
|
+
*/
|
|
564
|
+
use_case_slug: string; // ^[a-z0-9][a-z0-9_-]*$
|
|
565
|
+
/**
|
|
566
|
+
* Optional unique identifier for idempotency - prevents duplicate processing of the same event within 24 hours in context of the same integration. Must contain only alphanumeric characters, hyphens, and underscores.
|
|
567
|
+
*
|
|
568
|
+
* example:
|
|
569
|
+
* evt-2025-05-01-12345-bp
|
|
570
|
+
*/
|
|
571
|
+
deduplication_id?: string; // ^[a-zA-Z0-9_-]+$
|
|
572
|
+
};
|
|
540
573
|
export interface ErpUpdatesEventsV2Request {
|
|
541
574
|
/**
|
|
542
575
|
* UUID that identifies the integration configuration to use
|
|
@@ -579,7 +612,7 @@ declare namespace Components {
|
|
|
579
612
|
/**
|
|
580
613
|
* Authentication type
|
|
581
614
|
*/
|
|
582
|
-
type: "oauth2_client_credentials";
|
|
615
|
+
type: "oauth2_client_credentials" | "oauth2_password";
|
|
583
616
|
/**
|
|
584
617
|
* Handlebars template for the OAuth2 token endpoint URL
|
|
585
618
|
*/
|
|
@@ -604,6 +637,14 @@ declare namespace Components {
|
|
|
604
637
|
* Handlebars template for the OAuth2 resource parameter
|
|
605
638
|
*/
|
|
606
639
|
resource?: string;
|
|
640
|
+
/**
|
|
641
|
+
* Handlebars template for the OAuth2 resource owner username. Required when type is oauth2_password.
|
|
642
|
+
*/
|
|
643
|
+
username?: string;
|
|
644
|
+
/**
|
|
645
|
+
* Handlebars template for the OAuth2 resource owner password. Required when type is oauth2_password.
|
|
646
|
+
*/
|
|
647
|
+
password?: string;
|
|
607
648
|
/**
|
|
608
649
|
* Additional key-value pairs to include in the token request body. Values support Handlebars templates.
|
|
609
650
|
*/
|
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "ERP Integration API",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.46.0",
|
|
6
6
|
"description": "API for integrating with ERP systems, handling tracking acknowledgments, triggering ERP processes, and processing ERP updates."
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -2364,15 +2364,26 @@
|
|
|
2364
2364
|
"ErpEventV3": {
|
|
2365
2365
|
"type": "object",
|
|
2366
2366
|
"required": [
|
|
2367
|
-
"event_name",
|
|
2368
2367
|
"timestamp",
|
|
2369
2368
|
"format",
|
|
2370
2369
|
"payload"
|
|
2371
2370
|
],
|
|
2371
|
+
"anyOf": [
|
|
2372
|
+
{
|
|
2373
|
+
"required": [
|
|
2374
|
+
"event_name"
|
|
2375
|
+
]
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
"required": [
|
|
2379
|
+
"use_case_slug"
|
|
2380
|
+
]
|
|
2381
|
+
}
|
|
2382
|
+
],
|
|
2372
2383
|
"properties": {
|
|
2373
2384
|
"event_name": {
|
|
2374
2385
|
"type": "string",
|
|
2375
|
-
"description": "
|
|
2386
|
+
"description": "Event name from integration mapping (e.g., business_partner, contract_account). Required when use_case_slug is not provided.\n"
|
|
2376
2387
|
},
|
|
2377
2388
|
"timestamp": {
|
|
2378
2389
|
"type": "string",
|
|
@@ -3851,7 +3862,8 @@
|
|
|
3851
3862
|
"type": {
|
|
3852
3863
|
"type": "string",
|
|
3853
3864
|
"enum": [
|
|
3854
|
-
"oauth2_client_credentials"
|
|
3865
|
+
"oauth2_client_credentials",
|
|
3866
|
+
"oauth2_password"
|
|
3855
3867
|
],
|
|
3856
3868
|
"description": "Authentication type"
|
|
3857
3869
|
},
|
|
@@ -3879,6 +3891,14 @@
|
|
|
3879
3891
|
"type": "string",
|
|
3880
3892
|
"description": "Handlebars template for the OAuth2 resource parameter"
|
|
3881
3893
|
},
|
|
3894
|
+
"username": {
|
|
3895
|
+
"type": "string",
|
|
3896
|
+
"description": "Handlebars template for the OAuth2 resource owner username. Required when type is oauth2_password."
|
|
3897
|
+
},
|
|
3898
|
+
"password": {
|
|
3899
|
+
"type": "string",
|
|
3900
|
+
"description": "Handlebars template for the OAuth2 resource owner password. Required when type is oauth2_password."
|
|
3901
|
+
},
|
|
3882
3902
|
"body_params": {
|
|
3883
3903
|
"type": "object",
|
|
3884
3904
|
"additionalProperties": {
|
package/package.json
CHANGED