@sap-cloud-sdk/odata-v4 2.1.0 → 2.1.1-20220225175550.0
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/de-serializers/entity-deserializer.d.ts +2 -2
- package/dist/de-serializers/entity-deserializer.js +2 -2
- package/dist/filter-functions.d.ts +0 -3
- package/dist/filter-functions.d.ts.map +1 -1
- package/dist/filter-functions.js +0 -3
- package/dist/filter-functions.js.map +1 -1
- package/package.json +6 -6
|
@@ -3,8 +3,8 @@ import { DeSerializers } from './de-serializers';
|
|
|
3
3
|
/**
|
|
4
4
|
* Entity deserializer instance for v4 entities.
|
|
5
5
|
* See [[EntityDeserializer]] for the provided methods.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* @param deSerializers - DeSerializer to be used
|
|
7
|
+
* @returns EntityDeserializer
|
|
8
8
|
*/
|
|
9
9
|
export declare function entityDeserializer<DeSerializersT extends DeSerializers>(deSerializers: DeSerializersT): EntityDeserializer;
|
|
10
10
|
//# sourceMappingURL=entity-deserializer.d.ts.map
|
|
@@ -7,8 +7,8 @@ const response_data_accessor_1 = require("../request-builder/response-data-acces
|
|
|
7
7
|
/**
|
|
8
8
|
* Entity deserializer instance for v4 entities.
|
|
9
9
|
* See [[EntityDeserializer]] for the provided methods.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* @param deSerializers - DeSerializer to be used
|
|
11
|
+
* @returns EntityDeserializer
|
|
12
12
|
*/
|
|
13
13
|
function entityDeserializer(deSerializers) {
|
|
14
14
|
return (0, internal_1.entityDeserializer)(deSerializers, extract_odata_etag_1.extractODataEtag, response_data_accessor_1.getLinkedCollectionResult);
|
|
@@ -7,7 +7,6 @@ import { DeSerializers } from './de-serializers';
|
|
|
7
7
|
* Build a filter function to test whether a string is a substring of the other. Evaluates to boolean.
|
|
8
8
|
* @param substr - The substring to test for. This can either be a string, a reference to a field or another filter function.
|
|
9
9
|
* @param str - The string to test. This can either be a string, a reference to a field or another filter function.
|
|
10
|
-
*
|
|
11
10
|
* @returns The newly created filter function
|
|
12
11
|
*/
|
|
13
12
|
export declare function contains<EntityT extends Entity>(substr: string | Field<EntityT, boolean, boolean> | StringFilterFunction<EntityT>, str: string | Field<EntityT, boolean, boolean> | StringFilterFunction<EntityT>): BooleanFilterFunction<EntityT>;
|
|
@@ -49,7 +48,6 @@ export declare function now<EntityT extends Entity>(): NumberFilterFunction<Enti
|
|
|
49
48
|
* Build a filter function to test whether a set is a subset of the other, i. e. whether the second parameter can be transformed into the first by reordering and / or removing items. Evaluates to boolean.
|
|
50
49
|
* @param subset - The subset to test for. This can either be an array, a reference to a field or another filter function.
|
|
51
50
|
* @param set - The set to test. This can either be an array, a reference to a field or another filter function.
|
|
52
|
-
*
|
|
53
51
|
* @returns The newly created filter function
|
|
54
52
|
*/
|
|
55
53
|
export declare function hasSubset<EntityT extends Entity, ParamT extends FilterFunctionPrimitiveParameterType, ReturnT>(subset: ParamT[] | CollectionField<EntityT, any, any, boolean, boolean> | CollectionFilterFunction<EntityT, ReturnT>, set: ParamT[] | CollectionField<EntityT, any, any, boolean, boolean> | CollectionFilterFunction<EntityT, ReturnT>): BooleanFilterFunction<EntityT>;
|
|
@@ -57,7 +55,6 @@ export declare function hasSubset<EntityT extends Entity, ParamT extends FilterF
|
|
|
57
55
|
* Build a filter function to test whether a set is a subsequence of the other, i. e. whether the second parameter can be transformed into the first by removing items. Evaluates to boolean.
|
|
58
56
|
* @param subsequence - The subsequence to test for. This can either be an array, a reference to a field or another filter function.
|
|
59
57
|
* @param sequence - The sequence to test. This can either be an array, a reference to a field or another filter function.
|
|
60
|
-
*
|
|
61
58
|
* @returns The newly created filter function
|
|
62
59
|
*/
|
|
63
60
|
export declare function hasSubsequence<EntityT extends Entity, ParamT extends FilterFunctionPrimitiveParameterType, ReturnT>(subsequence: ParamT[] | Field<EntityT, boolean, boolean> | CollectionFilterFunction<EntityT, ReturnT>, sequence: ParamT[] | Field<EntityT, boolean, boolean> | CollectionFilterFunction<EntityT, ReturnT>): BooleanFilterFunction<EntityT>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-functions.d.ts","sourceRoot":"","sources":["../src/filter-functions.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,KAAK,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,oCAAoC,EACpC,eAAe,EACf,wBAAwB,EAExB,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,IAAI,EACL,MAAM,sCAAsC,CAAC;AAC9C,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAEL,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAG1B
|
|
1
|
+
{"version":3,"file":"filter-functions.d.ts","sourceRoot":"","sources":["../src/filter-functions.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,KAAK,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,oCAAoC,EACpC,eAAe,EACf,wBAAwB,EAExB,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,IAAI,EACL,MAAM,sCAAsC,CAAC;AAC9C,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAEL,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAG1B;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,SAAS,MAAM,EAC7C,MAAM,EACF,MAAM,GACN,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,GAChC,oBAAoB,CAAC,OAAO,CAAC,EACjC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,OAAO,EAAE,OAA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AM,EACN,OAAO,EACP,OAAO,EACP,IAAI,EACJ,SAAS,EACT,eAAe,EACf,KAAK,CACN,CAC4B,GAC9B,mBAAmB,CAarB;AAED;;GAEG;AACH,oBAAY,mBAAmB,GAAG,yBAAyB,GAAG;IAC5D,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,cAAc,EAAE,OAAO,cAAc,CAAC;IACtC,iBAAiB,EAAE,OAAO,iBAAiB,CAAC;IAC5C,kBAAkB,EAAE,OAAO,kBAAkB,CAAC;IAC9C,WAAW,EAAE,OAAO,WAAW,CAAC;IAChC,WAAW,EAAE,OAAO,WAAW,CAAC;IAChC,GAAG,EAAE,OAAO,GAAG,CAAC;IAChB,SAAS,EAAE,OAAO,SAAS,CAAC;IAC5B,cAAc,EAAE,OAAO,cAAc,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,oBAAY,mBAAmB,GAC3B,yBAAyB,GACzB,UAAU,GACV,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,aAAa,GACb,aAAa,GACb,KAAK,GACL,WAAW,GACX,gBAAgB,CAAC"}
|
package/dist/filter-functions.js
CHANGED
|
@@ -9,7 +9,6 @@ const de_serializers_1 = require("./de-serializers");
|
|
|
9
9
|
* Build a filter function to test whether a string is a substring of the other. Evaluates to boolean.
|
|
10
10
|
* @param substr - The substring to test for. This can either be a string, a reference to a field or another filter function.
|
|
11
11
|
* @param str - The string to test. This can either be a string, a reference to a field or another filter function.
|
|
12
|
-
*
|
|
13
12
|
* @returns The newly created filter function
|
|
14
13
|
*/
|
|
15
14
|
function contains(substr, str) {
|
|
@@ -74,7 +73,6 @@ exports.now = now;
|
|
|
74
73
|
* Build a filter function to test whether a set is a subset of the other, i. e. whether the second parameter can be transformed into the first by reordering and / or removing items. Evaluates to boolean.
|
|
75
74
|
* @param subset - The subset to test for. This can either be an array, a reference to a field or another filter function.
|
|
76
75
|
* @param set - The set to test. This can either be an array, a reference to a field or another filter function.
|
|
77
|
-
*
|
|
78
76
|
* @returns The newly created filter function
|
|
79
77
|
*/
|
|
80
78
|
function hasSubset(subset, set) {
|
|
@@ -85,7 +83,6 @@ exports.hasSubset = hasSubset;
|
|
|
85
83
|
* Build a filter function to test whether a set is a subsequence of the other, i. e. whether the second parameter can be transformed into the first by removing items. Evaluates to boolean.
|
|
86
84
|
* @param subsequence - The subsequence to test for. This can either be an array, a reference to a field or another filter function.
|
|
87
85
|
* @param sequence - The sequence to test. This can either be an array, a reference to a field or another filter function.
|
|
88
|
-
*
|
|
89
86
|
* @returns The newly created filter function
|
|
90
87
|
*/
|
|
91
88
|
function hasSubsequence(subsequence, sequence) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-functions.js","sourceRoot":"","sources":["../src/filter-functions.ts"],"names":[],"mappings":";;;AACA,mEAY8C;AAG9C,uDAAmD;AACnD,qDAI0B;AAE1B,sBAAsB;AACtB
|
|
1
|
+
{"version":3,"file":"filter-functions.js","sourceRoot":"","sources":["../src/filter-functions.ts"],"names":[],"mappings":";;;AACA,mEAY8C;AAG9C,uDAAmD;AACnD,qDAI0B;AAE1B,sBAAsB;AACtB;;;;;GAKG;AACH,SAAgB,QAAQ,CACtB,MAGiC,EACjC,GAA8E;IAE9E,OAAO,IAAA,gCAAc,EAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;AAC5D,CAAC;AARD,4BAQC;AAED;;;;;GAKG;AACH,SAAgB,cAAc,CAC5B,GAGiC,EACjC,KAAa;IAEb,OAAO,IAAA,gCAAc,EAAC,gBAAgB,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AARD,wCAQC;AAED,oBAAoB;AACpB;;;;GAIG;AACH,SAAgB,iBAAiB,CAC/B,IAAsD;IAEtD,OAAO,IAAA,gCAAc,EAAC,mBAAmB,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;AAC9D,CAAC;AAJD,8CAIC;AAED;;;;GAIG;AACH,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"@sap-cloud-sdk/odata-v4",
|
|
3
|
-
"version": "2.1.0",
|
|
3
|
+
"version": "2.1.1-20220225175550.0+6f8d2073",
|
|
4
4
|
"description": "SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.",
|
|
5
5
|
"homepage": "https://sap.github.io/cloud-sdk/docs/js/overview-cloud-sdk-for-javascript",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"check:dependencies": "depcheck ."
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@sap-cloud-sdk/connectivity": "^2.1.0",
|
|
36
|
-
"@sap-cloud-sdk/http-client": "^2.1.0",
|
|
37
|
-
"@sap-cloud-sdk/odata-common": "^2.1.0",
|
|
38
|
-
"@sap-cloud-sdk/util": "^2.1.0",
|
|
35
|
+
"@sap-cloud-sdk/connectivity": "^2.1.1-20220225175550.0+6f8d2073",
|
|
36
|
+
"@sap-cloud-sdk/http-client": "^2.1.1-20220225175550.0+6f8d2073",
|
|
37
|
+
"@sap-cloud-sdk/odata-common": "^2.1.1-20220225175550.0+6f8d2073",
|
|
38
|
+
"@sap-cloud-sdk/util": "^2.1.1-20220225175550.0+6f8d2073",
|
|
39
39
|
"bignumber.js": "^9.0.0",
|
|
40
40
|
"moment": "^2.29.0",
|
|
41
41
|
"uuid": "^8.2.0"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"nock": "^13.0.11",
|
|
46
46
|
"typescript": "~4.5.5"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "6f8d2073323536937c79343fcebf92707578d643"
|
|
49
49
|
}
|