tuix-repo-sync-service-client 0.0.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.
@@ -0,0 +1,9 @@
1
+ .openapi-generator-ignore
2
+ apis/ClientApi.ts
3
+ apis/index.ts
4
+ docs/ClientApi.md
5
+ docs/ErrorDTO.md
6
+ index.ts
7
+ models/ErrorDTO.ts
8
+ models/index.ts
9
+ runtime.ts
@@ -0,0 +1 @@
1
+ 7.17.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # Tuix tuix-repo-sync-service
2
+
3
+ ## Description
4
+
5
+ Api Client for project tuix-repo-sync-service
6
+
7
+ ## Installation
8
+
9
+ ```
10
+ npm i tuix-repo-sync-service-client
11
+ ```
12
+ If you need to use the staging api client, then use the command
13
+ ```
14
+ npm i tuix-repo-sync-service-client@staging
15
+ ```
16
+ Check the available versions in the following link: https://www.npmjs.com/package/tuix-tuix-repo-sync-service-client?activeTab=versions
17
+
18
+ ## Developing the app
19
+
20
+ Tested on
21
+ ```
22
+ node 18
23
+ npm 9.6.7
24
+ ```
25
+ Make an example request :
26
+ ```javascript
27
+ import { Configuration, ResponseError, Client } from 'tuix-repo-sync-service-client';
28
+
29
+ const configuration = new Configuration({
30
+ basePath: "https://staging-tuix-repo-sync-service.tuix.ch",
31
+ apiKey: "Bearer <JWT>"
32
+ });
33
+
34
+ const APIClient = new Client(configuration);
35
+
36
+ (async () => {
37
+ try {
38
+ const companies = await APIClient.companiesGet()
39
+ console.log({ companies });
40
+ } catch (error) {
41
+ if(error instanceof ResponseError){
42
+ console.log(error.response.status, error.response.statusText);
43
+ const data = await error.response.json()
44
+ console.log(data);
45
+ }
46
+ }
47
+ })()
48
+ ```
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tuix Repo Sync Service
6
+ * service to sync Tuix repos
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.ClientApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ /**
52
+ *
53
+ */
54
+ class ClientApi extends runtime.BaseAPI {
55
+ /**
56
+ * sync PRs
57
+ * Sync PRs
58
+ */
59
+ async syncPRsRaw(initOverrides) {
60
+ const queryParameters = {};
61
+ const headerParameters = {};
62
+ let urlPath = `/syncs/prs`;
63
+ const response = await this.request({
64
+ path: urlPath,
65
+ method: 'GET',
66
+ headers: headerParameters,
67
+ query: queryParameters,
68
+ }, initOverrides);
69
+ return new runtime.VoidApiResponse(response);
70
+ }
71
+ /**
72
+ * sync PRs
73
+ * Sync PRs
74
+ */
75
+ async syncPRs(initOverrides) {
76
+ await this.syncPRsRaw(initOverrides);
77
+ }
78
+ /**
79
+ * sync all client repos
80
+ * sync all client repos
81
+ */
82
+ async syncReposRaw(initOverrides) {
83
+ const queryParameters = {};
84
+ const headerParameters = {};
85
+ let urlPath = `/syncs/repos`;
86
+ const response = await this.request({
87
+ path: urlPath,
88
+ method: 'GET',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ }, initOverrides);
92
+ return new runtime.VoidApiResponse(response);
93
+ }
94
+ /**
95
+ * sync all client repos
96
+ * sync all client repos
97
+ */
98
+ async syncRepos(initOverrides) {
99
+ await this.syncReposRaw(initOverrides);
100
+ }
101
+ }
102
+ exports.ClientApi = ClientApi;
103
+ //# sourceMappingURL=ClientApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientApi.js","sourceRoot":"","sources":["ClientApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,oDAAsC;AAStC;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAC,aAA0D;QACvE,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAGjD,IAAI,OAAO,GAAG,YAAY,CAAC;QAE3B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,aAA0D;QACpE,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACzC,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,aAA0D;QACzE,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAGjD,IAAI,OAAO,GAAG,cAAc,CAAC;QAE7B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,aAA0D;QACtE,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;IAC3C,CAAC;CAEJ;AA9DD,8BA8DC"}
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tuix Repo Sync Service
5
+ * service to sync Tuix repos
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
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 * as runtime from '../runtime';
17
+ import type {
18
+ ErrorDTO,
19
+ } from '../models/index';
20
+ import {
21
+ ErrorDTOFromJSON,
22
+ ErrorDTOToJSON,
23
+ } from '../models/index';
24
+
25
+ /**
26
+ *
27
+ */
28
+ export class ClientApi extends runtime.BaseAPI {
29
+
30
+ /**
31
+ * sync PRs
32
+ * Sync PRs
33
+ */
34
+ async syncPRsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
35
+ const queryParameters: any = {};
36
+
37
+ const headerParameters: runtime.HTTPHeaders = {};
38
+
39
+
40
+ let urlPath = `/syncs/prs`;
41
+
42
+ const response = await this.request({
43
+ path: urlPath,
44
+ method: 'GET',
45
+ headers: headerParameters,
46
+ query: queryParameters,
47
+ }, initOverrides);
48
+
49
+ return new runtime.VoidApiResponse(response);
50
+ }
51
+
52
+ /**
53
+ * sync PRs
54
+ * Sync PRs
55
+ */
56
+ async syncPRs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
57
+ await this.syncPRsRaw(initOverrides);
58
+ }
59
+
60
+ /**
61
+ * sync all client repos
62
+ * sync all client repos
63
+ */
64
+ async syncReposRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
65
+ const queryParameters: any = {};
66
+
67
+ const headerParameters: runtime.HTTPHeaders = {};
68
+
69
+
70
+ let urlPath = `/syncs/repos`;
71
+
72
+ const response = await this.request({
73
+ path: urlPath,
74
+ method: 'GET',
75
+ headers: headerParameters,
76
+ query: queryParameters,
77
+ }, initOverrides);
78
+
79
+ return new runtime.VoidApiResponse(response);
80
+ }
81
+
82
+ /**
83
+ * sync all client repos
84
+ * sync all client repos
85
+ */
86
+ async syncRepos(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
87
+ await this.syncReposRaw(initOverrides);
88
+ }
89
+
90
+ }
package/apis/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./ClientApi"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,8CAA4B"}
package/apis/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ClientApi';
@@ -0,0 +1,130 @@
1
+ # ClientApi
2
+
3
+ All URIs are relative to *http://0.0.0.0:3000/local*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**syncPRs**](ClientApi.md#syncprs) | **GET** /syncs/prs | Sync PRs |
8
+ | [**syncRepos**](ClientApi.md#syncrepos) | **GET** /syncs/repos | sync all client repos |
9
+
10
+
11
+
12
+ ## syncPRs
13
+
14
+ > syncPRs()
15
+
16
+ Sync PRs
17
+
18
+ sync PRs
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ ClientApi,
26
+ } from '';
27
+ import type { SyncPRsRequest } from '';
28
+
29
+ async function example() {
30
+ console.log("🚀 Testing SDK...");
31
+ const api = new ClientApi();
32
+
33
+ try {
34
+ const data = await api.syncPRs();
35
+ console.log(data);
36
+ } catch (error) {
37
+ console.error(error);
38
+ }
39
+ }
40
+
41
+ // Run the test
42
+ example().catch(console.error);
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ This endpoint does not need any parameter.
48
+
49
+ ### Return type
50
+
51
+ `void` (Empty response body)
52
+
53
+ ### Authorization
54
+
55
+ No authorization required
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: Not defined
60
+ - **Accept**: `application/json`
61
+
62
+
63
+ ### HTTP response details
64
+ | Status code | Description | Response headers |
65
+ |-------------|-------------|------------------|
66
+ | **204** | No Content | - |
67
+ | **500** | Return an error if the server founds an error | - |
68
+
69
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
70
+
71
+
72
+ ## syncRepos
73
+
74
+ > syncRepos()
75
+
76
+ sync all client repos
77
+
78
+ sync all client repos
79
+
80
+ ### Example
81
+
82
+ ```ts
83
+ import {
84
+ Configuration,
85
+ ClientApi,
86
+ } from '';
87
+ import type { SyncReposRequest } from '';
88
+
89
+ async function example() {
90
+ console.log("🚀 Testing SDK...");
91
+ const api = new ClientApi();
92
+
93
+ try {
94
+ const data = await api.syncRepos();
95
+ console.log(data);
96
+ } catch (error) {
97
+ console.error(error);
98
+ }
99
+ }
100
+
101
+ // Run the test
102
+ example().catch(console.error);
103
+ ```
104
+
105
+ ### Parameters
106
+
107
+ This endpoint does not need any parameter.
108
+
109
+ ### Return type
110
+
111
+ `void` (Empty response body)
112
+
113
+ ### Authorization
114
+
115
+ No authorization required
116
+
117
+ ### HTTP request headers
118
+
119
+ - **Content-Type**: Not defined
120
+ - **Accept**: `application/json`
121
+
122
+
123
+ ### HTTP response details
124
+ | Status code | Description | Response headers |
125
+ |-------------|-------------|------------------|
126
+ | **204** | No Content | - |
127
+ | **500** | Return an error if the server founds an error | - |
128
+
129
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
130
+
@@ -0,0 +1,34 @@
1
+
2
+ # ErrorDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `message` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ErrorDTO } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "message": null,
19
+ } satisfies ErrorDTO
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as ErrorDTO
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
package/index.js ADDED
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./runtime"), exports);
20
+ __exportStar(require("./apis/index"), exports);
21
+ __exportStar(require("./models/index"), exports);
22
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,4CAA0B;AAC1B,+CAA6B;AAC7B,iDAA+B"}
package/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tuix Repo Sync Service
6
+ * service to sync Tuix repos
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfErrorDTO = instanceOfErrorDTO;
17
+ exports.ErrorDTOFromJSON = ErrorDTOFromJSON;
18
+ exports.ErrorDTOFromJSONTyped = ErrorDTOFromJSONTyped;
19
+ exports.ErrorDTOToJSON = ErrorDTOToJSON;
20
+ exports.ErrorDTOToJSONTyped = ErrorDTOToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ErrorDTO interface.
23
+ */
24
+ function instanceOfErrorDTO(value) {
25
+ return true;
26
+ }
27
+ function ErrorDTOFromJSON(json) {
28
+ return ErrorDTOFromJSONTyped(json, false);
29
+ }
30
+ function ErrorDTOFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'message': json['message'] == null ? undefined : json['message'],
36
+ };
37
+ }
38
+ function ErrorDTOToJSON(json) {
39
+ return ErrorDTOToJSONTyped(json, false);
40
+ }
41
+ function ErrorDTOToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'message': value['message'],
47
+ };
48
+ }
49
+ //# sourceMappingURL=ErrorDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorDTO.js","sourceRoot":"","sources":["ErrorDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,gDAEC;AAED,4CAEC;AAED,sDAQC;AAED,wCAEC;AAED,kDASC;AAlCD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC5C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS,EAAE,mBAA4B;IACzE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACnE,CAAC;AACN,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAAuB,EAAE,sBAA+B,KAAK;IAC7F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"}
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tuix Repo Sync Service
5
+ * service to sync Tuix repos
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ErrorDTO
20
+ */
21
+ export interface ErrorDTO {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ErrorDTO
26
+ */
27
+ message?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ErrorDTO interface.
32
+ */
33
+ export function instanceOfErrorDTO(value: object): value is ErrorDTO {
34
+ return true;
35
+ }
36
+
37
+ export function ErrorDTOFromJSON(json: any): ErrorDTO {
38
+ return ErrorDTOFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ErrorDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDTO {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'message': json['message'] == null ? undefined : json['message'],
48
+ };
49
+ }
50
+
51
+ export function ErrorDTOToJSON(json: any): ErrorDTO {
52
+ return ErrorDTOToJSONTyped(json, false);
53
+ }
54
+
55
+ export function ErrorDTOToJSONTyped(value?: ErrorDTO | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'message': value['message'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./ErrorDTO"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,6CAA2B"}
@@ -0,0 +1,3 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ErrorDTO';
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "tuix-repo-sync-service-client",
3
+ "version": "0.0.1",
4
+ "description": "This package facilitates the client request to tuix tuix-repo-sync-service",
5
+ "main": "index.js",
6
+ "private": false,
7
+ "keywords": [
8
+ "tuix",
9
+ "api"
10
+ ],
11
+ "author": "",
12
+ "license": "ISC",
13
+ "devDependencies": {
14
+ "@openapitools/openapi-generator-cli": "2.9.0",
15
+ "typescript": "5.3.3"
16
+ }
17
+ }