@openfilz-sdk/typescript-ee 1.13.3 → 1.14.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.
Files changed (105) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +31 -2
  4. package/api/sharing-policy-api.ts +1471 -0
  5. package/api/team-administration-api.ts +133 -0
  6. package/api.ts +2 -0
  7. package/dist/api/sharing-policy-api.d.ts +662 -0
  8. package/dist/api/sharing-policy-api.js +1399 -0
  9. package/dist/api/team-administration-api.d.ts +70 -0
  10. package/dist/api/team-administration-api.js +139 -0
  11. package/dist/api.d.ts +2 -0
  12. package/dist/api.js +2 -0
  13. package/dist/esm/api/sharing-policy-api.d.ts +662 -0
  14. package/dist/esm/api/sharing-policy-api.js +1392 -0
  15. package/dist/esm/api/team-administration-api.d.ts +70 -0
  16. package/dist/esm/api/team-administration-api.js +132 -0
  17. package/dist/esm/api.d.ts +2 -0
  18. package/dist/esm/api.js +2 -0
  19. package/dist/esm/models/effective-policy.d.ts +31 -0
  20. package/dist/esm/models/effective-policy.js +24 -0
  21. package/dist/esm/models/enriched-audit-log.d.ts +2 -0
  22. package/dist/esm/models/enriched-audit-log.js +2 -0
  23. package/dist/esm/models/global-policy.d.ts +26 -0
  24. package/dist/esm/models/global-policy.js +19 -0
  25. package/dist/esm/models/index.d.ts +9 -0
  26. package/dist/esm/models/index.js +9 -0
  27. package/dist/esm/models/item.d.ts +1 -7
  28. package/dist/esm/models/my-policy.d.ts +30 -0
  29. package/dist/esm/models/my-policy.js +24 -0
  30. package/dist/esm/models/notification-dto.d.ts +1 -0
  31. package/dist/esm/models/notification-dto.js +1 -0
  32. package/dist/esm/models/override-request.d.ts +21 -0
  33. package/dist/esm/models/override-request.js +19 -0
  34. package/dist/esm/models/override-view.d.ts +27 -0
  35. package/dist/esm/models/override-view.js +19 -0
  36. package/dist/esm/models/revoke-request.d.ts +16 -0
  37. package/dist/esm/models/revoke-request.js +14 -0
  38. package/dist/esm/models/revoke-result.d.ts +18 -0
  39. package/dist/esm/models/revoke-result.js +14 -0
  40. package/dist/esm/models/search-by-audit-log-request.d.ts +2 -0
  41. package/dist/esm/models/search-by-audit-log-request.js +2 -0
  42. package/dist/esm/models/share-result-error.d.ts +6 -0
  43. package/dist/esm/models/share-result-error.js +6 -0
  44. package/dist/esm/models/violation.d.ts +41 -0
  45. package/dist/esm/models/violation.js +28 -0
  46. package/dist/esm/models/violations-response.d.ts +17 -0
  47. package/dist/esm/models/violations-response.js +14 -0
  48. package/dist/models/effective-policy.d.ts +31 -0
  49. package/dist/models/effective-policy.js +27 -0
  50. package/dist/models/enriched-audit-log.d.ts +2 -0
  51. package/dist/models/enriched-audit-log.js +2 -0
  52. package/dist/models/global-policy.d.ts +26 -0
  53. package/dist/models/global-policy.js +22 -0
  54. package/dist/models/index.d.ts +9 -0
  55. package/dist/models/index.js +9 -0
  56. package/dist/models/item.d.ts +1 -7
  57. package/dist/models/my-policy.d.ts +30 -0
  58. package/dist/models/my-policy.js +27 -0
  59. package/dist/models/notification-dto.d.ts +1 -0
  60. package/dist/models/notification-dto.js +1 -0
  61. package/dist/models/override-request.d.ts +21 -0
  62. package/dist/models/override-request.js +22 -0
  63. package/dist/models/override-view.d.ts +27 -0
  64. package/dist/models/override-view.js +22 -0
  65. package/dist/models/revoke-request.d.ts +16 -0
  66. package/dist/models/revoke-request.js +15 -0
  67. package/dist/models/revoke-result.d.ts +18 -0
  68. package/dist/models/revoke-result.js +15 -0
  69. package/dist/models/search-by-audit-log-request.d.ts +2 -0
  70. package/dist/models/search-by-audit-log-request.js +2 -0
  71. package/dist/models/share-result-error.d.ts +6 -0
  72. package/dist/models/share-result-error.js +6 -0
  73. package/dist/models/violation.d.ts +41 -0
  74. package/dist/models/violation.js +31 -0
  75. package/dist/models/violations-response.d.ts +17 -0
  76. package/dist/models/violations-response.js +15 -0
  77. package/docs/EffectivePolicy.md +28 -0
  78. package/docs/GlobalPolicy.md +30 -0
  79. package/docs/Item.md +2 -14
  80. package/docs/MyPolicy.md +26 -0
  81. package/docs/OverrideRequest.md +20 -0
  82. package/docs/OverrideView.md +32 -0
  83. package/docs/RevokeRequest.md +22 -0
  84. package/docs/RevokeResult.md +28 -0
  85. package/docs/SharingPolicyApi.md +988 -0
  86. package/docs/TeamAdministrationApi.md +62 -0
  87. package/docs/Violation.md +42 -0
  88. package/docs/ViolationsResponse.md +24 -0
  89. package/graphql/share.graphqls +2 -0
  90. package/models/effective-policy.ts +41 -0
  91. package/models/enriched-audit-log.ts +2 -0
  92. package/models/global-policy.ts +35 -0
  93. package/models/index.ts +9 -0
  94. package/models/item.ts +1 -7
  95. package/models/my-policy.ts +40 -0
  96. package/models/notification-dto.ts +1 -0
  97. package/models/override-request.ts +30 -0
  98. package/models/override-view.ts +36 -0
  99. package/models/revoke-request.ts +24 -0
  100. package/models/revoke-result.ts +24 -0
  101. package/models/search-by-audit-log-request.ts +2 -0
  102. package/models/share-result-error.ts +6 -0
  103. package/models/violation.ts +50 -0
  104. package/models/violations-response.ts +25 -0
  105. package/package.json +1 -1
@@ -0,0 +1,70 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ /**
16
+ * TeamAdministrationApi - axios parameter creator
17
+ */
18
+ export declare const TeamAdministrationApiAxiosParamCreator: (configuration?: Configuration) => {
19
+ /**
20
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
21
+ * @summary Add members to a team
22
+ * @param {string} teamId
23
+ * @param {Array<string>} requestBody
24
+ * @param {*} [options] Override http request option.
25
+ * @throws {RequiredError}
26
+ */
27
+ adminAddTeamMembers: (teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28
+ };
29
+ /**
30
+ * TeamAdministrationApi - functional programming interface
31
+ */
32
+ export declare const TeamAdministrationApiFp: (configuration?: Configuration) => {
33
+ /**
34
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
35
+ * @summary Add members to a team
36
+ * @param {string} teamId
37
+ * @param {Array<string>} requestBody
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
42
+ };
43
+ /**
44
+ * TeamAdministrationApi - factory interface
45
+ */
46
+ export declare const TeamAdministrationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
47
+ /**
48
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
49
+ * @summary Add members to a team
50
+ * @param {string} teamId
51
+ * @param {Array<string>} requestBody
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void>;
56
+ };
57
+ /**
58
+ * TeamAdministrationApi - object-oriented interface
59
+ */
60
+ export declare class TeamAdministrationApi extends BaseAPI {
61
+ /**
62
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
63
+ * @summary Add members to a team
64
+ * @param {string} teamId
65
+ * @param {Array<string>} requestBody
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ */
69
+ adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
70
+ }
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.TeamAdministrationApi = exports.TeamAdministrationApiFactory = exports.TeamAdministrationApiFp = exports.TeamAdministrationApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * TeamAdministrationApi - axios parameter creator
34
+ */
35
+ const TeamAdministrationApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
39
+ * @summary Add members to a team
40
+ * @param {string} teamId
41
+ * @param {Array<string>} requestBody
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ adminAddTeamMembers: (teamId_1, requestBody_1, ...args_1) => __awaiter(this, [teamId_1, requestBody_1, ...args_1], void 0, function* (teamId, requestBody, options = {}) {
46
+ // verify required parameter 'teamId' is not null or undefined
47
+ (0, common_1.assertParamExists)('adminAddTeamMembers', 'teamId', teamId);
48
+ // verify required parameter 'requestBody' is not null or undefined
49
+ (0, common_1.assertParamExists)('adminAddTeamMembers', 'requestBody', requestBody);
50
+ const localVarPath = `/api/v1/admin/teams/{teamId}/members`
51
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
52
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
54
+ let baseOptions;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ }
58
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
59
+ const localVarHeaderParameter = {};
60
+ const localVarQueryParameter = {};
61
+ // authentication keycloak_auth required
62
+ // http bearer authentication required
63
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
64
+ localVarHeaderParameter['Content-Type'] = 'application/json';
65
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
66
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
68
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
69
+ return {
70
+ url: (0, common_1.toPathString)(localVarUrlObj),
71
+ options: localVarRequestOptions,
72
+ };
73
+ }),
74
+ };
75
+ };
76
+ exports.TeamAdministrationApiAxiosParamCreator = TeamAdministrationApiAxiosParamCreator;
77
+ /**
78
+ * TeamAdministrationApi - functional programming interface
79
+ */
80
+ const TeamAdministrationApiFp = function (configuration) {
81
+ const localVarAxiosParamCreator = (0, exports.TeamAdministrationApiAxiosParamCreator)(configuration);
82
+ return {
83
+ /**
84
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
85
+ * @summary Add members to a team
86
+ * @param {string} teamId
87
+ * @param {Array<string>} requestBody
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ adminAddTeamMembers(teamId, requestBody, options) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ var _a, _b, _c;
94
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAddTeamMembers(teamId, requestBody, options);
95
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
96
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TeamAdministrationApi.adminAddTeamMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
97
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
98
+ });
99
+ },
100
+ };
101
+ };
102
+ exports.TeamAdministrationApiFp = TeamAdministrationApiFp;
103
+ /**
104
+ * TeamAdministrationApi - factory interface
105
+ */
106
+ const TeamAdministrationApiFactory = function (configuration, basePath, axios) {
107
+ const localVarFp = (0, exports.TeamAdministrationApiFp)(configuration);
108
+ return {
109
+ /**
110
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
111
+ * @summary Add members to a team
112
+ * @param {string} teamId
113
+ * @param {Array<string>} requestBody
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ adminAddTeamMembers(teamId, requestBody, options) {
118
+ return localVarFp.adminAddTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
119
+ },
120
+ };
121
+ };
122
+ exports.TeamAdministrationApiFactory = TeamAdministrationApiFactory;
123
+ /**
124
+ * TeamAdministrationApi - object-oriented interface
125
+ */
126
+ class TeamAdministrationApi extends base_1.BaseAPI {
127
+ /**
128
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
129
+ * @summary Add members to a team
130
+ * @param {string} teamId
131
+ * @param {Array<string>} requestBody
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ adminAddTeamMembers(teamId, requestBody, options) {
136
+ return (0, exports.TeamAdministrationApiFp)(this.configuration).adminAddTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
137
+ }
138
+ }
139
+ exports.TeamAdministrationApi = TeamAdministrationApi;
package/dist/api.d.ts CHANGED
@@ -55,8 +55,10 @@ export * from './api/scanner-proxy-api';
55
55
  export * from './api/search-administration-api';
56
56
  export * from './api/settings-api';
57
57
  export * from './api/sharing-api';
58
+ export * from './api/sharing-policy-api';
58
59
  export * from './api/smart-filing-api';
59
60
  export * from './api/storage-encryption-administration-api';
61
+ export * from './api/team-administration-api';
60
62
  export * from './api/tus-controller-api';
61
63
  export * from './api/upload-token-controller-api';
62
64
  export * from './api/user-privacy-api';
package/dist/api.js CHANGED
@@ -73,8 +73,10 @@ __exportStar(require("./api/scanner-proxy-api"), exports);
73
73
  __exportStar(require("./api/search-administration-api"), exports);
74
74
  __exportStar(require("./api/settings-api"), exports);
75
75
  __exportStar(require("./api/sharing-api"), exports);
76
+ __exportStar(require("./api/sharing-policy-api"), exports);
76
77
  __exportStar(require("./api/smart-filing-api"), exports);
77
78
  __exportStar(require("./api/storage-encryption-administration-api"), exports);
79
+ __exportStar(require("./api/team-administration-api"), exports);
78
80
  __exportStar(require("./api/tus-controller-api"), exports);
79
81
  __exportStar(require("./api/upload-token-controller-api"), exports);
80
82
  __exportStar(require("./api/user-privacy-api"), exports);