Skip to content

Commit 68fcd4d

Browse files
renaming functionName to name parameter in callFunction; adding more tests
1 parent 7c1d664 commit 68fcd4d

15 files changed

+260
-152
lines changed

dist/browser/esm/dynamics-web-api.js

Lines changed: 30 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser/esm/dynamics-web-api.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/dynamics-web-api.js

Lines changed: 30 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/dynamics-web-api.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dynamics-web-api.d.ts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api v2.1.2 (c) 2023 Aleksandr Rogov */
1+
/*! dynamics-web-api v2.1.3 (c) 2024 Aleksandr Rogov */
22
/// <reference types="node" />
33
/**
44
* Microsoft Dynamics CRM Web API helper library written in JavaScript.
@@ -408,7 +408,7 @@ export interface BatchRequest extends BaseRequest {
408408
}
409409
export interface Request extends BaseRequest {
410410
/**A name of the Entity Collection or Entity Logical name. */
411-
collection: string;
411+
collection?: string;
412412
}
413413
export interface CRUDRequest extends Request {
414414
/**A String representing collection record's Primary Key (GUID) or Alternate Key(s). */
@@ -419,6 +419,8 @@ export interface CountRequest extends Request {
419419
filter?: string;
420420
}
421421
export interface CountAllRequest extends CountRequest {
422+
/**A name of the Entity Collection or Entity Logical name. */
423+
collection: string;
422424
/**An Array (of strings) representing the $select OData System Query Option to control which attributes will be returned. */
423425
select?: string[];
424426
}
@@ -523,6 +525,8 @@ export interface DeleteRequest extends CRUDRequest {
523525
fieldName?: string;
524526
}
525527
export interface RetrieveRequest extends CRUDRequest {
528+
/**A name of the Entity Collection or Entity Logical name. */
529+
collection: string;
526530
/**An array of Expand Objects(described below the table) representing the $expand OData System Query Option value to control which related records are also returned. */
527531
expand?: Expand[];
528532
/**Sets If-Match header value that enables to use conditional retrieval or optimistic concurrency in applicable requests.*/
@@ -547,6 +551,8 @@ export interface RetrieveRequest extends CRUDRequest {
547551
partitionId?: string;
548552
}
549553
export interface RetrieveMultipleRequest extends Request {
554+
/**A name of the Entity Collection or Entity Logical name. */
555+
collection: string;
550556
/**Use the $apply to aggregate and group your data dynamically */
551557
apply?: string;
552558
/**An array of Expand Objects(described below the table) representing the $expand OData System Query Option value to control which related records are also returned. */
@@ -605,10 +611,21 @@ export interface DisassociateSingleValuedRequest extends Request {
605611
navigationProperty: string;
606612
}
607613
export interface UnboundFunctionRequest extends BaseRequest {
608-
/**Name of the function. */
609-
functionName: string;
614+
/**
615+
* Name of the function.
616+
*/
617+
name: string;
618+
/**
619+
* Name of the function.
620+
* @deprecated Use "name" parameter.
621+
*/
622+
functionName?: string;
610623
/**Function's input parameters. Example: { param1: "test", param2: 3 }. */
611624
parameters?: any;
625+
/**An Array(of Strings) representing the $select OData System Query Option to control which attributes will be returned. */
626+
select?: string[];
627+
/**Use the $filter system query option to set criteria for which entities will be returned. */
628+
filter?: string;
612629
}
613630
export interface BoundFunctionRequest extends UnboundFunctionRequest, Request {
614631
/**A String representing the GUID value for the record. */

dist/dynamics-web-api.js

Lines changed: 30 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dynamics-web-api.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)