@dvelop-sdk/dms 1.0.3 → 1.0.4
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/lib/dms-objects/create-dms-object/create-dms-object.d.ts +15 -0
- package/lib/dms-objects/create-dms-object/create-dms-object.d.ts.map +1 -1
- package/lib/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.d.ts +14 -0
- package/lib/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.d.ts.map +1 -1
- package/lib/dms-objects/get-dms-object/get-dms-object.d.ts +20 -0
- package/lib/dms-objects/get-dms-object/get-dms-object.d.ts.map +1 -1
- package/lib/dms-objects/get-dms-object-file/get-dms-object-file.d.ts +21 -0
- package/lib/dms-objects/get-dms-object-file/get-dms-object-file.d.ts.map +1 -1
- package/lib/dms-objects/search-dms-objects/search-dms-objects.d.ts +14 -0
- package/lib/dms-objects/search-dms-objects/search-dms-objects.d.ts.map +1 -1
- package/lib/dms-objects/store-file-temporarily/store-file-temporarily.d.ts +14 -0
- package/lib/dms-objects/store-file-temporarily/store-file-temporarily.d.ts.map +1 -1
- package/lib/dms-objects/update-dms-object/update-dms-object.d.ts +26 -0
- package/lib/dms-objects/update-dms-object/update-dms-object.d.ts.map +1 -1
- package/lib/repositories/get-repositories/get-repositories.d.ts +14 -0
- package/lib/repositories/get-repositories/get-repositories.d.ts.map +1 -1
- package/lib/repositories/get-repository/get-repository.d.ts +14 -0
- package/lib/repositories/get-repository/get-repository.d.ts.map +1 -1
- package/lib/utils/http.d.ts +13 -1
- package/lib/utils/http.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -28,6 +28,21 @@ export interface CreateDmsObjectParams {
|
|
|
28
28
|
/** File for the DmsObject. This will use the {@link storeFileTemporarily}-function and overwrite ```contentLocationUri```-property. */
|
|
29
29
|
content?: ArrayBuffer;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Default transform-function provided to the {@link createDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
33
|
+
* @internal
|
|
34
|
+
* @category DmsObject
|
|
35
|
+
*/
|
|
36
|
+
export declare function _createDmsObjectDefaultTransformFunction(response: HttpResponse<any>, _: DvelopContext, params: CreateDmsObjectParams): GetDmsObjectParams;
|
|
37
|
+
/**
|
|
38
|
+
* Default store-file-function provided to the {@link createDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
39
|
+
* @internal
|
|
40
|
+
* @category DmsObject
|
|
41
|
+
*/
|
|
42
|
+
export declare function _createDmsObjectDefaultStoreFileFunction(context: DvelopContext, params: CreateDmsObjectParams): Promise<{
|
|
43
|
+
setAs: "contentUri" | "contentLocationUri";
|
|
44
|
+
uri: string;
|
|
45
|
+
}>;
|
|
31
46
|
/**
|
|
32
47
|
* Factory for the {@link createDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
33
48
|
* @typeparam T Return type of the {@link createDmsObject}-function. A corresponding transformFuntion has to be supplied.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-dms-object.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/create-dms-object/create-dms-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAY,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IAErB,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,CAAC;IAEjB,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IAEnB,iBAAiB;IACjB,UAAU,CAAC,EAAE;QACX,yBAAyB;QACzB,GAAG,EAAE,MAAM,CAAC;QACZ,qEAAqE;QACrE,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,EAAE,CAAA;IAEH,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,kGAAkG;IAClG,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,uIAAuI;IACvI,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;
|
|
1
|
+
{"version":3,"file":"create-dms-object.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/create-dms-object/create-dms-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAY,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IAErB,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,CAAC;IAEjB,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IAEnB,iBAAiB;IACjB,UAAU,CAAC,EAAE;QACX,yBAAyB;QACzB,GAAG,EAAE,MAAM,CAAC;QACZ,qEAAqE;QACrE,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,EAAE,CAAA;IAEH,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,kGAAkG;IAClG,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,uIAAuI;IACvI,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,wCAAwC,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,GAAG,kBAAkB,CAczJ;AAED;;;;GAIG;AACH,wBAAsB,wCAAwC,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,GAAG,oBAAoB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAM1L;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,KAAK,CAAC,EACvG,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,GAAG,oBAAoB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,GAClJ,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,CAAC,CAAC,CAgCvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,wBAAsB,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAExH"}
|
package/lib/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DvelopContext } from "../../index";
|
|
2
|
+
import { HttpConfig, HttpResponse } from "../../utils/http";
|
|
2
3
|
/**
|
|
3
4
|
* Parameters for the {@link deleteCurrentDmsObjectVersion}-function.
|
|
4
5
|
* @category DmsObject
|
|
@@ -13,6 +14,19 @@ export interface DeleteCurrentDmsObjectVersionParams {
|
|
|
13
14
|
/** Reason for the deletion */
|
|
14
15
|
reason: string;
|
|
15
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Default transform-function provided to the {@link deleteCurrentDmsObjectVersion}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
19
|
+
* @internal
|
|
20
|
+
* @category DmsObject
|
|
21
|
+
*/
|
|
22
|
+
export declare function _deleteCurrentDmsObjectVersionDefaultTransformFunction(response: HttpResponse, _: DvelopContext, __: DeleteCurrentDmsObjectVersionParams): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Factory for the {@link deleteCurrentDmsObjectVersion}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
25
|
+
* @typeparam T Return type of the {@link deleteCurrentDmsObjectVersion}-function. A corresponding transformFuntion has to be supplied.
|
|
26
|
+
* @internal
|
|
27
|
+
* @category DmsObject
|
|
28
|
+
*/
|
|
29
|
+
export declare function _deleteCurrentDmsObjectVersionFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse, context: DvelopContext, params: DeleteCurrentDmsObjectVersionParams) => T): (context: DvelopContext, params: DeleteCurrentDmsObjectVersionParams) => Promise<T>;
|
|
16
30
|
/**
|
|
17
31
|
* Deletes the current (last) version of a DmsObject. The version before that automatically becomes the current version.
|
|
18
32
|
* @returns Boolean value indicating if the dmsObject was completly deleted (aka: You just deleted the first version)
|
package/lib/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-current-dms-object-version.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAkB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"delete-current-dms-object-version.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAkB,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAGzF;;;GAGG;AACH,MAAM,WAAW,mCAAmC;IAClD,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,wBAAgB,sDAAsD,CAAC,QAAQ,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,mCAAmC,GAAG,OAAO,CAMjK;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CAAC,CAAC,EACrD,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,mCAAmC,KAAK,CAAC,GACpH,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,mCAAmC,KAAK,OAAO,CAAC,CAAC,CAAC,CAwBrF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,wBAAsB,6BAA6B,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,mCAAmC,GAAG,OAAO,CAAC,OAAO,CAAC,CAEzI"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DvelopContext } from "../../index";
|
|
2
|
+
import { HttpConfig, HttpResponse } from "../../utils/http";
|
|
2
3
|
/**
|
|
3
4
|
* Parameters for the {@link getDmsObject}-function.
|
|
4
5
|
* @category DmsObject
|
|
@@ -42,6 +43,25 @@ export interface DmsObject {
|
|
|
42
43
|
/** Function that returns the DmsObject-pdf. */
|
|
43
44
|
getPdfFile?: () => Promise<ArrayBuffer>;
|
|
44
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Factory for the default-transform-function for the {@link getDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
48
|
+
* @internal
|
|
49
|
+
* @category DmsObject
|
|
50
|
+
*/
|
|
51
|
+
export declare function _getDmsObjectDefaultTransformFunctionFactory(getDmsObjectMainFileFunction: (context: DvelopContext, params: GetDmsObjectParams) => Promise<ArrayBuffer>, getDmsObjectPdfFileFunction: (context: DvelopContext, params: GetDmsObjectParams) => Promise<ArrayBuffer>): (response: HttpResponse<any>, context: DvelopContext, params: GetDmsObjectParams) => DmsObject;
|
|
52
|
+
/**
|
|
53
|
+
* Factory for {@link getDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
54
|
+
* @typeparam T Return type of the getRepositories-function. A corresponding transformFuntion has to be supplied.
|
|
55
|
+
* @internal
|
|
56
|
+
* @category DmsObject
|
|
57
|
+
*/
|
|
58
|
+
export declare function _getDmsObjectFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse, context: DvelopContext, params: GetDmsObjectParams) => T): (context: DvelopContext, params: GetDmsObjectParams) => Promise<T>;
|
|
59
|
+
/**
|
|
60
|
+
* Factory for the default-transform-function for the {@link searchDmsObjects}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
61
|
+
* @internal
|
|
62
|
+
* @category DmsObject
|
|
63
|
+
*/
|
|
64
|
+
export declare function _getDmsObjectDefaultTransformFunction(response: HttpResponse<any>, context: DvelopContext, params: GetDmsObjectParams): Promise<DmsObject>;
|
|
45
65
|
/**
|
|
46
66
|
* Get a DmsObject.
|
|
47
67
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dms-object.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/get-dms-object/get-dms-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"get-dms-object.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/get-dms-object/get-dms-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAGzF;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;CAErB;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,kCAAkC;IAClC,UAAU,EAAE;QACV,oCAAoC;QACpC,GAAG,EAAE,MAAM,CAAC;QACZ,sCAAsC;QACtC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,uCAAuC;QACvC,MAAM,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;QACnC,8CAA8C;QAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;IAEJ,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CACzC;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,CAC1D,4BAA4B,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,WAAW,CAAC,EAC1G,2BAA2B,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,WAAW,CAAC,cAEvF,aAAa,GAAG,CAAC,WAAW,aAAa,UAAU,kBAAkB,eAoBxF;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,KAAK,CAAC,GACnG,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,CAAC,CAAC,CAepE;AAED;;;;GAIG;AAEH,wBAAsB,qCAAqC,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,sBAE1I;AAED;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wBAAsB,YAAY,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,sBAEpF"}
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import { DvelopContext } from "../../index";
|
|
2
|
+
import { HttpConfig, HttpResponse } from "../../utils/http";
|
|
2
3
|
import { GetDmsObjectParams } from "../../dms-objects/get-dms-object/get-dms-object";
|
|
4
|
+
/**
|
|
5
|
+
* Default transform-function provided to the {@link getDmsObjectMainFile}- and {@link getDmsObjectPdfFile}-function.
|
|
6
|
+
* @internal
|
|
7
|
+
* @category DmsObject
|
|
8
|
+
*/
|
|
9
|
+
export declare function getDmsObjectFileDefaultTransformFunction(response: HttpResponse<ArrayBuffer>, _: DvelopContext, __: GetDmsObjectParams): Promise<ArrayBuffer>;
|
|
10
|
+
/**
|
|
11
|
+
* Factory for {@link getDmsObjectMainFile}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
12
|
+
* @typeparam T Return type of the getRepositories-function. A corresponding transformFuntion has to be supplied.
|
|
13
|
+
* @internal
|
|
14
|
+
* @category DmsObject
|
|
15
|
+
*/
|
|
16
|
+
export declare function _getDmsObjectMainFileFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse<ArrayBuffer>, context: DvelopContext, params: GetDmsObjectParams) => T): (context: DvelopContext, params: GetDmsObjectParams) => Promise<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Factory for {@link getDmsObjectPdfFile}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
19
|
+
* @typeparam T Return type of the getRepositories-function. A corresponding transformFuntion has to be supplied.
|
|
20
|
+
* @internal
|
|
21
|
+
* @category DmsObject
|
|
22
|
+
*/
|
|
23
|
+
export declare function _getDmsObjectPdfFileFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse<ArrayBuffer>, context: DvelopContext, params: GetDmsObjectParams) => T): (context: DvelopContext, params: GetDmsObjectParams) => Promise<T>;
|
|
3
24
|
/**
|
|
4
25
|
* Download a DmsObject-file.
|
|
5
26
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dms-object-file.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/get-dms-object-file/get-dms-object-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"get-dms-object-file.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/get-dms-object-file/get-dms-object-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAErF;;;;GAIG;AACH,wBAAsB,wCAAwC,CAAC,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,kBAAkB,wBAE3I;AAgCD;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,EAC5C,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,KAAK,CAAC,GAChH,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,CAAC,CAAC,CAKpE;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,EAC3C,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,KAAK,CAAC,GAChH,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,CAAC,CAAC,CAKpE;AACD;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,CAEnH;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,CAElH"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DvelopContext } from "../../index";
|
|
2
|
+
import { HttpConfig, HttpResponse } from "../../utils/http";
|
|
2
3
|
/**
|
|
3
4
|
* Parameters for the {@link searchDmsObjects}-function.
|
|
4
5
|
* @category DmsObject
|
|
@@ -60,6 +61,19 @@ export interface SearchDmsObjectsResultPage {
|
|
|
60
61
|
/** Function that returns the next page. Undefined if there is none. */
|
|
61
62
|
getNextPage?: () => Promise<SearchDmsObjectsResultPage>;
|
|
62
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Factory for the default-transform-function for the {@link searchDmsObjects}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
66
|
+
* @internal
|
|
67
|
+
* @category DmsObject
|
|
68
|
+
*/
|
|
69
|
+
export declare function _searchDmsObjectsDefaultTransformFunctionFactory(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>): (response: HttpResponse, context: DvelopContext, params: SearchDmsObjectsParams) => SearchDmsObjectsResultPage;
|
|
70
|
+
/**
|
|
71
|
+
* Factory for the {@link searchDmsObjects}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
72
|
+
* @typeparam T Return type of the {@link storeFileFunction}-function. A corresponding transformFuntion has to be supplied.
|
|
73
|
+
* @internal
|
|
74
|
+
* @category DmsObject
|
|
75
|
+
*/
|
|
76
|
+
export declare function searchDmsObjectsFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse, context: DvelopContext, params: SearchDmsObjectsParams) => T): (context: DvelopContext, params: SearchDmsObjectsParams) => Promise<T>;
|
|
63
77
|
/**
|
|
64
78
|
* Execute a search and returns the search-result. This result might be partial due to the defined ```pageSize```-property.
|
|
65
79
|
* You can navigate pages with the ```getPreviousPage```- and ```getNextPage```-functions. If functions are undefined the page does not exist.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-dms-objects.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/search-dms-objects/search-dms-objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"search-dms-objects.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/search-dms-objects/search-dms-objects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAEzF;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,iBAAiB;IACjB,UAAU,CAAC,EAAE;QACX,yBAAyB;QACzB,GAAG,EAAE,MAAM,CAAC;QACZ,qEAAqE;QACrE,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,EAAE,CAAA;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAE9B,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,kCAAkC;IAClC,UAAU,EAAE;QACV,oCAAoC;QACpC,GAAG,EAAE,MAAM,CAAC;QACZ,sCAAsC;QACtC,KAAK,EAAE,MAAM,CAAC;QACd,uCAAuC;QACvC,MAAM,CAAC,EAAE,GAAG,CAAC;QACb,8CAA8C;QAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;IAEJ,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,2EAA2E;IAC3E,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC5D,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACzD;AAkCD;;;;GAIG;AACH,wBAAgB,gDAAgD,CAAC,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,sBAAsB,KAAK,0BAA0B,CA8B3Q;AAeD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,sBAAsB,KAAK,CAAC,GACvG,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,sBAAsB,KAAK,OAAO,CAAC,CAAC,CAAC,CAsCxE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAE5H"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DvelopContext } from "../../index";
|
|
2
|
+
import { HttpConfig, HttpResponse } from "../../utils/http";
|
|
2
3
|
/**
|
|
3
4
|
* Parameters for the {@link storeFileTemporarily}-function.
|
|
4
5
|
* @category DmsObject
|
|
@@ -9,6 +10,19 @@ export interface StoreFileTemporarilyParams {
|
|
|
9
10
|
/** File-binary as ArrayBuffer */
|
|
10
11
|
content: ArrayBuffer;
|
|
11
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Default transform-function provided to the {@link storeFileTemporarily}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
15
|
+
* @internal
|
|
16
|
+
* @category DmsObject
|
|
17
|
+
*/
|
|
18
|
+
export declare function _storeFileTemporarilyDefaultTransformFunction(response: HttpResponse, _: DvelopContext, __: StoreFileTemporarilyParams): string;
|
|
19
|
+
/**
|
|
20
|
+
* Factory for the {@link storeFileFunction}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
21
|
+
* @typeparam T Return type of the {@link storeFileFunction}-function. A corresponding transformFuntion has to be supplied.
|
|
22
|
+
* @internal
|
|
23
|
+
* @category DmsObject
|
|
24
|
+
*/
|
|
25
|
+
export declare function _storeFileTemporarilyFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse, context: DvelopContext, params: StoreFileTemporarilyParams) => T): (context: DvelopContext, params: StoreFileTemporarilyParams) => Promise<T>;
|
|
12
26
|
/**
|
|
13
27
|
* Returns an URI under which a file is temporarily available for download.
|
|
14
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-file-temporarily.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/store-file-temporarily/store-file-temporarily.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"store-file-temporarily.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/store-file-temporarily/store-file-temporarily.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAEzF;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,iCAAiC;IACjC,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,6CAA6C,CAAC,QAAQ,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,0BAA0B,GAAG,MAAM,CAE9I;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,EAC5C,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,0BAA0B,KAAK,CAAC,GAC3G,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,0BAA0B,KAAK,OAAO,CAAC,CAAC,CAAC,CAY5E;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC,CAEtH"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DvelopContext } from "../../index";
|
|
2
|
+
import { HttpConfig, HttpResponse } from "../../utils/http";
|
|
2
3
|
/**
|
|
3
4
|
* Parameters for the {@link updateDmsObject}-function.
|
|
4
5
|
* @category DmsObject
|
|
@@ -30,6 +31,31 @@ export interface UpdateDmsObjectParams {
|
|
|
30
31
|
/** File for the DmsObject. This will use the {@link storeFileTemporarily}-function and overwrite ```contentLocationUri```-property. */
|
|
31
32
|
content?: ArrayBuffer;
|
|
32
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Default transform-function provided to the {@link updateDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
36
|
+
* @internal
|
|
37
|
+
* @category DmsObject
|
|
38
|
+
*/
|
|
39
|
+
export declare function _updateDmsObjectDefaultTransformFunction(_: HttpResponse, __: DvelopContext, ___: UpdateDmsObjectParams): void;
|
|
40
|
+
/**
|
|
41
|
+
* Default storeFile-function provided to the {@link updateDmsObject}-function. This will get called when content is provided. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
42
|
+
* @internal
|
|
43
|
+
* @category DmsObject
|
|
44
|
+
*/
|
|
45
|
+
export declare function updateDmsObjectDefaultStoreFileFunction(context: DvelopContext, params: UpdateDmsObjectParams): Promise<{
|
|
46
|
+
setAs: "contentUri" | "contentLocationUri";
|
|
47
|
+
uri: string;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* Factory for the {@link updateDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
51
|
+
* @typeparam T Return type of the {@link updateDmsObject}-function. A corresponding transformFuntion has to be supplied.
|
|
52
|
+
* @internal
|
|
53
|
+
* @category DmsObject
|
|
54
|
+
*/
|
|
55
|
+
export declare function _updateDmsObjectFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse, context: DvelopContext, params: UpdateDmsObjectParams) => T, storeFileFunction: (context: DvelopContext, params: UpdateDmsObjectParams) => Promise<{
|
|
56
|
+
setAs: "contentUri" | "contentLocationUri";
|
|
57
|
+
uri: string;
|
|
58
|
+
}>): (context: DvelopContext, params: UpdateDmsObjectParams) => Promise<T>;
|
|
33
59
|
/**
|
|
34
60
|
* Update a DmsObject.
|
|
35
61
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-dms-object.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/update-dms-object/update-dms-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"update-dms-object.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/update-dms-object/update-dms-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAGzF;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,UAAU,CAAC,EAAE;QACX,yBAAyB;QACzB,GAAG,EAAE,MAAM,CAAC;QACZ,qEAAqE;QACrE,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,EAAE,CAAC;IAEJ,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,kGAAkG;IAClG,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B,uIAAuI;IACvI,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,wCAAwC,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,qBAAqB,GAAG,IAAI,CAAI;AAElI;;;;GAIG;AACH,wBAAsB,uCAAuC,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,GAAG,oBAAoB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAMzL;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,KAAK,CAAC,EACvG,iBAAiB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,GAAG,oBAAoB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,GACjJ,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,CAAC,CAAC,CA8BvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpG"}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { DvelopContext } from "../../index";
|
|
2
|
+
import { HttpConfig, HttpResponse } from "../../utils/http";
|
|
2
3
|
import { Repository } from "../get-repository/get-repository";
|
|
4
|
+
/**
|
|
5
|
+
* Default transform-function provided to the {@link getRepositories}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
6
|
+
* @internal
|
|
7
|
+
* @category Repository
|
|
8
|
+
*/
|
|
9
|
+
export declare function _getRepositoriesDefaultTransformFunction(response: HttpResponse, _: DvelopContext): Repository[];
|
|
10
|
+
/**
|
|
11
|
+
* Factory for {@link getRepositories}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
12
|
+
* @typeparam T Return type of the getRepositories-function. A corresponding transformFuntion has to be supplied.
|
|
13
|
+
* @internal
|
|
14
|
+
* @category Repository
|
|
15
|
+
*/
|
|
16
|
+
export declare function _getRepositoriesFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse, context: DvelopContext) => T): (context: DvelopContext) => Promise<T>;
|
|
3
17
|
/**
|
|
4
18
|
* Returns an array of all {@link Repository}-objects for a tenant.
|
|
5
19
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-repositories.d.ts","sourceRoot":"","sources":["../../../src/repositories/get-repositories/get-repositories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"get-repositories.d.ts","sourceRoot":"","sources":["../../../src/repositories/get-repositories/get-repositories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D;;;;GAIG;AACH,wBAAgB,wCAAwC,CAAC,QAAQ,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,GAAG,UAAU,EAAE,CAQ/G;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,KAAK,CAAC,GACvE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,CASxC;AAED;;;;;;;;;;;;;;;GAeG;AAEH,wBAAsB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAEnF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DvelopContext } from "../../index";
|
|
2
|
+
import { HttpConfig, HttpResponse } from "../../utils/http";
|
|
2
3
|
/**
|
|
3
4
|
* Parameters for the {@link getRepository}-function.
|
|
4
5
|
* @category Repository
|
|
@@ -19,6 +20,19 @@ export interface Repository {
|
|
|
19
20
|
/** Id of the default-source of the repository */
|
|
20
21
|
sourceId: string;
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Default transform-function provided to the {@link getRepository}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
25
|
+
* @internal
|
|
26
|
+
* @category Repository
|
|
27
|
+
*/
|
|
28
|
+
export declare function _getRepositoryDefaultTransformFunction(response: HttpResponse, _: DvelopContext, __: GetRepositoryParams): Repository;
|
|
29
|
+
/**
|
|
30
|
+
* Factory for the {@link getRepository}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
31
|
+
* @typeparam T Return type of the {@link getRepository}-function. A corresponding transformFuntion has to be supplied.
|
|
32
|
+
* @internal
|
|
33
|
+
* @category Repository
|
|
34
|
+
*/
|
|
35
|
+
export declare function _getRepositoryFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse, context: DvelopContext, params: GetRepositoryParams) => T): (context: DvelopContext, params: GetRepositoryParams) => Promise<T>;
|
|
22
36
|
/**
|
|
23
37
|
* Returns the {@link Repository}-object with the specified id.
|
|
24
38
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-repository.d.ts","sourceRoot":"","sources":["../../../src/repositories/get-repository/get-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"get-repository.d.ts","sourceRoot":"","sources":["../../../src/repositories/get-repository/get-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAEzF;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,sCAAsC,CAAC,QAAQ,EAAE,YAAY,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,mBAAmB,GAAG,UAAU,CAOpI;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,mBAAmB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,YAAY,CAAC,EAC1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,mBAAmB,KAAK,CAAC,GACpG,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,CAAC,CAAC,CAUrE;AAED;;;;;;;;;;;;;;;;;GAiBG;AAEH,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,CAE5G"}
|
package/lib/utils/http.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DvelopSdkError } from "@dvelop-sdk/core";
|
|
1
|
+
import { DvelopContext, DvelopHttpRequestConfig, DvelopHttpResponse, DvelopHttpClient, DvelopSdkError } from "@dvelop-sdk/core";
|
|
2
2
|
export { DvelopHttpRequestConfig as HttpConfig, DvelopHttpResponse as HttpResponse } from "@dvelop-sdk/core";
|
|
3
3
|
/**
|
|
4
4
|
* Generic Error for dms-package.
|
|
@@ -9,4 +9,16 @@ export declare class DmsError extends DvelopSdkError {
|
|
|
9
9
|
originalError?: Error | undefined;
|
|
10
10
|
constructor(message: string, originalError?: Error | undefined);
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Factory used to create the default httpRequestFunction. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
14
|
+
* @internal
|
|
15
|
+
* @category Http
|
|
16
|
+
*/
|
|
17
|
+
export declare function _defaultHttpRequestFunctionFactory(httpClient: DvelopHttpClient): (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Default httpRequestFunction used in dms-package. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
20
|
+
* @internal
|
|
21
|
+
* @category Http
|
|
22
|
+
*/
|
|
23
|
+
export declare function _defaultHttpRequestFunction(context: DvelopContext, config: DvelopHttpRequestConfig): Promise<DvelopHttpResponse>;
|
|
12
24
|
//# sourceMappingURL=http.d.ts.map
|
package/lib/utils/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/utils/http.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/utils/http.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,gBAAgB,EAAmG,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjO,OAAO,EAAE,uBAAuB,IAAI,UAAU,EAAE,kBAAkB,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE7G;;;EAGE;AAEF,qBAAa,QAAS,SAAQ,cAAc;IAEvB,OAAO,EAAE,MAAM;IAAS,aAAa,CAAC;gBAAtC,OAAO,EAAE,MAAM,EAAS,aAAa,CAAC,mBAAO;CAIjE;AAED;;;;GAIG;AACH,wBAAgB,kCAAkC,CAAC,UAAU,EAAE,gBAAgB,GAAG,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,uBAAuB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CA8BzK;AAED;;;;GAIG;AAEH,wBAAsB,2BAA2B,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAEtI"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvelop-sdk/dms",
|
|
3
3
|
"description": "This package contains functionality for the DMS-App in the d.velop cloud.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@dvelop-sdk/core": "^1.1.1"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|