@dvelop-sdk/dms 1.0.0 → 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.
Files changed (34) hide show
  1. package/lib/dms-objects/create-dms-object/create-dms-object.d.ts +16 -1
  2. package/lib/dms-objects/create-dms-object/create-dms-object.d.ts.map +1 -1
  3. package/lib/dms-objects/create-dms-object/create-dms-object.js +3 -3
  4. package/lib/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.d.ts +14 -0
  5. package/lib/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.d.ts.map +1 -1
  6. package/lib/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.js +4 -3
  7. package/lib/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.js.map +1 -1
  8. package/lib/dms-objects/get-dms-object/get-dms-object.d.ts +20 -0
  9. package/lib/dms-objects/get-dms-object/get-dms-object.d.ts.map +1 -1
  10. package/lib/dms-objects/get-dms-object/get-dms-object.js +3 -3
  11. package/lib/dms-objects/get-dms-object-file/get-dms-object-file.d.ts +21 -0
  12. package/lib/dms-objects/get-dms-object-file/get-dms-object-file.d.ts.map +1 -1
  13. package/lib/dms-objects/get-dms-object-file/get-dms-object-file.js +2 -2
  14. package/lib/dms-objects/search-dms-objects/search-dms-objects.d.ts +14 -0
  15. package/lib/dms-objects/search-dms-objects/search-dms-objects.d.ts.map +1 -1
  16. package/lib/dms-objects/search-dms-objects/search-dms-objects.js +3 -3
  17. package/lib/dms-objects/store-file-temporarily/store-file-temporarily.d.ts +14 -0
  18. package/lib/dms-objects/store-file-temporarily/store-file-temporarily.d.ts.map +1 -1
  19. package/lib/dms-objects/store-file-temporarily/store-file-temporarily.js +2 -2
  20. package/lib/dms-objects/update-dms-object/update-dms-object.d.ts +26 -0
  21. package/lib/dms-objects/update-dms-object/update-dms-object.d.ts.map +1 -1
  22. package/lib/dms-objects/update-dms-object/update-dms-object.js +3 -3
  23. package/lib/repositories/get-repositories/get-repositories.d.ts +14 -0
  24. package/lib/repositories/get-repositories/get-repositories.d.ts.map +1 -1
  25. package/lib/repositories/get-repositories/get-repositories.js +3 -3
  26. package/lib/repositories/get-repositories/get-repositories.js.map +1 -1
  27. package/lib/repositories/get-repository/get-repository.d.ts +14 -0
  28. package/lib/repositories/get-repository/get-repository.d.ts.map +1 -1
  29. package/lib/repositories/get-repository/get-repository.js +2 -2
  30. package/lib/utils/http.d.ts +13 -1
  31. package/lib/utils/http.d.ts.map +1 -1
  32. package/lib/utils/http.js +2 -2
  33. package/package.json +4 -5
  34. package/LICENSE +0 -201
@@ -29,7 +29,22 @@ export interface CreateDmsObjectParams {
29
29
  content?: ArrayBuffer;
30
30
  }
31
31
  /**
32
- * Factory for the {@link createDmsObject}-function. See internals for more information.
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
+ }>;
46
+ /**
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.
34
49
  * @category DmsObject
35
50
  */
@@ -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;AAoCD;;;;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"}
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"}
@@ -41,7 +41,7 @@ var index_1 = require("../../index");
41
41
  var http_1 = require("../../utils/http");
42
42
  var store_file_temporarily_1 = require("../store-file-temporarily/store-file-temporarily");
43
43
  /**
44
- * Default transform-function provided to the {@link createDmsObject}-function.
44
+ * 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.
45
45
  * @internal
46
46
  * @category DmsObject
47
47
  */
@@ -61,7 +61,7 @@ function _createDmsObjectDefaultTransformFunction(response, _, params) {
61
61
  }
62
62
  exports._createDmsObjectDefaultTransformFunction = _createDmsObjectDefaultTransformFunction;
63
63
  /**
64
- * Default store-file-function provided to the {@link createDmsObject}-function.
64
+ * 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.
65
65
  * @internal
66
66
  * @category DmsObject
67
67
  */
@@ -83,7 +83,7 @@ function _createDmsObjectDefaultStoreFileFunction(context, params) {
83
83
  }
84
84
  exports._createDmsObjectDefaultStoreFileFunction = _createDmsObjectDefaultStoreFileFunction;
85
85
  /**
86
- * Factory for the {@link createDmsObject}-function. See internals for more information.
86
+ * Factory for the {@link createDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
87
87
  * @typeparam T Return type of the {@link createDmsObject}-function. A corresponding transformFuntion has to be supplied.
88
88
  * @category DmsObject
89
89
  */
@@ -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)
@@ -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;AAI5D;;;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;AAkDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,wBAAsB,6BAA6B,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,mCAAmC,GAAG,OAAO,CAAC,OAAO,CAAC,CAEzI"}
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"}
@@ -41,12 +41,13 @@ var index_1 = require("../../index");
41
41
  var http_1 = require("../../utils/http");
42
42
  var get_dms_object_1 = require("../get-dms-object/get-dms-object");
43
43
  /**
44
- * Default transform-function provided to the {@link deleteCurrentDmsObjectVersion}-function.
44
+ * 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.
45
45
  * @internal
46
46
  * @category DmsObject
47
47
  */
48
48
  function _deleteCurrentDmsObjectVersionDefaultTransformFunction(response, _, __) {
49
- if (response.data._links.deleteWithReason || response.data._links.delete) {
49
+ var _a, _b, _c, _d;
50
+ if (((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a._links) === null || _b === void 0 ? void 0 : _b.deleteWithReason) || ((_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c._links) === null || _d === void 0 ? void 0 : _d.delete)) {
50
51
  return false;
51
52
  }
52
53
  else {
@@ -55,7 +56,7 @@ function _deleteCurrentDmsObjectVersionDefaultTransformFunction(response, _, __)
55
56
  }
56
57
  exports._deleteCurrentDmsObjectVersionDefaultTransformFunction = _deleteCurrentDmsObjectVersionDefaultTransformFunction;
57
58
  /**
58
- * Factory for the {@link deleteCurrentDmsObjectVersion}-function. See internals for more information.
59
+ * Factory for the {@link deleteCurrentDmsObjectVersion}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
59
60
  * @typeparam T Return type of the {@link deleteCurrentDmsObjectVersion}-function. A corresponding transformFuntion has to be supplied.
60
61
  * @internal
61
62
  * @category DmsObject
@@ -1 +1 @@
1
- {"version":3,"file":"delete-current-dms-object-version.js","sourceRoot":"","sources":["../../../src/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA4D;AAC5D,yCAAyF;AACzF,mEAAwE;AAiBxE;;;;GAIG;AACH,SAAgB,sDAAsD,CAAC,QAAsB,EAAE,CAAgB,EAAE,EAAuC;IACtJ,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;QACxE,OAAO,KAAK,CAAC;KACd;SAAM;QACL,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AAND,wHAMC;AAED;;;;;GAKG;AACH,SAAgB,qCAAqC,CACnD,mBAA0F,EAC1F,iBAAqH;IAFvH,iBA2BC;IAvBC,OAAO,UAAO,OAAsB,EAAE,MAA2C;;;;wBAEpC,qBAAM,qCAAoB,CAAC,mBAAmB,EAAE,UAAC,QAAsB,IAAK,OAAA,QAAQ,EAAR,CAAQ,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,EAAA;;oBAA3I,oBAAoB,GAAiB,SAAsG;oBAGjJ,IAAI,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE;wBACrD,GAAG,GAAG,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC;qBAC9D;yBAAM,IAAI,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;wBAClD,GAAG,GAAG,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;qBACpD;yBAAM;wBACL,MAAM,IAAI,sBAAc,CAAC,2BAA2B,CAAC,CAAC;qBACvD;oBAE8B,qBAAM,mBAAmB,CAAC,OAAO,EAAE;4BAChE,MAAM,EAAE,QAAQ;4BAChB,GAAG,EAAE,GAAG;4BACR,IAAI,EAAE;gCACJ,MAAM,EAAE,MAAM,CAAC,MAAM;6BACtB;yBACF,CAAC,EAAA;;oBANI,QAAQ,GAAiB,SAM7B;oBAEF,sBAAO,iBAAiB,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAC;;;SACrD,CAAC;AACJ,CAAC;AA3BD,sFA2BC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,0BAA0B;AAC1B,SAAsB,6BAA6B,CAAC,OAAsB,EAAE,MAA2C;;;YACrH,sBAAO,qCAAqC,CAAC,kCAA2B,EAAE,sDAAsD,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,EAAC;;;CACpJ;AAFD,sEAEC"}
1
+ {"version":3,"file":"delete-current-dms-object-version.js","sourceRoot":"","sources":["../../../src/dms-objects/delete-current-dms-object-version/delete-current-dms-object-version.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA4D;AAC5D,yCAAyF;AACzF,mEAAwE;AAiBxE;;;;GAIG;AACH,SAAgB,sDAAsD,CAAC,QAAsB,EAAE,CAAgB,EAAE,EAAuC;;IACtJ,IAAI,CAAA,MAAA,MAAA,QAAQ,CAAC,IAAI,0CAAE,MAAM,0CAAE,gBAAgB,MAAI,MAAA,MAAA,QAAQ,CAAC,IAAI,0CAAE,MAAM,0CAAE,MAAM,CAAA,EAAE;QAC5E,OAAO,KAAK,CAAC;KACd;SAAM;QACL,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AAND,wHAMC;AAED;;;;;GAKG;AACH,SAAgB,qCAAqC,CACnD,mBAA0F,EAC1F,iBAAqH;IAFvH,iBA2BC;IAvBC,OAAO,UAAO,OAAsB,EAAE,MAA2C;;;;wBAEpC,qBAAM,qCAAoB,CAAC,mBAAmB,EAAE,UAAC,QAAsB,IAAK,OAAA,QAAQ,EAAR,CAAQ,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,EAAA;;oBAA3I,oBAAoB,GAAiB,SAAsG;oBAGjJ,IAAI,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE;wBACrD,GAAG,GAAG,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC;qBAC9D;yBAAM,IAAI,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;wBAClD,GAAG,GAAG,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;qBACpD;yBAAM;wBACL,MAAM,IAAI,sBAAc,CAAC,2BAA2B,CAAC,CAAC;qBACvD;oBAE8B,qBAAM,mBAAmB,CAAC,OAAO,EAAE;4BAChE,MAAM,EAAE,QAAQ;4BAChB,GAAG,EAAE,GAAG;4BACR,IAAI,EAAE;gCACJ,MAAM,EAAE,MAAM,CAAC,MAAM;6BACtB;yBACF,CAAC,EAAA;;oBANI,QAAQ,GAAiB,SAM7B;oBAEF,sBAAO,iBAAiB,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAC;;;SACrD,CAAC;AACJ,CAAC;AA3BD,sFA2BC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,0BAA0B;AAC1B,SAAsB,6BAA6B,CAAC,OAAsB,EAAE,MAA2C;;;YACrH,sBAAO,qCAAqC,CAAC,kCAA2B,EAAE,sDAAsD,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,EAAC;;;CACpJ;AAFD,sEAEC"}
@@ -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;AAI5C;;;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;AAqED;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wBAAsB,YAAY,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,sBAEpF"}
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"}
@@ -40,7 +40,7 @@ exports.getDmsObject = exports._getDmsObjectDefaultTransformFunction = exports._
40
40
  var http_1 = require("../../utils/http");
41
41
  var get_dms_object_file_1 = require("../get-dms-object-file/get-dms-object-file");
42
42
  /**
43
- * Factory for the default-transform-function for the {@link getDmsObject}-function. See internals for more information.
43
+ * 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.
44
44
  * @internal
45
45
  * @category DmsObject
46
46
  */
@@ -75,7 +75,7 @@ function _getDmsObjectDefaultTransformFunctionFactory(getDmsObjectMainFileFuncti
75
75
  }
76
76
  exports._getDmsObjectDefaultTransformFunctionFactory = _getDmsObjectDefaultTransformFunctionFactory;
77
77
  /**
78
- * Factory for {@link getDmsObject}-function. See internals for more information.
78
+ * Factory for {@link getDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
79
79
  * @typeparam T Return type of the getRepositories-function. A corresponding transformFuntion has to be supplied.
80
80
  * @internal
81
81
  * @category DmsObject
@@ -105,7 +105,7 @@ function _getDmsObjectFactory(httpRequestFunction, transformFunction) {
105
105
  }
106
106
  exports._getDmsObjectFactory = _getDmsObjectFactory;
107
107
  /**
108
- * Factory for the default-transform-function for the {@link searchDmsObjects}-function. See internals for more information.
108
+ * 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.
109
109
  * @internal
110
110
  * @category DmsObject
111
111
  */
@@ -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;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAwErF;;;;;;;;;;;;;;;;;;;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
+ {"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"}
@@ -89,7 +89,7 @@ function getDmsObjectBlobContentRespone(httpRequestFunction, follow, context, pa
89
89
  });
90
90
  }
91
91
  /**
92
- * Factory for {@link getDmsObjectMainFile}-function. See internals for more information.
92
+ * Factory for {@link getDmsObjectMainFile}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
93
93
  * @typeparam T Return type of the getRepositories-function. A corresponding transformFuntion has to be supplied.
94
94
  * @internal
95
95
  * @category DmsObject
@@ -110,7 +110,7 @@ function _getDmsObjectMainFileFactory(httpRequestFunction, transformFunction) {
110
110
  }
111
111
  exports._getDmsObjectMainFileFactory = _getDmsObjectMainFileFactory;
112
112
  /**
113
- * Factory for {@link getDmsObjectPdfFile}-function. See internals for more information.
113
+ * Factory for {@link getDmsObjectPdfFile}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
114
114
  * @typeparam T Return type of the getRepositories-function. A corresponding transformFuntion has to be supplied.
115
115
  * @internal
116
116
  * @category DmsObject
@@ -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;AAG5C;;;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;AAqID;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAE5H"}
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"}
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.searchDmsObjects = exports.searchDmsObjectsFactory = exports._searchDmsObjectsDefaultTransformFunctionFactory = void 0;
40
40
  var http_1 = require("../../utils/http");
41
41
  /**
42
- * Factory for the default-transform-function for the {@link searchDmsObjects}-function. See internals for more information.
42
+ * 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.
43
43
  * @internal
44
44
  * @category DmsObject
45
45
  */
@@ -76,7 +76,7 @@ function _listedDmsObjectDefaultTransformFunctionFactory(httpRequestFunction) {
76
76
  };
77
77
  }
78
78
  /**
79
- * Factory for the default-transform-function for the {@link searchDmsObjects}-function. See internals for more information.
79
+ * 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.
80
80
  * @internal
81
81
  * @category DmsObject
82
82
  */
@@ -137,7 +137,7 @@ function formatProperties(properties) {
137
137
  return sourceProperties;
138
138
  }
139
139
  /**
140
- * Factory for the {@link searchDmsObjects}-function. See internals for more information.
140
+ * Factory for the {@link searchDmsObjects}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
141
141
  * @typeparam T Return type of the {@link storeFileFunction}-function. A corresponding transformFuntion has to be supplied.
142
142
  * @internal
143
143
  * @category DmsObject
@@ -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;AAG5C;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,2BAA2B;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,iCAAiC;IACjC,OAAO,EAAE,WAAW,CAAC;CACtB;AAkCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC,CAEtH"}
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"}
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.storeFileTemporarily = exports._storeFileTemporarilyFactory = exports._storeFileTemporarilyDefaultTransformFunction = void 0;
40
40
  var http_1 = require("../../utils/http");
41
41
  /**
42
- * Default transform-function provided to the {@link storeFileTemporarily}-function.
42
+ * 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.
43
43
  * @internal
44
44
  * @category DmsObject
45
45
  */
@@ -48,7 +48,7 @@ function _storeFileTemporarilyDefaultTransformFunction(response, _, __) {
48
48
  }
49
49
  exports._storeFileTemporarilyDefaultTransformFunction = _storeFileTemporarilyDefaultTransformFunction;
50
50
  /**
51
- * Factory for the {@link storeFileFunction}-function. See internals for more information.
51
+ * Factory for the {@link storeFileFunction}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
52
52
  * @typeparam T Return type of the {@link storeFileFunction}-function. A corresponding transformFuntion has to be supplied.
53
53
  * @internal
54
54
  * @category DmsObject
@@ -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;AAI5C;;;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;AAgED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpG"}
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"}
@@ -40,14 +40,14 @@ exports.updateDmsObject = exports._updateDmsObjectFactory = exports.updateDmsObj
40
40
  var http_1 = require("../../utils/http");
41
41
  var store_file_temporarily_1 = require("../store-file-temporarily/store-file-temporarily");
42
42
  /**
43
- * Default transform-function provided to the {@link updateDmsObject}-function.
43
+ * 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.
44
44
  * @internal
45
45
  * @category DmsObject
46
46
  */
47
47
  function _updateDmsObjectDefaultTransformFunction(_, __, ___) { } // no error indicates success. Returning void
48
48
  exports._updateDmsObjectDefaultTransformFunction = _updateDmsObjectDefaultTransformFunction;
49
49
  /**
50
- * Default storeFile-function provided to the {@link updateDmsObject}-function. This will get called when content is provided.
50
+ * 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.
51
51
  * @internal
52
52
  * @category DmsObject
53
53
  */
@@ -69,7 +69,7 @@ function updateDmsObjectDefaultStoreFileFunction(context, params) {
69
69
  }
70
70
  exports.updateDmsObjectDefaultStoreFileFunction = updateDmsObjectDefaultStoreFileFunction;
71
71
  /**
72
- * Factory for the {@link updateDmsObject}-function. See internals for more information.
72
+ * Factory for the {@link updateDmsObject}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
73
73
  * @typeparam T Return type of the {@link updateDmsObject}-function. A corresponding transformFuntion has to be supplied.
74
74
  * @internal
75
75
  * @category DmsObject
@@ -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;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAqC9D;;;;;;;;;;;;;;;GAeG;AAEH,wBAAsB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAEnF"}
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"}
@@ -39,14 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getRepositories = exports._getRepositoriesFactory = exports._getRepositoriesDefaultTransformFunction = void 0;
40
40
  var http_1 = require("../../utils/http");
41
41
  /**
42
- * Default transform-function provided to the {@link getRepositories}-function.
42
+ * 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.
43
43
  * @internal
44
44
  * @category Repository
45
45
  */
46
46
  function _getRepositoriesDefaultTransformFunction(response, _) {
47
47
  return response.data.repositories.map(function (repositoryDto) {
48
48
  return {
49
- id: repositoryDto.id,
49
+ repositoryId: repositoryDto.id,
50
50
  name: repositoryDto.name,
51
51
  sourceId: repositoryDto._links["source"].href
52
52
  };
@@ -54,7 +54,7 @@ function _getRepositoriesDefaultTransformFunction(response, _) {
54
54
  }
55
55
  exports._getRepositoriesDefaultTransformFunction = _getRepositoriesDefaultTransformFunction;
56
56
  /**
57
- * Factory for {@link getRepositories}-function. See internals for more information.
57
+ * Factory for {@link getRepositories}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
58
58
  * @typeparam T Return type of the getRepositories-function. A corresponding transformFuntion has to be supplied.
59
59
  * @internal
60
60
  * @category Repository
@@ -1 +1 @@
1
- {"version":3,"file":"get-repositories.js","sourceRoot":"","sources":["../../../src/repositories/get-repositories/get-repositories.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAAyF;AAGzF;;;;GAIG;AACH,SAAgB,wCAAwC,CAAC,QAAsB,EAAE,CAAgB;IAC/F,OAAO,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAC,aAAkB;QACvD,OAAO;YACL,EAAE,EAAE,aAAa,CAAC,EAAE;YACpB,IAAI,EAAE,aAAa,CAAC,IAAI;YACxB,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI;SAC9C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AARD,4FAQC;AAED;;;;;GAKG;AACH,SAAgB,uBAAuB,CACrC,mBAA0F,EAC1F,iBAAwE;IAF1E,iBAYC;IARC,OAAO,UAAO,OAAsB;;;;wBACH,qBAAM,mBAAmB,CAAC,OAAO,EAAE;wBAChE,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,MAAM;wBACX,OAAO,EAAE,CAAC,UAAU,CAAC;qBACtB,CAAC,EAAA;;oBAJI,QAAQ,GAAiB,SAI7B;oBACF,sBAAO,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAC;;;SAC7C,CAAC;AACJ,CAAC;AAZD,0DAYC;AAED;;;;;;;;;;;;;;;GAeG;AACH,0BAA0B;AAC1B,SAAsB,eAAe,CAAC,OAAsB;;;;wBACnD,qBAAM,uBAAuB,CAAC,kCAA2B,EAAE,wCAAwC,CAAC,CAAC,OAAO,CAAC,EAAA;wBAApH,sBAAO,SAA6G,EAAC;;;;CACtH;AAFD,0CAEC"}
1
+ {"version":3,"file":"get-repositories.js","sourceRoot":"","sources":["../../../src/repositories/get-repositories/get-repositories.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAAyF;AAGzF;;;;GAIG;AACH,SAAgB,wCAAwC,CAAC,QAAsB,EAAE,CAAgB;IAC/F,OAAO,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAC,aAAkB;QACvD,OAAO;YACL,YAAY,EAAE,aAAa,CAAC,EAAE;YAC9B,IAAI,EAAE,aAAa,CAAC,IAAI;YACxB,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI;SAC9C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AARD,4FAQC;AAED;;;;;GAKG;AACH,SAAgB,uBAAuB,CACrC,mBAA0F,EAC1F,iBAAwE;IAF1E,iBAYC;IARC,OAAO,UAAO,OAAsB;;;;wBACH,qBAAM,mBAAmB,CAAC,OAAO,EAAE;wBAChE,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,MAAM;wBACX,OAAO,EAAE,CAAC,UAAU,CAAC;qBACtB,CAAC,EAAA;;oBAJI,QAAQ,GAAiB,SAI7B;oBACF,sBAAO,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAC;;;SAC7C,CAAC;AACJ,CAAC;AAZD,0DAYC;AAED;;;;;;;;;;;;;;;GAeG;AACH,0BAA0B;AAC1B,SAAsB,eAAe,CAAC,OAAsB;;;;wBACnD,qBAAM,uBAAuB,CAAC,kCAA2B,EAAE,wCAAwC,CAAC,CAAC,OAAO,CAAC,EAAA;wBAApH,sBAAO,SAA6G,EAAC;;;;CACtH;AAFD,0CAEC"}
@@ -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;AAG5C;;;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;AAqCD;;;;;;;;;;;;;;;;;GAiBG;AAEH,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,CAE5G"}
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"}
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getRepository = exports._getRepositoryFactory = exports._getRepositoryDefaultTransformFunction = void 0;
40
40
  var http_1 = require("../../utils/http");
41
41
  /**
42
- * Default transform-function provided to the {@link getRepository}-function.
42
+ * 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.
43
43
  * @internal
44
44
  * @category Repository
45
45
  */
@@ -53,7 +53,7 @@ function _getRepositoryDefaultTransformFunction(response, _, __) {
53
53
  }
54
54
  exports._getRepositoryDefaultTransformFunction = _getRepositoryDefaultTransformFunction;
55
55
  /**
56
- * Factory for the {@link getRepository}-function. See internals for more information.
56
+ * Factory for the {@link getRepository}-function. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
57
57
  * @typeparam T Return type of the {@link getRepository}-function. A corresponding transformFuntion has to be supplied.
58
58
  * @internal
59
59
  * @category Repository
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/utils/http.ts"],"names":[],"mappings":"AACA,OAAO,EAAiL,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"}
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/lib/utils/http.js CHANGED
@@ -72,7 +72,7 @@ var DmsError = /** @class */ (function (_super) {
72
72
  }(core_1.DvelopSdkError));
73
73
  exports.DmsError = DmsError;
74
74
  /**
75
- * Factory used to create the default httpRequestFunction. Mostly used for HTTP-Error handling.
75
+ * Factory used to create the default httpRequestFunction. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
76
76
  * @internal
77
77
  * @category Http
78
78
  */
@@ -114,7 +114,7 @@ function _defaultHttpRequestFunctionFactory(httpClient) {
114
114
  }
115
115
  exports._defaultHttpRequestFunctionFactory = _defaultHttpRequestFunctionFactory;
116
116
  /**
117
- * Default httpRequestFunction used in dms-package.
117
+ * Default httpRequestFunction used in dms-package. See [Advanced Topics](https://github.com/d-velop/dvelop-sdk-node#advanced-topics) for more information.
118
118
  * @internal
119
119
  * @category Http
120
120
  */
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.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",
@@ -23,7 +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": "^1.0.0"
27
- },
28
- "gitHead": "ed62751c303a2dd65c021d2065c69a2cec6c3653"
29
- }
26
+ "@dvelop-sdk/core": "^1.1.1"
27
+ }
28
+ }
package/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.