@epilot/erp-integration-client 0.27.0 → 0.27.1
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 +36 -3
- package/dist/openapi.json +13 -2
- package/package.json +1 -1
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
|
package/dist/openapi.json
CHANGED
|
@@ -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",
|