|
1 | | -/*! dynamics-web-api v2.3.0 (c) 2025 Aleksandr Rogov. License: MIT */ |
| 1 | +/*! dynamics-web-api v2.3.1 (c) 2025 Aleksandr Rogov. License: MIT */ |
2 | 2 | /** |
3 | 3 | * Microsoft Dataverse Web API helper library for Node.js and Browser. |
4 | 4 | * It is compatible with: Dataverse, Dynamics 365 (online), Dynamics 365 (on-premise), Dynamics CRM 2016, Dynamics CRM Online. |
@@ -463,7 +463,10 @@ export interface Request extends BaseRequest { |
463 | 463 | collection?: string; |
464 | 464 | } |
465 | 465 | export interface CRUDRequest extends Request { |
466 | | - /**A String representing collection record's Primary Key (GUID) or Alternate Key(s). */ |
| 466 | + /** |
| 467 | + * A String representing collection record's Primary Key (GUID) or Alternate Key(s). |
| 468 | + * Can be ommitted in a Batch request when contentId is set. |
| 469 | + */ |
467 | 470 | key?: string; |
468 | 471 | } |
469 | 472 | export interface CountRequest extends Request { |
@@ -637,24 +640,40 @@ export interface RetrieveMultipleRequest extends Request { |
637 | 640 | partitionId?: string; |
638 | 641 | } |
639 | 642 | export interface AssociateRequest extends Request { |
640 | | - /**Primary entity record id/key. */ |
641 | | - primaryKey: string; |
| 643 | + /** |
| 644 | + * Primary entity record id/key. |
| 645 | + * Can be ommitted in a Batch request when contentId is set. |
| 646 | + */ |
| 647 | + primaryKey?: string; |
642 | 648 | /**Relationship name. */ |
643 | 649 | relationshipName: string; |
644 | | - /**Related name of the Entity Collection or Entity Logical name. */ |
645 | | - relatedCollection: string; |
646 | | - /**Related entity record id/key. */ |
| 650 | + /** |
| 651 | + * Related name of the Entity Collection or Entity Logical name. |
| 652 | + * Can be omitted in a Batch request when relatedKey is set to a ContentId. |
| 653 | + */ |
| 654 | + relatedCollection?: string; |
| 655 | + /**Related entity record id/key or a ContentId in a Batch request (e.g. $2). */ |
647 | 656 | relatedKey: string; |
| 657 | + /**v2.3.1+ BATCH REQUESTS ONLY! Sets Content-ID header or references request in a Change Set. */ |
| 658 | + contentId?: string; |
648 | 659 | } |
649 | 660 | export interface AssociateSingleValuedRequest extends Request { |
650 | | - /**Primary entity record id/key. */ |
651 | | - primaryKey: string; |
| 661 | + /** |
| 662 | + * Primary entity record id/key. |
| 663 | + * Can be ommitted in a Batch request when contentId is set. |
| 664 | + */ |
| 665 | + primaryKey?: string; |
652 | 666 | /**Navigation property name. */ |
653 | 667 | navigationProperty: string; |
654 | | - /**Related name of the Entity Collection or Entity Logical name. */ |
655 | | - relatedCollection: string; |
656 | | - /**Related entity record id/key. */ |
| 668 | + /** |
| 669 | + * Related name of the Entity Collection or Entity Logical name. |
| 670 | + * Can be omitted in a Batch request when relatedKey is set to a ContentId. |
| 671 | + */ |
| 672 | + relatedCollection?: string; |
| 673 | + /**Related entity record id/key or a ContentId in a Batch request (e.g. $2). */ |
657 | 674 | relatedKey: string; |
| 675 | + /**v2.3.1+ BATCH REQUESTS ONLY! Sets Content-ID header or references request in a Change Set. */ |
| 676 | + contentId?: string; |
658 | 677 | } |
659 | 678 | export interface DisassociateRequest extends Request { |
660 | 679 | /**Primary entity record id/key. */ |
|
0 commit comments