@dvelop-sdk/dms 1.0.3 → 1.1.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/README.md +1 -1
- package/lib/dms-objects/create-dms-object/create-dms-object.d.ts +16 -1
- package/lib/dms-objects/create-dms-object/create-dms-object.d.ts.map +1 -1
- package/lib/dms-objects/create-dms-object/create-dms-object.js +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 +21 -1
- package/lib/dms-objects/get-dms-object/get-dms-object.d.ts.map +1 -1
- package/lib/dms-objects/get-dms-object/get-dms-object.js +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/dms-objects/update-dms-object-status/update-dms-object-status.d.ts +54 -0
- package/lib/dms-objects/update-dms-object-status/update-dms-object-status.d.ts.map +1 -0
- package/lib/dms-objects/update-dms-object-status/update-dms-object-status.js +120 -0
- package/lib/dms-objects/update-dms-object-status/update-dms-object-status.js.map +1 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/internal.d.ts +1 -0
- package/lib/internal.d.ts.map +1 -1
- package/lib/internal.js +4 -1
- package/lib/internal.js.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 +3 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<a href="https://github.com/d-velop/dvelop-sdk-node">
|
|
10
10
|
<img alt="GitHub" src="https://img.shields.io/badge/GitHub-dvelop--sdk--node-%23ff0844?logo=github&style=for-the-badge">
|
|
11
11
|
</a>
|
|
12
|
-
<a href="https://github.com/d-velop/dvelop-sdk-node/blob/
|
|
12
|
+
<a href="https://github.com/d-velop/dvelop-sdk-node/blob/main/LICENSE">
|
|
13
13
|
<img alt="license" src="https://img.shields.io/github/license/d-velop/dvelop-sdk-node?style=for-the-badge">
|
|
14
14
|
</a
|
|
15
15
|
|
|
@@ -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.
|
|
@@ -53,7 +68,7 @@ export declare function createDmsObjectFactory<T>(httpRequestFunction: (context:
|
|
|
53
68
|
* }, {
|
|
54
69
|
* repositoryId: "qnydFmqHuVo",
|
|
55
70
|
* sourceId: "/dms/r/qnydFmqHuVo/source",
|
|
56
|
-
*
|
|
71
|
+
* categoryId: "GDYQ3PJKrT8",
|
|
57
72
|
* properties: [
|
|
58
73
|
* {
|
|
59
74
|
* key: "AaGK-fj-BAM",
|
|
@@ -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"}
|
|
@@ -142,7 +142,7 @@ exports.createDmsObjectFactory = createDmsObjectFactory;
|
|
|
142
142
|
* }, {
|
|
143
143
|
* repositoryId: "qnydFmqHuVo",
|
|
144
144
|
* sourceId: "/dms/r/qnydFmqHuVo/source",
|
|
145
|
-
*
|
|
145
|
+
* categoryId: "GDYQ3PJKrT8",
|
|
146
146
|
* properties: [
|
|
147
147
|
* {
|
|
148
148
|
* key: "AaGK-fj-BAM",
|
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,13 +43,32 @@ 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
|
*
|
|
48
68
|
* ```typescript
|
|
49
69
|
* import { getDmsObject } from "@dvelop-sdk/dms";
|
|
50
70
|
*
|
|
51
|
-
* const dmsObject: DmsObject = await
|
|
71
|
+
* const dmsObject: DmsObject = await getDmsObject({
|
|
52
72
|
* systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
|
|
53
73
|
* authSessionId: "dQw4w9WgXcQ"
|
|
54
74
|
* },{
|
|
@@ -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"}
|
|
@@ -124,7 +124,7 @@ exports._getDmsObjectDefaultTransformFunction = _getDmsObjectDefaultTransformFun
|
|
|
124
124
|
* ```typescript
|
|
125
125
|
* import { getDmsObject } from "@dvelop-sdk/dms";
|
|
126
126
|
*
|
|
127
|
-
* const dmsObject: DmsObject = await
|
|
127
|
+
* const dmsObject: DmsObject = await getDmsObject({
|
|
128
128
|
* systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
|
|
129
129
|
* authSessionId: "dQw4w9WgXcQ"
|
|
130
130
|
* },{
|
|
@@ -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"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { DvelopContext } from "../../index";
|
|
2
|
+
import { HttpConfig, HttpResponse } from "../../utils/http";
|
|
3
|
+
export declare type DmsObjectStatus = "Processing" | "Verification" | "Release";
|
|
4
|
+
/**
|
|
5
|
+
* Parameters for the {@link updateDmsObject}-function.
|
|
6
|
+
* @category DmsObject
|
|
7
|
+
*/
|
|
8
|
+
export interface UpdateDmsObjectStatusParams {
|
|
9
|
+
/** ID of the repository */
|
|
10
|
+
repositoryId: string;
|
|
11
|
+
/** ID of the DmsObject */
|
|
12
|
+
dmsObjectId: string;
|
|
13
|
+
/** State of the dms Object */
|
|
14
|
+
status: DmsObjectStatus;
|
|
15
|
+
/** User or Group to which the DmsObject will be assigned. You can specify individual users as well as groups using IDs of the Identityprovider-App */
|
|
16
|
+
editor?: string;
|
|
17
|
+
/** Description of changes */
|
|
18
|
+
alterationText?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 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.
|
|
22
|
+
* @internal
|
|
23
|
+
* @category DmsObject
|
|
24
|
+
*/
|
|
25
|
+
export declare function _updateDmsObjectStatusDefaultTransformFunction(_: HttpResponse, __: DvelopContext, ___: UpdateDmsObjectStatusParams): void;
|
|
26
|
+
/**
|
|
27
|
+
* Factory for the {@link updateDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
28
|
+
* @typeparam T Return type of the {@link updateDmsObject}-function. A corresponding transformFuntion has to be supplied.
|
|
29
|
+
* @internal
|
|
30
|
+
* @category DmsObject
|
|
31
|
+
*/
|
|
32
|
+
export declare function _updateDmsObjectStatusFactory<T>(httpRequestFunction: (context: DvelopContext, config: HttpConfig) => Promise<HttpResponse>, transformFunction: (response: HttpResponse, context: DvelopContext, params: UpdateDmsObjectStatusParams) => T): (context: DvelopContext, params: UpdateDmsObjectStatusParams) => Promise<T>;
|
|
33
|
+
/**
|
|
34
|
+
* Update a DmsObject.
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import { updateDmsObjectStatus } from "@dvelop-sdk/dms";
|
|
38
|
+
*
|
|
39
|
+
* await updateDmsObjectStatus({
|
|
40
|
+
* systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
|
|
41
|
+
* authSessionId: "dQw4w9WgXcQ"
|
|
42
|
+
* }, {
|
|
43
|
+
* repositoryId: "qnydFmqHuVo",
|
|
44
|
+
* dmsObjectId: "GDYQ3PJKrT8",
|
|
45
|
+
* alterationText: "Updated by SDK",
|
|
46
|
+
* status: "Processing",
|
|
47
|
+
* editor: "NQlcUY5zDUk"
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @category DmsObject
|
|
52
|
+
*/
|
|
53
|
+
export declare function updateDmsObjectStatus(context: DvelopContext, params: UpdateDmsObjectStatusParams): Promise<void>;
|
|
54
|
+
//# sourceMappingURL=update-dms-object-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-dms-object-status.d.ts","sourceRoot":"","sources":["../../../src/dms-objects/update-dms-object-status/update-dms-object-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,YAAY,EAA+B,MAAM,kBAAkB,CAAC;AAEzF,oBAAY,eAAe,GAAG,YAAY,GAAG,cAAc,GAAG,SAAS,CAAC;AAExE;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,MAAM,EAAE,eAAe,CAAC;IACxB,sJAAsJ;IACtJ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,8CAA8C,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,2BAA2B,GAAG,IAAI,CAAI;AAE9I;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAC7C,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,2BAA2B,KAAK,CAAC,GAC5G,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,2BAA2B,KAAK,OAAO,CAAC,CAAC,CAAC,CAiC7E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhH"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.updateDmsObjectStatus = exports._updateDmsObjectStatusFactory = exports._updateDmsObjectStatusDefaultTransformFunction = void 0;
|
|
40
|
+
var http_1 = require("../../utils/http");
|
|
41
|
+
/**
|
|
42
|
+
* 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.
|
|
43
|
+
* @internal
|
|
44
|
+
* @category DmsObject
|
|
45
|
+
*/
|
|
46
|
+
function _updateDmsObjectStatusDefaultTransformFunction(_, __, ___) { } // no error indicates success. Returning void
|
|
47
|
+
exports._updateDmsObjectStatusDefaultTransformFunction = _updateDmsObjectStatusDefaultTransformFunction;
|
|
48
|
+
/**
|
|
49
|
+
* Factory for the {@link updateDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
|
|
50
|
+
* @typeparam T Return type of the {@link updateDmsObject}-function. A corresponding transformFuntion has to be supplied.
|
|
51
|
+
* @internal
|
|
52
|
+
* @category DmsObject
|
|
53
|
+
*/
|
|
54
|
+
function _updateDmsObjectStatusFactory(httpRequestFunction, transformFunction) {
|
|
55
|
+
var _this = this;
|
|
56
|
+
return function (context, params) { return __awaiter(_this, void 0, void 0, function () {
|
|
57
|
+
var properties, response;
|
|
58
|
+
return __generator(this, function (_a) {
|
|
59
|
+
switch (_a.label) {
|
|
60
|
+
case 0:
|
|
61
|
+
properties = [{
|
|
62
|
+
key: "property_state",
|
|
63
|
+
values: [params.status]
|
|
64
|
+
}];
|
|
65
|
+
if (params.editor) {
|
|
66
|
+
properties.push({
|
|
67
|
+
key: "property_editor",
|
|
68
|
+
values: [params.editor]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return [4 /*yield*/, httpRequestFunction(context, {
|
|
72
|
+
method: "PUT",
|
|
73
|
+
url: "/dms",
|
|
74
|
+
follows: ["repo", "dmsobjectwithmapping", "displayVersion"],
|
|
75
|
+
templates: {
|
|
76
|
+
"repositoryid": params.repositoryId,
|
|
77
|
+
"dmsobjectid": params.dmsObjectId
|
|
78
|
+
},
|
|
79
|
+
data: {
|
|
80
|
+
"sourceId": "/dms/r/" + params.repositoryId + "/source",
|
|
81
|
+
"alterationText": params.alterationText || undefined,
|
|
82
|
+
"sourceProperties": {
|
|
83
|
+
"properties": properties
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
})];
|
|
87
|
+
case 1:
|
|
88
|
+
response = _a.sent();
|
|
89
|
+
return [2 /*return*/, transformFunction(response, context, params)];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}); };
|
|
93
|
+
}
|
|
94
|
+
exports._updateDmsObjectStatusFactory = _updateDmsObjectStatusFactory;
|
|
95
|
+
/**
|
|
96
|
+
* Update a DmsObject.
|
|
97
|
+
*
|
|
98
|
+
* ```typescript
|
|
99
|
+
* import { updateDmsObjectStatus } from "@dvelop-sdk/dms";
|
|
100
|
+
*
|
|
101
|
+
* await updateDmsObjectStatus({
|
|
102
|
+
* systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
|
|
103
|
+
* authSessionId: "dQw4w9WgXcQ"
|
|
104
|
+
* }, {
|
|
105
|
+
* repositoryId: "qnydFmqHuVo",
|
|
106
|
+
* dmsObjectId: "GDYQ3PJKrT8",
|
|
107
|
+
* alterationText: "Updated by SDK",
|
|
108
|
+
* status: "Processing",
|
|
109
|
+
* editor: "NQlcUY5zDUk"
|
|
110
|
+
* });
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @category DmsObject
|
|
114
|
+
*/
|
|
115
|
+
/* istanbul ignore next */
|
|
116
|
+
function updateDmsObjectStatus(context, params) {
|
|
117
|
+
return _updateDmsObjectStatusFactory(http_1._defaultHttpRequestFunction, _updateDmsObjectStatusDefaultTransformFunction)(context, params);
|
|
118
|
+
}
|
|
119
|
+
exports.updateDmsObjectStatus = updateDmsObjectStatus;
|
|
120
|
+
//# sourceMappingURL=update-dms-object-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-dms-object-status.js","sourceRoot":"","sources":["../../../src/dms-objects/update-dms-object-status/update-dms-object-status.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAAyF;AAqBzF;;;;GAIG;AACH,SAAgB,8CAA8C,CAAC,CAAe,EAAE,EAAiB,EAAE,GAAgC,IAAU,CAAC,CAAC,6CAA6C;AAA5L,wGAA8I;AAE9I;;;;;GAKG;AACH,SAAgB,6BAA6B,CAC3C,mBAA0F,EAC1F,iBAA6G;IAF/G,iBAoCC;IAhCC,OAAO,UAAO,OAAsB,EAAE,MAAmC;;;;;oBAEjE,UAAU,GAAwC,CAAC;4BACvD,GAAG,EAAE,gBAAgB;4BACrB,MAAM,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;yBACxB,CAAC,CAAA;oBAEF,IAAI,MAAM,CAAC,MAAM,EAAE;wBACjB,UAAU,CAAC,IAAI,CAAC;4BACd,GAAG,EAAE,iBAAiB;4BACtB,MAAM,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;yBACxB,CAAC,CAAA;qBACH;oBAE8B,qBAAM,mBAAmB,CAAC,OAAO,EAAE;4BAChE,MAAM,EAAE,KAAK;4BACb,GAAG,EAAE,MAAM;4BACX,OAAO,EAAE,CAAC,MAAM,EAAE,sBAAsB,EAAE,gBAAgB,CAAC;4BAC3D,SAAS,EAAE;gCACT,cAAc,EAAE,MAAM,CAAC,YAAY;gCACnC,aAAa,EAAE,MAAM,CAAC,WAAW;6BAClC;4BACD,IAAI,EAAE;gCACJ,UAAU,EAAE,YAAU,MAAM,CAAC,YAAY,YAAS;gCAClD,gBAAgB,EAAE,MAAM,CAAC,cAAc,IAAI,SAAS;gCACpD,kBAAkB,EAAE;oCAClB,YAAY,EAAE,UAAU;iCACzB;6BACF;yBACF,CAAC,EAAA;;oBAfI,QAAQ,GAAiB,SAe7B;oBACF,sBAAO,iBAAiB,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAC;;;SACrD,CAAC;AACJ,CAAC;AApCD,sEAoCC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,0BAA0B;AAC1B,SAAgB,qBAAqB,CAAC,OAAsB,EAAE,MAAmC;IAC/F,OAAO,6BAA6B,CAAO,kCAA2B,EAAE,8CAA8C,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3I,CAAC;AAFD,sDAEC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<a href="https://github.com/d-velop/dvelop-sdk-node">
|
|
11
11
|
<img alt="GitHub" src="https://img.shields.io/badge/GitHub-dvelop--sdk--node-%23ff0844?logo=github&style=for-the-badge">
|
|
12
12
|
</a>
|
|
13
|
-
<a href="https://github.com/d-velop/dvelop-sdk-node/blob/
|
|
13
|
+
<a href="https://github.com/d-velop/dvelop-sdk-node/blob/main/LICENSE">
|
|
14
14
|
<img alt="license" src="https://img.shields.io/github/license/d-velop/dvelop-sdk-node?style=for-the-badge">
|
|
15
15
|
</a
|
|
16
16
|
</br>
|
|
@@ -33,6 +33,7 @@ export { getDmsObjectMainFile, getDmsObjectPdfFile } from "./dms-objects/get-dms
|
|
|
33
33
|
export { CreateDmsObjectParams, createDmsObject } from "./dms-objects/create-dms-object/create-dms-object";
|
|
34
34
|
export { StoreFileTemporarilyParams, storeFileTemporarily } from "./dms-objects/store-file-temporarily/store-file-temporarily";
|
|
35
35
|
export { UpdateDmsObjectParams, updateDmsObject } from "./dms-objects/update-dms-object/update-dms-object";
|
|
36
|
+
export { UpdateDmsObjectStatusParams, updateDmsObjectStatus } from "./dms-objects/update-dms-object-status/update-dms-object-status";
|
|
36
37
|
export { DeleteCurrentDmsObjectVersionParams, deleteCurrentDmsObjectVersion } from "./dms-objects/delete-current-dms-object-version/delete-current-dms-object-version";
|
|
37
38
|
export { SearchDmsObjectsParams, SearchDmsObjectsResultPage, ListedDmsObject, searchDmsObjects } from "./dms-objects/search-dms-objects/search-dms-objects";
|
|
38
39
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAGH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClH,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,YAAY,CAAC;AAGxC,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC9G,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAGnF,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC1G,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAClH,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAC/H,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,mCAAmC,EAAE,6BAA6B,EAAE,MAAM,mFAAmF,CAAC;AACvK,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAGH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClH,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,YAAY,CAAC;AAGxC,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC9G,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAGnF,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC1G,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAClH,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAC/H,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAC;AACrI,OAAO,EAAE,mCAAmC,EAAE,6BAA6B,EAAE,MAAM,mFAAmF,CAAC;AACvK,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<a href="https://github.com/d-velop/dvelop-sdk-node">
|
|
12
12
|
<img alt="GitHub" src="https://img.shields.io/badge/GitHub-dvelop--sdk--node-%23ff0844?logo=github&style=for-the-badge">
|
|
13
13
|
</a>
|
|
14
|
-
<a href="https://github.com/d-velop/dvelop-sdk-node/blob/
|
|
14
|
+
<a href="https://github.com/d-velop/dvelop-sdk-node/blob/main/LICENSE">
|
|
15
15
|
<img alt="license" src="https://img.shields.io/github/license/d-velop/dvelop-sdk-node?style=for-the-badge">
|
|
16
16
|
</a
|
|
17
17
|
</br>
|
|
@@ -44,7 +44,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
44
44
|
return result;
|
|
45
45
|
};
|
|
46
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
-
exports.searchDmsObjects = exports.deleteCurrentDmsObjectVersion = exports.updateDmsObject = exports.storeFileTemporarily = exports.createDmsObject = exports.getDmsObjectPdfFile = exports.getDmsObjectMainFile = exports.getDmsObject = exports.getRepositories = exports.getRepository = exports.internals = exports.DmsError = exports.NotFoundError = exports.ForbiddenError = exports.UnauthorizedError = exports.BadInputError = void 0;
|
|
47
|
+
exports.searchDmsObjects = exports.deleteCurrentDmsObjectVersion = exports.updateDmsObjectStatus = exports.updateDmsObject = exports.storeFileTemporarily = exports.createDmsObject = exports.getDmsObjectPdfFile = exports.getDmsObjectMainFile = exports.getDmsObject = exports.getRepositories = exports.getRepository = exports.internals = exports.DmsError = exports.NotFoundError = exports.ForbiddenError = exports.UnauthorizedError = exports.BadInputError = void 0;
|
|
48
48
|
// Utils
|
|
49
49
|
var core_1 = require("@dvelop-sdk/core");
|
|
50
50
|
Object.defineProperty(exports, "BadInputError", { enumerable: true, get: function () { return core_1.BadInputError; } });
|
|
@@ -71,6 +71,8 @@ var store_file_temporarily_1 = require("./dms-objects/store-file-temporarily/sto
|
|
|
71
71
|
Object.defineProperty(exports, "storeFileTemporarily", { enumerable: true, get: function () { return store_file_temporarily_1.storeFileTemporarily; } });
|
|
72
72
|
var update_dms_object_1 = require("./dms-objects/update-dms-object/update-dms-object");
|
|
73
73
|
Object.defineProperty(exports, "updateDmsObject", { enumerable: true, get: function () { return update_dms_object_1.updateDmsObject; } });
|
|
74
|
+
var update_dms_object_status_1 = require("./dms-objects/update-dms-object-status/update-dms-object-status");
|
|
75
|
+
Object.defineProperty(exports, "updateDmsObjectStatus", { enumerable: true, get: function () { return update_dms_object_status_1.updateDmsObjectStatus; } });
|
|
74
76
|
var delete_current_dms_object_version_1 = require("./dms-objects/delete-current-dms-object-version/delete-current-dms-object-version");
|
|
75
77
|
Object.defineProperty(exports, "deleteCurrentDmsObjectVersion", { enumerable: true, get: function () { return delete_current_dms_object_version_1.deleteCurrentDmsObjectVersion; } });
|
|
76
78
|
var search_dms_objects_1 = require("./dms-objects/search-dms-objects/search-dms-objects");
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;;;;;;;;;;;;;;;;;;;;;;AAEH,QAAQ;AACR,yCAAkH;AAA1F,qGAAA,aAAa,OAAA;AAAE,yGAAA,iBAAiB,OAAA;AAAE,sGAAA,cAAc,OAAA;AAAE,qGAAA,aAAa,OAAA;AACvF,qCAAwC;AAA/B,gGAAA,QAAQ,OAAA;AACjB,wDAAwC;AAExC,aAAa;AACb,+EAA8G;AAApE,+GAAA,aAAa,OAAA;AACvD,qFAAmF;AAA1E,mHAAA,eAAe,OAAA;AAExB,aAAa;AACb,8EAA0G;AAAlE,8GAAA,YAAY,OAAA;AACpD,6FAAkH;AAAzG,2HAAA,oBAAoB,OAAA;AAAE,0HAAA,mBAAmB,OAAA;AAClD,uFAA2G;AAA3E,oHAAA,eAAe,OAAA;AAC/C,sGAA+H;AAA1F,8HAAA,oBAAoB,OAAA;AACzD,uFAA2G;AAA3E,oHAAA,eAAe,OAAA;AAC/C,uIAAuK;AAAzH,kJAAA,6BAA6B,OAAA;AAC3E,0FAA4J;AAA9E,sHAAA,gBAAgB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;;;;;;;;;;;;;;;;;;;;;;AAEH,QAAQ;AACR,yCAAkH;AAA1F,qGAAA,aAAa,OAAA;AAAE,yGAAA,iBAAiB,OAAA;AAAE,sGAAA,cAAc,OAAA;AAAE,qGAAA,aAAa,OAAA;AACvF,qCAAwC;AAA/B,gGAAA,QAAQ,OAAA;AACjB,wDAAwC;AAExC,aAAa;AACb,+EAA8G;AAApE,+GAAA,aAAa,OAAA;AACvD,qFAAmF;AAA1E,mHAAA,eAAe,OAAA;AAExB,aAAa;AACb,8EAA0G;AAAlE,8GAAA,YAAY,OAAA;AACpD,6FAAkH;AAAzG,2HAAA,oBAAoB,OAAA;AAAE,0HAAA,mBAAmB,OAAA;AAClD,uFAA2G;AAA3E,oHAAA,eAAe,OAAA;AAC/C,sGAA+H;AAA1F,8HAAA,oBAAoB,OAAA;AACzD,uFAA2G;AAA3E,oHAAA,eAAe,OAAA;AAC/C,4GAAqI;AAA/F,iIAAA,qBAAqB,OAAA;AAC3D,uIAAuK;AAAzH,kJAAA,6BAA6B,OAAA;AAC3E,0FAA4J;AAA9E,sHAAA,gBAAgB,OAAA"}
|
package/lib/internal.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { _getDmsObjectMainFileFactory, _getDmsObjectPdfFileFactory } from "./dms
|
|
|
6
6
|
export { _createDmsObjectDefaultStoreFileFunction, _createDmsObjectDefaultTransformFunction } from "./dms-objects/create-dms-object/create-dms-object";
|
|
7
7
|
export { _storeFileTemporarilyFactory, _storeFileTemporarilyDefaultTransformFunction } from "./dms-objects/store-file-temporarily/store-file-temporarily";
|
|
8
8
|
export { _updateDmsObjectFactory, _updateDmsObjectDefaultTransformFunction } from "./dms-objects/update-dms-object/update-dms-object";
|
|
9
|
+
export { _updateDmsObjectStatusFactory, _updateDmsObjectStatusDefaultTransformFunction } from "./dms-objects/update-dms-object-status/update-dms-object-status";
|
|
9
10
|
export { _deleteCurrentDmsObjectVersionFactory, _deleteCurrentDmsObjectVersionDefaultTransformFunction } from "./dms-objects/delete-current-dms-object-version/delete-current-dms-object-version";
|
|
10
11
|
export { _searchDmsObjectsDefaultTransformFunctionFactory } from "./dms-objects/search-dms-objects/search-dms-objects";
|
|
11
12
|
//# sourceMappingURL=internal.d.ts.map
|
package/lib/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAG/F,OAAO,EAAE,qBAAqB,EAAE,sCAAsC,EAAE,MAAM,8CAA8C,CAAC;AAC7H,OAAO,EAAE,uBAAuB,EAAE,wCAAwC,EAAE,MAAM,kDAAkD,CAAC;AAGrI,OAAO,EAAE,oBAAoB,EAAE,qCAAqC,EAAE,4CAA4C,EAAE,MAAM,6CAA6C,CAAC;AACxK,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AAClI,OAAO,EAAE,wCAAwC,EAAE,wCAAwC,EAAE,MAAM,mDAAmD,CAAC;AACvJ,OAAO,EAAE,4BAA4B,EAAE,6CAA6C,EAAE,MAAM,6DAA6D,CAAC;AAC1J,OAAO,EAAE,uBAAuB,EAAE,wCAAwC,EAAE,MAAM,mDAAmD,CAAC;AACtI,OAAO,EAAE,qCAAqC,EAAE,sDAAsD,EAAE,MAAM,mFAAmF,CAAC;AAClM,OAAO,EAAE,gDAAgD,EAAE,MAAM,qDAAqD,CAAC"}
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAG/F,OAAO,EAAE,qBAAqB,EAAE,sCAAsC,EAAE,MAAM,8CAA8C,CAAC;AAC7H,OAAO,EAAE,uBAAuB,EAAE,wCAAwC,EAAE,MAAM,kDAAkD,CAAC;AAGrI,OAAO,EAAE,oBAAoB,EAAE,qCAAqC,EAAE,4CAA4C,EAAE,MAAM,6CAA6C,CAAC;AACxK,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AAClI,OAAO,EAAE,wCAAwC,EAAE,wCAAwC,EAAE,MAAM,mDAAmD,CAAC;AACvJ,OAAO,EAAE,4BAA4B,EAAE,6CAA6C,EAAE,MAAM,6DAA6D,CAAC;AAC1J,OAAO,EAAE,uBAAuB,EAAE,wCAAwC,EAAE,MAAM,mDAAmD,CAAC;AACtI,OAAO,EAAE,6BAA6B,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AAChK,OAAO,EAAE,qCAAqC,EAAE,sDAAsD,EAAE,MAAM,mFAAmF,CAAC;AAClM,OAAO,EAAE,gDAAgD,EAAE,MAAM,qDAAqD,CAAC"}
|
package/lib/internal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._searchDmsObjectsDefaultTransformFunctionFactory = exports._deleteCurrentDmsObjectVersionDefaultTransformFunction = exports._deleteCurrentDmsObjectVersionFactory = exports._updateDmsObjectDefaultTransformFunction = exports._updateDmsObjectFactory = exports._storeFileTemporarilyDefaultTransformFunction = exports._storeFileTemporarilyFactory = exports._createDmsObjectDefaultTransformFunction = exports._createDmsObjectDefaultStoreFileFunction = exports._getDmsObjectPdfFileFactory = exports._getDmsObjectMainFileFactory = exports._getDmsObjectDefaultTransformFunctionFactory = exports._getDmsObjectDefaultTransformFunction = exports._getDmsObjectFactory = exports._getRepositoriesDefaultTransformFunction = exports._getRepositoriesFactory = exports._getRepositoryDefaultTransformFunction = exports._getRepositoryFactory = exports._defaultHttpRequestFunction = exports._defaultHttpRequestFunctionFactory = void 0;
|
|
3
|
+
exports._searchDmsObjectsDefaultTransformFunctionFactory = exports._deleteCurrentDmsObjectVersionDefaultTransformFunction = exports._deleteCurrentDmsObjectVersionFactory = exports._updateDmsObjectStatusDefaultTransformFunction = exports._updateDmsObjectStatusFactory = exports._updateDmsObjectDefaultTransformFunction = exports._updateDmsObjectFactory = exports._storeFileTemporarilyDefaultTransformFunction = exports._storeFileTemporarilyFactory = exports._createDmsObjectDefaultTransformFunction = exports._createDmsObjectDefaultStoreFileFunction = exports._getDmsObjectPdfFileFactory = exports._getDmsObjectMainFileFactory = exports._getDmsObjectDefaultTransformFunctionFactory = exports._getDmsObjectDefaultTransformFunction = exports._getDmsObjectFactory = exports._getRepositoriesDefaultTransformFunction = exports._getRepositoriesFactory = exports._getRepositoryDefaultTransformFunction = exports._getRepositoryFactory = exports._defaultHttpRequestFunction = exports._defaultHttpRequestFunctionFactory = void 0;
|
|
4
4
|
var http_1 = require("./utils/http");
|
|
5
5
|
Object.defineProperty(exports, "_defaultHttpRequestFunctionFactory", { enumerable: true, get: function () { return http_1._defaultHttpRequestFunctionFactory; } });
|
|
6
6
|
Object.defineProperty(exports, "_defaultHttpRequestFunction", { enumerable: true, get: function () { return http_1._defaultHttpRequestFunction; } });
|
|
@@ -28,6 +28,9 @@ Object.defineProperty(exports, "_storeFileTemporarilyDefaultTransformFunction",
|
|
|
28
28
|
var update_dms_object_1 = require("./dms-objects/update-dms-object/update-dms-object");
|
|
29
29
|
Object.defineProperty(exports, "_updateDmsObjectFactory", { enumerable: true, get: function () { return update_dms_object_1._updateDmsObjectFactory; } });
|
|
30
30
|
Object.defineProperty(exports, "_updateDmsObjectDefaultTransformFunction", { enumerable: true, get: function () { return update_dms_object_1._updateDmsObjectDefaultTransformFunction; } });
|
|
31
|
+
var update_dms_object_status_1 = require("./dms-objects/update-dms-object-status/update-dms-object-status");
|
|
32
|
+
Object.defineProperty(exports, "_updateDmsObjectStatusFactory", { enumerable: true, get: function () { return update_dms_object_status_1._updateDmsObjectStatusFactory; } });
|
|
33
|
+
Object.defineProperty(exports, "_updateDmsObjectStatusDefaultTransformFunction", { enumerable: true, get: function () { return update_dms_object_status_1._updateDmsObjectStatusDefaultTransformFunction; } });
|
|
31
34
|
var delete_current_dms_object_version_1 = require("./dms-objects/delete-current-dms-object-version/delete-current-dms-object-version");
|
|
32
35
|
Object.defineProperty(exports, "_deleteCurrentDmsObjectVersionFactory", { enumerable: true, get: function () { return delete_current_dms_object_version_1._deleteCurrentDmsObjectVersionFactory; } });
|
|
33
36
|
Object.defineProperty(exports, "_deleteCurrentDmsObjectVersionDefaultTransformFunction", { enumerable: true, get: function () { return delete_current_dms_object_version_1._deleteCurrentDmsObjectVersionDefaultTransformFunction; } });
|
package/lib/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":";;;AAAA,qCAA+F;AAAtF,0HAAA,kCAAkC,OAAA;AAAE,mHAAA,2BAA2B,OAAA;AAExE,aAAa;AACb,+EAA6H;AAApH,uHAAA,qBAAqB,OAAA;AAAE,wIAAA,sCAAsC,OAAA;AACtE,qFAAqI;AAA5H,2HAAA,uBAAuB,OAAA;AAAE,4IAAA,wCAAwC,OAAA;AAE1E,aAAa;AACb,8EAAwK;AAA/J,sHAAA,oBAAoB,OAAA;AAAE,uIAAA,qCAAqC,OAAA;AAAE,8IAAA,4CAA4C,OAAA;AAClH,6FAAkI;AAAzH,mIAAA,4BAA4B,OAAA;AAAE,kIAAA,2BAA2B,OAAA;AAClE,uFAAuJ;AAA9I,6IAAA,wCAAwC,OAAA;AAAE,6IAAA,wCAAwC,OAAA;AAC3F,sGAA0J;AAAjJ,sIAAA,4BAA4B,OAAA;AAAE,uJAAA,6CAA6C,OAAA;AACpF,uFAAsI;AAA7H,4HAAA,uBAAuB,OAAA;AAAE,6IAAA,wCAAwC,OAAA;AAC1E,uIAAkM;AAAzL,0JAAA,qCAAqC,OAAA;AAAE,2KAAA,sDAAsD,OAAA;AACtG,0FAAuH;AAA9G,sJAAA,gDAAgD,OAAA"}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":";;;AAAA,qCAA+F;AAAtF,0HAAA,kCAAkC,OAAA;AAAE,mHAAA,2BAA2B,OAAA;AAExE,aAAa;AACb,+EAA6H;AAApH,uHAAA,qBAAqB,OAAA;AAAE,wIAAA,sCAAsC,OAAA;AACtE,qFAAqI;AAA5H,2HAAA,uBAAuB,OAAA;AAAE,4IAAA,wCAAwC,OAAA;AAE1E,aAAa;AACb,8EAAwK;AAA/J,sHAAA,oBAAoB,OAAA;AAAE,uIAAA,qCAAqC,OAAA;AAAE,8IAAA,4CAA4C,OAAA;AAClH,6FAAkI;AAAzH,mIAAA,4BAA4B,OAAA;AAAE,kIAAA,2BAA2B,OAAA;AAClE,uFAAuJ;AAA9I,6IAAA,wCAAwC,OAAA;AAAE,6IAAA,wCAAwC,OAAA;AAC3F,sGAA0J;AAAjJ,sIAAA,4BAA4B,OAAA;AAAE,uJAAA,6CAA6C,OAAA;AACpF,uFAAsI;AAA7H,4HAAA,uBAAuB,OAAA;AAAE,6IAAA,wCAAwC,OAAA;AAC1E,4GAAgK;AAAvJ,yIAAA,6BAA6B,OAAA;AAAE,0JAAA,8CAA8C,OAAA;AACtF,uIAAkM;AAAzL,0JAAA,qCAAqC,OAAA;AAAE,2KAAA,sDAAsD,OAAA;AACtG,0FAAuH;AAA9G,sJAAA,gDAAgD,OAAA"}
|
|
@@ -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.1.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"license": "license-checker --production --onlyAllow Apache-2.0;MIT;ISC;BSD-2-Clause;BSD-3-Clause"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@dvelop-sdk/core": "^
|
|
26
|
+
"@dvelop-sdk/core": "^2.1.0"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|