@alfresco/js-api 7.6.0-7962495921 → 7.6.0-7963393573

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.
@@ -15,6 +15,9 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  export class ApiClient {
18
+ get apiClient() {
19
+ return this.httpClient;
20
+ }
18
21
  constructor(httpClient) {
19
22
  if ((httpClient === null || httpClient === void 0 ? void 0 : httpClient.__type) === 'legacy-client') {
20
23
  this.alfrescoApi = httpClient;
@@ -23,9 +26,6 @@ export class ApiClient {
23
26
  this.httpClient = httpClient;
24
27
  }
25
28
  }
26
- get apiClient() {
27
- return this.httpClient;
28
- }
29
29
  post(options) {
30
30
  return this.apiClient.post(options);
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.js","sourceRoot":"","sources":["api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,MAAM,OAAgB,SAAS;IAU3B,YAAY,UAA+C;QACvD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,MAAK,eAAe,EAAE;YAExC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;SACjC;aAAM;YACH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAChC;IACL,CAAC;IAbD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAaD,IAAI,CAAU,OAAuB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAI,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAW,OAAuB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,YAAY,CAAC,KAAa,EAAE,UAAkB;QAC1C,OAAO,iBAAiB,KAAK,OAAO,UAAU,EAAE,CAAC;IACrD,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AlfrescoApiType } from '../to-deprecate/alfresco-api-type';\nimport { LegacyHttpClient, RequestOptions } from './http-client.interface';\n\nexport abstract class ApiClient {\n protected alfrescoApi: AlfrescoApiType;\n protected httpClient: LegacyHttpClient;\n\n get apiClient(): LegacyHttpClient {\n return this.httpClient;\n }\n\n constructor(legacyApi?: AlfrescoApiType);\n constructor(httpClient: LegacyHttpClient);\n constructor(httpClient?: AlfrescoApiType & LegacyHttpClient) {\n if (httpClient?.__type === 'legacy-client') {\n // TODO: remove legacyApi?: AlfrescoApi option and clean up this code. BREAKING CHANGE!\n this.alfrescoApi = httpClient;\n } else {\n this.httpClient = httpClient;\n }\n }\n\n post<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.post<T>(options);\n }\n\n put<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.put<T>(options);\n }\n\n get<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.get<T>(options);\n }\n\n delete<T = void>(options: RequestOptions): Promise<T> {\n return this.apiClient.delete(options);\n }\n\n errorMessage(param: string, methodName: string) {\n return `Missing param ${param} in ${methodName}`;\n }\n}\n"]}
1
+ {"version":3,"file":"api-client.js","sourceRoot":"","sources":["api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,MAAM,OAAgB,SAAS;IAI3B,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAID,YAAY,UAA+C;QACvD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,MAAK,eAAe,EAAE;YAExC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;SACjC;aAAM;YACH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAChC;IACL,CAAC;IAED,IAAI,CAAU,OAAuB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAI,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAW,OAAuB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,YAAY,CAAC,KAAa,EAAE,UAAkB;QAC1C,OAAO,iBAAiB,KAAK,OAAO,UAAU,EAAE,CAAC;IACrD,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AlfrescoApiType } from '../to-deprecate/alfresco-api-type';\nimport { LegacyHttpClient, RequestOptions } from './http-client.interface';\n\nexport abstract class ApiClient {\n protected alfrescoApi: AlfrescoApiType;\n protected httpClient: LegacyHttpClient;\n\n get apiClient(): LegacyHttpClient {\n return this.httpClient;\n }\n\n constructor(legacyApi?: AlfrescoApiType);\n constructor(httpClient: LegacyHttpClient);\n constructor(httpClient?: AlfrescoApiType & LegacyHttpClient) {\n if (httpClient?.__type === 'legacy-client') {\n // TODO: remove legacyApi?: AlfrescoApi option and clean up this code. BREAKING CHANGE!\n this.alfrescoApi = httpClient;\n } else {\n this.httpClient = httpClient;\n }\n }\n\n post<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.post<T>(options);\n }\n\n put<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.put<T>(options);\n }\n\n get<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.get<T>(options);\n }\n\n delete<T = void>(options: RequestOptions): Promise<T> {\n return this.apiClient.delete(options);\n }\n\n errorMessage(param: string, methodName: string) {\n return `Missing param ${param} in ${methodName}`;\n }\n}\n"]}
@@ -15,6 +15,9 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  export class ApiClient {
18
+ get apiClient() {
19
+ return this.httpClient;
20
+ }
18
21
  constructor(httpClient) {
19
22
  if ((httpClient === null || httpClient === void 0 ? void 0 : httpClient.__type) === 'legacy-client') {
20
23
  this.alfrescoApi = httpClient;
@@ -23,9 +26,6 @@ export class ApiClient {
23
26
  this.httpClient = httpClient;
24
27
  }
25
28
  }
26
- get apiClient() {
27
- return this.httpClient;
28
- }
29
29
  post(options) {
30
30
  return this.apiClient.post(options);
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.js","sourceRoot":"","sources":["api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,MAAM,OAAgB,SAAS;IAU3B,YAAY,UAA+C;QACvD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,MAAK,eAAe,EAAE;YAExC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;SACjC;aAAM;YACH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAChC;IACL,CAAC;IAbD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAaD,IAAI,CAAU,OAAuB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAI,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAW,OAAuB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,YAAY,CAAC,KAAa,EAAE,UAAkB;QAC1C,OAAO,iBAAiB,KAAK,OAAO,UAAU,EAAE,CAAC;IACrD,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AlfrescoApiType } from '../to-deprecate/alfresco-api-type';\nimport { LegacyHttpClient, RequestOptions } from './http-client.interface';\n\nexport abstract class ApiClient {\n protected alfrescoApi: AlfrescoApiType;\n protected httpClient: LegacyHttpClient;\n\n get apiClient(): LegacyHttpClient {\n return this.httpClient;\n }\n\n constructor(legacyApi?: AlfrescoApiType);\n constructor(httpClient: LegacyHttpClient);\n constructor(httpClient?: AlfrescoApiType & LegacyHttpClient) {\n if (httpClient?.__type === 'legacy-client') {\n // TODO: remove legacyApi?: AlfrescoApi option and clean up this code. BREAKING CHANGE!\n this.alfrescoApi = httpClient;\n } else {\n this.httpClient = httpClient;\n }\n }\n\n post<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.post<T>(options);\n }\n\n put<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.put<T>(options);\n }\n\n get<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.get<T>(options);\n }\n\n delete<T = void>(options: RequestOptions): Promise<T> {\n return this.apiClient.delete(options);\n }\n\n errorMessage(param: string, methodName: string) {\n return `Missing param ${param} in ${methodName}`;\n }\n}\n"]}
1
+ {"version":3,"file":"api-client.js","sourceRoot":"","sources":["api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,MAAM,OAAgB,SAAS;IAI3B,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAID,YAAY,UAA+C;QACvD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,MAAK,eAAe,EAAE;YAExC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;SACjC;aAAM;YACH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAChC;IACL,CAAC;IAED,IAAI,CAAU,OAAuB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAI,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAW,OAAuB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,YAAY,CAAC,KAAa,EAAE,UAAkB;QAC1C,OAAO,iBAAiB,KAAK,OAAO,UAAU,EAAE,CAAC;IACrD,CAAC;CACJ","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AlfrescoApiType } from '../to-deprecate/alfresco-api-type';\nimport { LegacyHttpClient, RequestOptions } from './http-client.interface';\n\nexport abstract class ApiClient {\n protected alfrescoApi: AlfrescoApiType;\n protected httpClient: LegacyHttpClient;\n\n get apiClient(): LegacyHttpClient {\n return this.httpClient;\n }\n\n constructor(legacyApi?: AlfrescoApiType);\n constructor(httpClient: LegacyHttpClient);\n constructor(httpClient?: AlfrescoApiType & LegacyHttpClient) {\n if (httpClient?.__type === 'legacy-client') {\n // TODO: remove legacyApi?: AlfrescoApi option and clean up this code. BREAKING CHANGE!\n this.alfrescoApi = httpClient;\n } else {\n this.httpClient = httpClient;\n }\n }\n\n post<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.post<T>(options);\n }\n\n put<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.put<T>(options);\n }\n\n get<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.get<T>(options);\n }\n\n delete<T = void>(options: RequestOptions): Promise<T> {\n return this.apiClient.delete(options);\n }\n\n errorMessage(param: string, methodName: string) {\n return `Missing param ${param} in ${methodName}`;\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfresco/js-api",
3
- "version": "7.6.0-7962495921",
3
+ "version": "7.6.0-7963393573",
4
4
  "license": "Apache-2.0",
5
5
  "description": "JavaScript client library for the Alfresco REST API",
6
6
  "author": "Hyland Software, Inc. and its affiliates",
@@ -18,6 +18,9 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.ApiClient = void 0;
20
20
  class ApiClient {
21
+ get apiClient() {
22
+ return this.httpClient;
23
+ }
21
24
  constructor(httpClient) {
22
25
  if ((httpClient === null || httpClient === void 0 ? void 0 : httpClient.__type) === 'legacy-client') {
23
26
  this.alfrescoApi = httpClient;
@@ -26,9 +29,6 @@ class ApiClient {
26
29
  this.httpClient = httpClient;
27
30
  }
28
31
  }
29
- get apiClient() {
30
- return this.httpClient;
31
- }
32
32
  post(options) {
33
33
  return this.apiClient.post(options);
34
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.js","sourceRoot":"","sources":["api-client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,MAAsB,SAAS;IAU3B,YAAY,UAA+C;QACvD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,MAAK,eAAe,EAAE;YAExC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;SACjC;aAAM;YACH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAChC;IACL,CAAC;IAbD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAaD,IAAI,CAAU,OAAuB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAI,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAW,OAAuB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,YAAY,CAAC,KAAa,EAAE,UAAkB;QAC1C,OAAO,iBAAiB,KAAK,OAAO,UAAU,EAAE,CAAC;IACrD,CAAC;CACJ;AAtCD,8BAsCC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AlfrescoApiType } from '../to-deprecate/alfresco-api-type';\nimport { LegacyHttpClient, RequestOptions } from './http-client.interface';\n\nexport abstract class ApiClient {\n protected alfrescoApi: AlfrescoApiType;\n protected httpClient: LegacyHttpClient;\n\n get apiClient(): LegacyHttpClient {\n return this.httpClient;\n }\n\n constructor(legacyApi?: AlfrescoApiType);\n constructor(httpClient: LegacyHttpClient);\n constructor(httpClient?: AlfrescoApiType & LegacyHttpClient) {\n if (httpClient?.__type === 'legacy-client') {\n // TODO: remove legacyApi?: AlfrescoApi option and clean up this code. BREAKING CHANGE!\n this.alfrescoApi = httpClient;\n } else {\n this.httpClient = httpClient;\n }\n }\n\n post<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.post<T>(options);\n }\n\n put<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.put<T>(options);\n }\n\n get<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.get<T>(options);\n }\n\n delete<T = void>(options: RequestOptions): Promise<T> {\n return this.apiClient.delete(options);\n }\n\n errorMessage(param: string, methodName: string) {\n return `Missing param ${param} in ${methodName}`;\n }\n}\n"]}
1
+ {"version":3,"file":"api-client.js","sourceRoot":"","sources":["api-client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,MAAsB,SAAS;IAI3B,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAID,YAAY,UAA+C;QACvD,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,MAAK,eAAe,EAAE;YAExC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;SACjC;aAAM;YACH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAChC;IACL,CAAC;IAED,IAAI,CAAU,OAAuB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAI,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,GAAG,CAAU,OAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAI,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAW,OAAuB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,YAAY,CAAC,KAAa,EAAE,UAAkB;QAC1C,OAAO,iBAAiB,KAAK,OAAO,UAAU,EAAE,CAAC;IACrD,CAAC;CACJ;AAtCD,8BAsCC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AlfrescoApiType } from '../to-deprecate/alfresco-api-type';\nimport { LegacyHttpClient, RequestOptions } from './http-client.interface';\n\nexport abstract class ApiClient {\n protected alfrescoApi: AlfrescoApiType;\n protected httpClient: LegacyHttpClient;\n\n get apiClient(): LegacyHttpClient {\n return this.httpClient;\n }\n\n constructor(legacyApi?: AlfrescoApiType);\n constructor(httpClient: LegacyHttpClient);\n constructor(httpClient?: AlfrescoApiType & LegacyHttpClient) {\n if (httpClient?.__type === 'legacy-client') {\n // TODO: remove legacyApi?: AlfrescoApi option and clean up this code. BREAKING CHANGE!\n this.alfrescoApi = httpClient;\n } else {\n this.httpClient = httpClient;\n }\n }\n\n post<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.post<T>(options);\n }\n\n put<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.put<T>(options);\n }\n\n get<T = any>(options: RequestOptions): Promise<T> {\n return this.apiClient.get<T>(options);\n }\n\n delete<T = void>(options: RequestOptions): Promise<T> {\n return this.apiClient.delete(options);\n }\n\n errorMessage(param: string, methodName: string) {\n return `Missing param ${param} in ${methodName}`;\n }\n}\n"]}
@@ -19,7 +19,7 @@ import { AlfrescoApiConfig } from './alfrescoApiConfig';
19
19
  import { Authentication } from './authentication/authentication';
20
20
  import { HttpClient, LegacyHttpClient, RequestOptions } from './api-clients/http-client.interface';
21
21
  import { Storage } from './storage';
22
- export declare type AlfrescoApiClientPromise<T = any> = Promise<T> & {
22
+ export type AlfrescoApiClientPromise<T = any> = Promise<T> & {
23
23
  on: ee.EmitterMethod;
24
24
  off: ee.EmitterMethod;
25
25
  once: ee.EmitterMethod;
@@ -14,9 +14,9 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare type ScopeQuery = {
17
+ export type ScopeQuery = {
18
18
  scope?: string;
19
19
  };
20
- export declare type AppIdQuery = {
20
+ export type AppIdQuery = {
21
21
  appId?: number;
22
22
  };
@@ -19,7 +19,7 @@ import { ResultListDataRepresentationLightUserRepresentation } from '../model/re
19
19
  import { UserActionRepresentation } from '../model/userActionRepresentation';
20
20
  import { UserRepresentation } from '../model/userRepresentation';
21
21
  import { BaseApi } from './base.api';
22
- export declare type GetUsersQuery = {
22
+ export type GetUsersQuery = {
23
23
  filter?: string;
24
24
  email?: string;
25
25
  externalId?: string;
@@ -17,7 +17,7 @@
17
17
  import { BaseApi } from './base.api';
18
18
  import { CategoryBody, CategoryEntry, CategoryLinkBody, CategoryPaging } from '../model';
19
19
  import { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';
20
- export declare type CategoryQuery = ContentFieldsQuery & ContentIncludeQuery;
20
+ export type CategoryQuery = ContentFieldsQuery & ContentIncludeQuery;
21
21
  /**
22
22
  * Categories service.
23
23
  */
@@ -46,7 +46,7 @@ export interface GroupPagingOpts {
46
46
  */
47
47
  where?: string;
48
48
  }
49
- export declare type DeleteGroupOpts = {
49
+ export type DeleteGroupOpts = {
50
50
  cascade?: boolean;
51
51
  };
52
52
  /**
@@ -17,7 +17,7 @@
17
17
  import { AssociationBody, AssociationEntry, ChildAssociationBody, ChildAssociationEntry, DirectAccessUrlEntry, NodeAssociationPaging, NodeBodyCopy, NodeBodyCreate, NodeBodyLock, NodeBodyMove, NodeBodyUpdate, NodeChildAssociationPaging, NodeEntry } from '../model';
18
18
  import { BaseApi } from './base.api';
19
19
  import { ContentPagingQuery } from './types';
20
- export declare type NodesIncludeQuery = {
20
+ export type NodesIncludeQuery = {
21
21
  /**
22
22
  * Returns additional information about the node. The following optional fields can be requested:
23
23
  * - allowableOperations
@@ -19,7 +19,7 @@ import { PersonPaging } from '../model/personPaging';
19
19
  import { SitePaging } from '../model/sitePaging';
20
20
  import { BaseApi } from './base.api';
21
21
  import { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';
22
- export declare type FindQuery = {
22
+ export type FindQuery = {
23
23
  /**
24
24
  * The term to search for.
25
25
  */
@@ -35,7 +35,7 @@ export declare type FindQuery = {
35
35
  */
36
36
  orderBy?: string[];
37
37
  } & ContentPagingQuery & ContentFieldsQuery;
38
- export declare type FindNodesQuery = {
38
+ export type FindNodesQuery = {
39
39
  /**
40
40
  * The id of the node to start the search from.
41
41
  * Supports the aliases **-my-**, **-root-** and **-shared-**.
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare type ContentPagingQuery = {
17
+ export type ContentPagingQuery = {
18
18
  /**
19
19
  * The number of entities that exist in the collection before those included in this list.
20
20
  */
@@ -24,13 +24,13 @@ export declare type ContentPagingQuery = {
24
24
  */
25
25
  maxItems?: number;
26
26
  };
27
- export declare type ContentIncludeQuery = {
27
+ export type ContentIncludeQuery = {
28
28
  /**
29
29
  * Returns additional information about the record. Any optional field from the response model can be requested.
30
30
  */
31
31
  include?: string[];
32
32
  };
33
- export declare type ContentFieldsQuery = {
33
+ export type ContentFieldsQuery = {
34
34
  /**
35
35
  * A list of field names.
36
36
  *
@@ -14,14 +14,14 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare type GsGroupInclude = {
17
+ export type GsGroupInclude = {
18
18
  /**
19
19
  * Returns additional information about the security group. The following optional fields can be requested:
20
20
  * - inUse - A flag indicating whether the security group is in use or not.
21
21
  */
22
22
  include?: string;
23
23
  };
24
- export declare type GsPagingQuery = {
24
+ export type GsPagingQuery = {
25
25
  /**
26
26
  * The number of entities that exist in the collection before those included in this list.
27
27
  */
@@ -31,7 +31,7 @@ export declare type GsPagingQuery = {
31
31
  */
32
32
  maxItems?: number;
33
33
  };
34
- export declare type GsFieldsQuery = {
34
+ export type GsFieldsQuery = {
35
35
  /**
36
36
  * A list of field names.
37
37
  *
@@ -47,7 +47,7 @@ export declare type GsFieldsQuery = {
47
47
  */
48
48
  fields?: string[];
49
49
  };
50
- export declare type GsIncludeQuery = {
50
+ export type GsIncludeQuery = {
51
51
  /**
52
52
  * Returns additional information about the record. Any optional field from the response model can be requested.
53
53
  */
@@ -15,4 +15,4 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { DateAlfresco } from '../../content-custom-api';
18
- export declare type DeclassificationDate = DateAlfresco;
18
+ export type DeclassificationDate = DateAlfresco;
@@ -14,7 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare type RecordsPagingQuery = {
17
+ export type RecordsPagingQuery = {
18
18
  /**
19
19
  * The number of entities that exist in the collection before those included in this list.
20
20
  */
@@ -24,13 +24,13 @@ export declare type RecordsPagingQuery = {
24
24
  */
25
25
  maxItems?: number;
26
26
  };
27
- export declare type RecordsIncludeQuery = {
27
+ export type RecordsIncludeQuery = {
28
28
  /**
29
29
  * Returns additional information about the record. Any optional field from the response model can be requested.
30
30
  */
31
31
  include?: string[];
32
32
  } & RecordsFieldsQuery;
33
- export declare type RecordsFieldsQuery = {
33
+ export type RecordsFieldsQuery = {
34
34
  /**
35
35
  * A list of field names.
36
36
  *
@@ -46,7 +46,7 @@ export declare type RecordsFieldsQuery = {
46
46
  */
47
47
  fields?: string[];
48
48
  };
49
- export declare type RecordsSourceQuery = {
49
+ export type RecordsSourceQuery = {
50
50
  /**
51
51
  * Also include **source** (in addition to **entries**)
52
52
  */