@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,133 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ /**
25
+ * TeamAdministrationApi - axios parameter creator
26
+ */
27
+ export const TeamAdministrationApiAxiosParamCreator = function (configuration?: Configuration) {
28
+ return {
29
+ /**
30
+ * 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.
31
+ * @summary Add members to a team
32
+ * @param {string} teamId
33
+ * @param {Array<string>} requestBody
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ adminAddTeamMembers: async (teamId: string, requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38
+ // verify required parameter 'teamId' is not null or undefined
39
+ assertParamExists('adminAddTeamMembers', 'teamId', teamId)
40
+ // verify required parameter 'requestBody' is not null or undefined
41
+ assertParamExists('adminAddTeamMembers', 'requestBody', requestBody)
42
+ const localVarPath = `/api/v1/admin/teams/{teamId}/members`
43
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+
51
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
52
+ const localVarHeaderParameter = {} as any;
53
+ const localVarQueryParameter = {} as any;
54
+
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
58
+
59
+ localVarHeaderParameter['Content-Type'] = 'application/json';
60
+
61
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
64
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
65
+
66
+ return {
67
+ url: toPathString(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ },
71
+ }
72
+ };
73
+
74
+ /**
75
+ * TeamAdministrationApi - functional programming interface
76
+ */
77
+ export const TeamAdministrationApiFp = function(configuration?: Configuration) {
78
+ const localVarAxiosParamCreator = TeamAdministrationApiAxiosParamCreator(configuration)
79
+ return {
80
+ /**
81
+ * 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.
82
+ * @summary Add members to a team
83
+ * @param {string} teamId
84
+ * @param {Array<string>} requestBody
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ async adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
89
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminAddTeamMembers(teamId, requestBody, options);
90
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
91
+ const localVarOperationServerBasePath = operationServerMap['TeamAdministrationApi.adminAddTeamMembers']?.[localVarOperationServerIndex]?.url;
92
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
93
+ },
94
+ }
95
+ };
96
+
97
+ /**
98
+ * TeamAdministrationApi - factory interface
99
+ */
100
+ export const TeamAdministrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
101
+ const localVarFp = TeamAdministrationApiFp(configuration)
102
+ return {
103
+ /**
104
+ * 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.
105
+ * @summary Add members to a team
106
+ * @param {string} teamId
107
+ * @param {Array<string>} requestBody
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
112
+ return localVarFp.adminAddTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
113
+ },
114
+ };
115
+ };
116
+
117
+ /**
118
+ * TeamAdministrationApi - object-oriented interface
119
+ */
120
+ export class TeamAdministrationApi extends BaseAPI {
121
+ /**
122
+ * 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.
123
+ * @summary Add members to a team
124
+ * @param {string} teamId
125
+ * @param {Array<string>} requestBody
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ public adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) {
130
+ return TeamAdministrationApiFp(this.configuration).adminAddTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
131
+ }
132
+ }
133
+
package/api.ts CHANGED
@@ -60,8 +60,10 @@ export * from './api/scanner-proxy-api';
60
60
  export * from './api/search-administration-api';
61
61
  export * from './api/settings-api';
62
62
  export * from './api/sharing-api';
63
+ export * from './api/sharing-policy-api';
63
64
  export * from './api/smart-filing-api';
64
65
  export * from './api/storage-encryption-administration-api';
66
+ export * from './api/team-administration-api';
65
67
  export * from './api/tus-controller-api';
66
68
  export * from './api/upload-token-controller-api';
67
69
  export * from './api/user-privacy-api';