@resolution/confluence-api-client 0.2.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.4.1](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/compare/v0.4.0...v0.4.1) (2024-06-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * remove previous file versions when building ([3ff3a0a](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/commits/3ff3a0a8dde8376aa551fd66d0b4ed1ac040ac79))
12
+
13
+
14
+
15
+
16
+
17
+ # 0.4.0 (2024-06-10)
18
+
19
+
20
+ ### Features
21
+
22
+ * first confluence API version ([d580ceb](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/commits/d580cebbab7334f2290c08a307bea5eed8a372a5))
23
+ * update confluence api client, set v2 explicitly ([7c7cba2](https://bitbucket.org/resolutiongmbh/atlassian-api-clients/commits/7c7cba22f48e3fb25d532717cf77a912fed2d5ee))
24
+
25
+
26
+
27
+
28
+
6
29
  # 0.2.0 (2024-06-07)
7
30
 
8
31
 
package/lib/index.d.ts CHANGED
@@ -7,17 +7,17 @@ export { ApiError };
7
7
  /**
8
8
  * The Confluence REST API V2 Client.
9
9
  */
10
- export declare class ConfluenceApi extends BaseConfluenceApiV2Client {
10
+ export declare class ConfluenceApiV2 extends BaseConfluenceApiV2Client {
11
11
  protected options: ApiClientForgeApiOptions | ApiClientForgeApiExternalOptions | ConfluenceApiClientForgeBridgeOptions | ApiClientAceOptions | ApiClientApOptions;
12
12
  constructor(options: ApiClientForgeApiOptions | ApiClientForgeApiExternalOptions | ConfluenceApiClientForgeBridgeOptions | ApiClientAceOptions | ApiClientApOptions);
13
13
  /**
14
14
  * Switches the API client to the app context.
15
15
  */
16
- asApp: () => ConfluenceApi;
16
+ asApp: () => ConfluenceApiV2;
17
17
  /**
18
18
  * Switches the API client to the user context.
19
19
  */
20
- asUser: (userAccountId: string) => ConfluenceApi;
20
+ asUser: (userAccountId: string) => ConfluenceApiV2;
21
21
  }
22
22
  /**
23
23
  * The Confluence REST API V1 Client.
package/lib/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ConfluenceApiV1 = exports.ConfluenceApi = exports.ApiError = void 0;
17
+ exports.ConfluenceApiV1 = exports.ConfluenceApiV2 = exports.ApiError = void 0;
18
18
  const atlassian_api_common_1 = require("@resolution/atlassian-api-common");
19
19
  Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return atlassian_api_common_1.ApiError; } });
20
20
  const BaseConfluenceApiV1Client_1 = require("./openapi/v1/BaseConfluenceApiV1Client");
@@ -28,7 +28,7 @@ validationSchemaStorage_1.validationSchemaStorage.setErrorClass(atlassian_api_co
28
28
  /**
29
29
  * The Confluence REST API V2 Client.
30
30
  */
31
- class ConfluenceApi extends BaseConfluenceApiV2Client_1.BaseConfluenceApiV2Client {
31
+ class ConfluenceApiV2 extends BaseConfluenceApiV2Client_1.BaseConfluenceApiV2Client {
32
32
  constructor(options) {
33
33
  super((0, atlassian_api_common_1.getApiClientOptions)(options));
34
34
  this.options = options;
@@ -42,7 +42,7 @@ class ConfluenceApi extends BaseConfluenceApiV2Client_1.BaseConfluenceApiV2Clien
42
42
  this.asUser = (0, atlassian_api_common_1.createAsUserMethod)();
43
43
  }
44
44
  }
45
- exports.ConfluenceApi = ConfluenceApi;
45
+ exports.ConfluenceApiV2 = ConfluenceApiV2;
46
46
  /**
47
47
  * The Confluence REST API V1 Client.
48
48
  */
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2EAW0C;AAQjC,yFAdP,+BAAQ,OAcO;AANjB,sFAAmF;AACnF,sFAAmF;AAEnF,yEAAuD;AACvD,yEAAuD;AAIvD,kFAAkH;AAClH,kFAAkH;AAElH,iDAA+B,CAAC,aAAa,CAAC,+BAAQ,CAAC,CAAC;AACxD,iDAA+B,CAAC,aAAa,CAAC,+BAAQ,CAAC,CAAC;AAExD;;GAEG;AACH,MAAa,aAAc,SAAQ,qDAAyB;IAC1D,YACY,OAKY;QAEtB,KAAK,CAAC,IAAA,0CAAmB,EAAC,OAAO,CAAC,CAAC,CAAC;QAP1B,YAAO,GAAP,OAAO,CAKK;QAKxB;;WAEG;QACH,UAAK,GAAG,IAAA,wCAAiB,GAAwB,CAAC;QAClD;;WAEG;QACH,WAAM,GAAG,IAAA,yCAAkB,GAAwB,CAAC;IATpD,CAAC;CAUF;AApBD,sCAoBC;AAED;;GAEG;AACH,MAAa,eAAgB,SAAQ,qDAAyB;IAC5D,YACY,OAKY;QAEtB,KAAK,CAAC,IAAA,0CAAmB,EAAC,OAAO,CAAC,CAAC,CAAC;QAP1B,YAAO,GAAP,OAAO,CAKK;QAIxB;;WAEG;QACH,UAAK,GAAG,IAAA,wCAAiB,GAA0B,CAAC;QACpD;;WAEG;QACH,WAAM,GAAG,IAAA,yCAAkB,GAA0B,CAAC;IARtD,CAAC;CASF;AAnBD,0CAmBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2EAW0C;AAQjC,yFAdP,+BAAQ,OAcO;AANjB,sFAAmF;AACnF,sFAAmF;AAEnF,yEAAuD;AACvD,yEAAuD;AAIvD,kFAAkH;AAClH,kFAAkH;AAElH,iDAA+B,CAAC,aAAa,CAAC,+BAAQ,CAAC,CAAC;AACxD,iDAA+B,CAAC,aAAa,CAAC,+BAAQ,CAAC,CAAC;AAExD;;GAEG;AACH,MAAa,eAAgB,SAAQ,qDAAyB;IAC5D,YACY,OAKY;QAEtB,KAAK,CAAC,IAAA,0CAAmB,EAAC,OAAO,CAAC,CAAC,CAAC;QAP1B,YAAO,GAAP,OAAO,CAKK;QAKxB;;WAEG;QACH,UAAK,GAAG,IAAA,wCAAiB,GAA0B,CAAC;QACpD;;WAEG;QACH,WAAM,GAAG,IAAA,yCAAkB,GAA0B,CAAC;IATtD,CAAC;CAUF;AApBD,0CAoBC;AAED;;GAEG;AACH,MAAa,eAAgB,SAAQ,qDAAyB;IAC5D,YACY,OAKY;QAEtB,KAAK,CAAC,IAAA,0CAAmB,EAAC,OAAO,CAAC,CAAC,CAAC;QAP1B,YAAO,GAAP,OAAO,CAKK;QAIxB;;WAEG;QACH,UAAK,GAAG,IAAA,wCAAiB,GAA0B,CAAC;QACpD;;WAEG;QACH,WAAM,GAAG,IAAA,yCAAkB,GAA0B,CAAC;IARtD,CAAC;CASF;AAnBD,0CAmBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolution/confluence-api-client",
3
- "version": "0.2.0",
3
+ "version": "0.4.1",
4
4
  "description": "Confluence API Client based on OpenAPI Schema from Atlassian.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "LICENSE.md"
12
12
  ],
13
13
  "scripts": {
14
- "build": "yarn run -T tsc -p tsconfig.build.json",
14
+ "build": "rm -Rf lib && yarn run -T tsc -p tsconfig.build.json",
15
15
  "check:compare-schemas": "yarn run -T ts-node config/compareSchemas.ts",
16
16
  "lint": "yarn run -T eslint src config",
17
17
  "openapi:codegen": "yarn run -T api-typescript-generator generate config/apiTypescriptGenerator.config.ts",
@@ -35,10 +35,10 @@
35
35
  },
36
36
  "homepage": "https://bitbucket.org/resolutiongmbh/atlassian-api-clients#readme",
37
37
  "dependencies": {
38
- "@resolution/atlassian-api-common": "^0.3.0"
38
+ "@resolution/atlassian-api-common": "^0.4.1"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "cc8ea333e2d448625607a7150e0718037efb00d1"
43
+ "gitHead": "4b7d1d7e5223f9f2e2d2d3cc141e972b51b1646d"
44
44
  }