tuix-projects-service-client 0.0.87 → 0.0.89
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/.openapi-generator/FILES +6 -0
- package/apis/ClientApi.js +41 -0
- package/apis/ClientApi.js.map +1 -1
- package/apis/ClientApi.ts +67 -0
- package/docs/ClientApi.md +74 -0
- package/docs/MigratePdfUrlsInputDTO.md +40 -0
- package/docs/MigratePdfUrlsResultDTO.md +42 -0
- package/docs/MigratePdfUrlsTableResultDTO.md +40 -0
- package/models/MigratePdfUrlsInputDTO.js +59 -0
- package/models/MigratePdfUrlsInputDTO.js.map +1 -0
- package/models/MigratePdfUrlsInputDTO.ts +92 -0
- package/models/MigratePdfUrlsResultDTO.js +58 -0
- package/models/MigratePdfUrlsResultDTO.js.map +1 -0
- package/models/MigratePdfUrlsResultDTO.ts +105 -0
- package/models/MigratePdfUrlsTableResultDTO.js +55 -0
- package/models/MigratePdfUrlsTableResultDTO.js.map +1 -0
- package/models/MigratePdfUrlsTableResultDTO.ts +89 -0
- package/models/index.js +3 -0
- package/models/index.js.map +1 -1
- package/models/index.ts +3 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/apis/ClientApi.ts
CHANGED
|
@@ -173,6 +173,16 @@ import {
|
|
|
173
173
|
MarkInvoicePaidDTOFromJSON,
|
|
174
174
|
MarkInvoicePaidDTOToJSON,
|
|
175
175
|
} from '../models/MarkInvoicePaidDTO';
|
|
176
|
+
import {
|
|
177
|
+
type MigratePdfUrlsInputDTO,
|
|
178
|
+
MigratePdfUrlsInputDTOFromJSON,
|
|
179
|
+
MigratePdfUrlsInputDTOToJSON,
|
|
180
|
+
} from '../models/MigratePdfUrlsInputDTO';
|
|
181
|
+
import {
|
|
182
|
+
type MigratePdfUrlsResultDTO,
|
|
183
|
+
MigratePdfUrlsResultDTOFromJSON,
|
|
184
|
+
MigratePdfUrlsResultDTOToJSON,
|
|
185
|
+
} from '../models/MigratePdfUrlsResultDTO';
|
|
176
186
|
import {
|
|
177
187
|
type PaginatedAdjustedTimesheets,
|
|
178
188
|
PaginatedAdjustedTimesheetsFromJSON,
|
|
@@ -576,6 +586,10 @@ export interface MarkInvoiceAsPaidRequest {
|
|
|
576
586
|
markInvoicePaidDTO: MarkInvoicePaidDTO;
|
|
577
587
|
}
|
|
578
588
|
|
|
589
|
+
export interface MigratePdfUrlsRequest {
|
|
590
|
+
migratePdfUrlsInputDTO: MigratePdfUrlsInputDTO;
|
|
591
|
+
}
|
|
592
|
+
|
|
579
593
|
export interface OpenSentTimesheetRequest {
|
|
580
594
|
projectId: string;
|
|
581
595
|
timesheetId: string;
|
|
@@ -4204,6 +4218,59 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
4204
4218
|
await this.markInvoiceAsPaidRaw(requestParameters, initOverrides);
|
|
4205
4219
|
}
|
|
4206
4220
|
|
|
4221
|
+
/**
|
|
4222
|
+
* Creates request options for migratePdfUrls without sending the request
|
|
4223
|
+
*/
|
|
4224
|
+
async migratePdfUrlsRequestOpts(requestParameters: MigratePdfUrlsRequest): Promise<runtime.RequestOpts> {
|
|
4225
|
+
if (requestParameters['migratePdfUrlsInputDTO'] == null) {
|
|
4226
|
+
throw new runtime.RequiredError(
|
|
4227
|
+
'migratePdfUrlsInputDTO',
|
|
4228
|
+
'Required parameter "migratePdfUrlsInputDTO" was null or undefined when calling migratePdfUrls().'
|
|
4229
|
+
);
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4232
|
+
const queryParameters: any = {};
|
|
4233
|
+
|
|
4234
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4235
|
+
|
|
4236
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4237
|
+
|
|
4238
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
4239
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // api_key authentication
|
|
4240
|
+
}
|
|
4241
|
+
|
|
4242
|
+
|
|
4243
|
+
let urlPath = `/api/migrations/pdf-urls`;
|
|
4244
|
+
|
|
4245
|
+
return {
|
|
4246
|
+
path: urlPath,
|
|
4247
|
+
method: 'POST',
|
|
4248
|
+
headers: headerParameters,
|
|
4249
|
+
query: queryParameters,
|
|
4250
|
+
body: MigratePdfUrlsInputDTOToJSON(requestParameters['migratePdfUrlsInputDTO']),
|
|
4251
|
+
};
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4254
|
+
/**
|
|
4255
|
+
* Rewrites the stored PDF URLs that still point at the pdf-service S3 bucket so they go through the pdf-service endpoint. Defaults to a dry run; send dryRun=false to apply. Returns the log of every row it rewrote.
|
|
4256
|
+
* Migrate the stored PDF URLs to the pdf-service endpoint
|
|
4257
|
+
*/
|
|
4258
|
+
async migratePdfUrlsRaw(requestParameters: MigratePdfUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigratePdfUrlsResultDTO>> {
|
|
4259
|
+
const requestOptions = await this.migratePdfUrlsRequestOpts(requestParameters);
|
|
4260
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4261
|
+
|
|
4262
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MigratePdfUrlsResultDTOFromJSON(jsonValue));
|
|
4263
|
+
}
|
|
4264
|
+
|
|
4265
|
+
/**
|
|
4266
|
+
* Rewrites the stored PDF URLs that still point at the pdf-service S3 bucket so they go through the pdf-service endpoint. Defaults to a dry run; send dryRun=false to apply. Returns the log of every row it rewrote.
|
|
4267
|
+
* Migrate the stored PDF URLs to the pdf-service endpoint
|
|
4268
|
+
*/
|
|
4269
|
+
async migratePdfUrls(requestParameters: MigratePdfUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigratePdfUrlsResultDTO> {
|
|
4270
|
+
const response = await this.migratePdfUrlsRaw(requestParameters, initOverrides);
|
|
4271
|
+
return await response.value();
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4207
4274
|
/**
|
|
4208
4275
|
* Creates request options for openSentTimesheet without sending the request
|
|
4209
4276
|
*/
|
package/docs/ClientApi.md
CHANGED
|
@@ -68,6 +68,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
68
68
|
| [**inviteEmployee**](ClientApi.md#inviteemployee) | **POST** /employees/invite | Invite an employee to a company |
|
|
69
69
|
| [**markEmployeeInvoiceAsPaid**](ClientApi.md#markemployeeinvoiceaspaid) | **POST** /employees/{userId}/invoices/{employeeInvoiceId}/mark-paid | Mark an employee invoice as paid |
|
|
70
70
|
| [**markInvoiceAsPaid**](ClientApi.md#markinvoiceaspaid) | **POST** /clients/{clientId}/invoices/{invoiceId}/mark-paid | Mark a client invoice as paid with the specified date and time |
|
|
71
|
+
| [**migratePdfUrls**](ClientApi.md#migratepdfurls) | **POST** /api/migrations/pdf-urls | Migrate the stored PDF URLs to the pdf-service endpoint |
|
|
71
72
|
| [**openSentTimesheet**](ClientApi.md#opensenttimesheet) | **PATCH** /projects/{projectId}/timesheets/{timesheetId}/open | Open a sent timesheet |
|
|
72
73
|
| [**removeJiraAccount**](ClientApi.md#removejiraaccount) | **DELETE** /jira-users/jira-accounts/{jiraAccountId} | Remove jira account |
|
|
73
74
|
| [**sendTimesheet**](ClientApi.md#sendtimesheet) | **PATCH** /projects/{projectId}/timesheets/{timesheetId}/send | Send a timesheet |
|
|
@@ -5074,6 +5075,79 @@ example().catch(console.error);
|
|
|
5074
5075
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
5075
5076
|
|
|
5076
5077
|
|
|
5078
|
+
## migratePdfUrls
|
|
5079
|
+
|
|
5080
|
+
> MigratePdfUrlsResultDTO migratePdfUrls(migratePdfUrlsInputDTO)
|
|
5081
|
+
|
|
5082
|
+
Migrate the stored PDF URLs to the pdf-service endpoint
|
|
5083
|
+
|
|
5084
|
+
Rewrites the stored PDF URLs that still point at the pdf-service S3 bucket so they go through the pdf-service endpoint. Defaults to a dry run; send dryRun=false to apply. Returns the log of every row it rewrote.
|
|
5085
|
+
|
|
5086
|
+
### Example
|
|
5087
|
+
|
|
5088
|
+
```ts
|
|
5089
|
+
import {
|
|
5090
|
+
Configuration,
|
|
5091
|
+
ClientApi,
|
|
5092
|
+
} from '';
|
|
5093
|
+
import type { MigratePdfUrlsRequest } from '';
|
|
5094
|
+
|
|
5095
|
+
async function example() {
|
|
5096
|
+
console.log("🚀 Testing SDK...");
|
|
5097
|
+
const config = new Configuration({
|
|
5098
|
+
// To configure API key authorization: api_key
|
|
5099
|
+
apiKey: "YOUR API KEY",
|
|
5100
|
+
});
|
|
5101
|
+
const api = new ClientApi(config);
|
|
5102
|
+
|
|
5103
|
+
const body = {
|
|
5104
|
+
// MigratePdfUrlsInputDTO | Migration parameters
|
|
5105
|
+
migratePdfUrlsInputDTO: ...,
|
|
5106
|
+
} satisfies MigratePdfUrlsRequest;
|
|
5107
|
+
|
|
5108
|
+
try {
|
|
5109
|
+
const data = await api.migratePdfUrls(body);
|
|
5110
|
+
console.log(data);
|
|
5111
|
+
} catch (error) {
|
|
5112
|
+
console.error(error);
|
|
5113
|
+
}
|
|
5114
|
+
}
|
|
5115
|
+
|
|
5116
|
+
// Run the test
|
|
5117
|
+
example().catch(console.error);
|
|
5118
|
+
```
|
|
5119
|
+
|
|
5120
|
+
### Parameters
|
|
5121
|
+
|
|
5122
|
+
|
|
5123
|
+
| Name | Type | Description | Notes |
|
|
5124
|
+
|------------- | ------------- | ------------- | -------------|
|
|
5125
|
+
| **migratePdfUrlsInputDTO** | [MigratePdfUrlsInputDTO](MigratePdfUrlsInputDTO.md) | Migration parameters | |
|
|
5126
|
+
|
|
5127
|
+
### Return type
|
|
5128
|
+
|
|
5129
|
+
[**MigratePdfUrlsResultDTO**](MigratePdfUrlsResultDTO.md)
|
|
5130
|
+
|
|
5131
|
+
### Authorization
|
|
5132
|
+
|
|
5133
|
+
[api_key](../README.md#api_key)
|
|
5134
|
+
|
|
5135
|
+
### HTTP request headers
|
|
5136
|
+
|
|
5137
|
+
- **Content-Type**: `application/json`
|
|
5138
|
+
- **Accept**: `application/json`
|
|
5139
|
+
|
|
5140
|
+
|
|
5141
|
+
### HTTP response details
|
|
5142
|
+
| Status code | Description | Response headers |
|
|
5143
|
+
|-------------|-------------|------------------|
|
|
5144
|
+
| **200** | Return the migration totals and logs | - |
|
|
5145
|
+
| **400** | Return an error if the body is missing or has an invalid field | - |
|
|
5146
|
+
| **500** | Return an error if the migration fails | - |
|
|
5147
|
+
|
|
5148
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
5149
|
+
|
|
5150
|
+
|
|
5077
5151
|
## openSentTimesheet
|
|
5078
5152
|
|
|
5079
5153
|
> openSentTimesheet(projectId, timesheetId)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# MigratePdfUrlsInputDTO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`applicationId` | string
|
|
10
|
+
`baseUrl` | string
|
|
11
|
+
`dryRun` | boolean
|
|
12
|
+
`pageSize` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { MigratePdfUrlsInputDTO } from ''
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"applicationId": null,
|
|
22
|
+
"baseUrl": null,
|
|
23
|
+
"dryRun": null,
|
|
24
|
+
"pageSize": null,
|
|
25
|
+
} satisfies MigratePdfUrlsInputDTO
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as MigratePdfUrlsInputDTO
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# MigratePdfUrlsResultDTO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`dryRun` | boolean
|
|
10
|
+
`logs` | Array<string>
|
|
11
|
+
`skipped` | number
|
|
12
|
+
`tables` | [Array<MigratePdfUrlsTableResultDTO>](MigratePdfUrlsTableResultDTO.md)
|
|
13
|
+
`updated` | number
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { MigratePdfUrlsResultDTO } from ''
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"dryRun": null,
|
|
23
|
+
"logs": null,
|
|
24
|
+
"skipped": null,
|
|
25
|
+
"tables": null,
|
|
26
|
+
"updated": null,
|
|
27
|
+
} satisfies MigratePdfUrlsResultDTO
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as MigratePdfUrlsResultDTO
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# MigratePdfUrlsTableResultDTO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`column` | string
|
|
10
|
+
`skipped` | number
|
|
11
|
+
`table` | string
|
|
12
|
+
`updated` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { MigratePdfUrlsTableResultDTO } from ''
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"column": null,
|
|
22
|
+
"skipped": null,
|
|
23
|
+
"table": null,
|
|
24
|
+
"updated": null,
|
|
25
|
+
} satisfies MigratePdfUrlsTableResultDTO
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as MigratePdfUrlsTableResultDTO
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix Project Service
|
|
6
|
+
* Service to manage Tuix projects
|
|
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.instanceOfMigratePdfUrlsInputDTO = instanceOfMigratePdfUrlsInputDTO;
|
|
17
|
+
exports.MigratePdfUrlsInputDTOFromJSON = MigratePdfUrlsInputDTOFromJSON;
|
|
18
|
+
exports.MigratePdfUrlsInputDTOFromJSONTyped = MigratePdfUrlsInputDTOFromJSONTyped;
|
|
19
|
+
exports.MigratePdfUrlsInputDTOToJSON = MigratePdfUrlsInputDTOToJSON;
|
|
20
|
+
exports.MigratePdfUrlsInputDTOToJSONTyped = MigratePdfUrlsInputDTOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MigratePdfUrlsInputDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMigratePdfUrlsInputDTO(value) {
|
|
25
|
+
if (!('applicationId' in value) || value['applicationId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('baseUrl' in value) || value['baseUrl'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function MigratePdfUrlsInputDTOFromJSON(json) {
|
|
32
|
+
return MigratePdfUrlsInputDTOFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function MigratePdfUrlsInputDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'applicationId': json['applicationId'],
|
|
40
|
+
'baseUrl': json['baseUrl'],
|
|
41
|
+
'dryRun': json['dryRun'] == null ? undefined : json['dryRun'],
|
|
42
|
+
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function MigratePdfUrlsInputDTOToJSON(json) {
|
|
46
|
+
return MigratePdfUrlsInputDTOToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function MigratePdfUrlsInputDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'applicationId': value['applicationId'],
|
|
54
|
+
'baseUrl': value['baseUrl'],
|
|
55
|
+
'dryRun': value['dryRun'],
|
|
56
|
+
'pageSize': value['pageSize'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=MigratePdfUrlsInputDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MigratePdfUrlsInputDTO.js","sourceRoot":"","sources":["MigratePdfUrlsInputDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAuCH,4EAIC;AAED,wEAEC;AAED,kFAWC;AAED,oEAEC;AAED,8EAYC;AA1CD;;GAEG;AACH,SAAgB,gCAAgC,CAAC,KAAa;IAC1D,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS,EAAE,mBAA4B;IACvF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC;QACtC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC7D,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,KAAqC,EAAE,sBAA+B,KAAK;IACzH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix Project Service
|
|
5
|
+
* Service to manage Tuix projects
|
|
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 MigratePdfUrlsInputDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface MigratePdfUrlsInputDTO {
|
|
22
|
+
/**
|
|
23
|
+
* ApplicationId is the application the migrated files belong to.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MigratePdfUrlsInputDTO
|
|
26
|
+
*/
|
|
27
|
+
applicationId: string;
|
|
28
|
+
/**
|
|
29
|
+
* BaseUrl is the pdf-service base URL the rewritten URLs point at.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MigratePdfUrlsInputDTO
|
|
32
|
+
*/
|
|
33
|
+
baseUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
* DryRun reports what would change without writing. Defaults to true, so a
|
|
36
|
+
* call that omits it never touches data.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof MigratePdfUrlsInputDTO
|
|
39
|
+
*/
|
|
40
|
+
dryRun?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* PageSize is how many rows are read per query. Defaults to 500.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof MigratePdfUrlsInputDTO
|
|
45
|
+
*/
|
|
46
|
+
pageSize?: number;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the MigratePdfUrlsInputDTO interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfMigratePdfUrlsInputDTO(value: object): value is MigratePdfUrlsInputDTO {
|
|
53
|
+
if (!('applicationId' in value) || value['applicationId'] === undefined) return false;
|
|
54
|
+
if (!('baseUrl' in value) || value['baseUrl'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function MigratePdfUrlsInputDTOFromJSON(json: any): MigratePdfUrlsInputDTO {
|
|
59
|
+
return MigratePdfUrlsInputDTOFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function MigratePdfUrlsInputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigratePdfUrlsInputDTO {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'applicationId': json['applicationId'],
|
|
69
|
+
'baseUrl': json['baseUrl'],
|
|
70
|
+
'dryRun': json['dryRun'] == null ? undefined : json['dryRun'],
|
|
71
|
+
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function MigratePdfUrlsInputDTOToJSON(json: any): MigratePdfUrlsInputDTO {
|
|
76
|
+
return MigratePdfUrlsInputDTOToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function MigratePdfUrlsInputDTOToJSONTyped(value?: MigratePdfUrlsInputDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'applicationId': value['applicationId'],
|
|
87
|
+
'baseUrl': value['baseUrl'],
|
|
88
|
+
'dryRun': value['dryRun'],
|
|
89
|
+
'pageSize': value['pageSize'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix Project Service
|
|
6
|
+
* Service to manage Tuix projects
|
|
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.instanceOfMigratePdfUrlsResultDTO = instanceOfMigratePdfUrlsResultDTO;
|
|
17
|
+
exports.MigratePdfUrlsResultDTOFromJSON = MigratePdfUrlsResultDTOFromJSON;
|
|
18
|
+
exports.MigratePdfUrlsResultDTOFromJSONTyped = MigratePdfUrlsResultDTOFromJSONTyped;
|
|
19
|
+
exports.MigratePdfUrlsResultDTOToJSON = MigratePdfUrlsResultDTOToJSON;
|
|
20
|
+
exports.MigratePdfUrlsResultDTOToJSONTyped = MigratePdfUrlsResultDTOToJSONTyped;
|
|
21
|
+
const MigratePdfUrlsTableResultDTO_1 = require("./MigratePdfUrlsTableResultDTO");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MigratePdfUrlsResultDTO interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMigratePdfUrlsResultDTO(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function MigratePdfUrlsResultDTOFromJSON(json) {
|
|
29
|
+
return MigratePdfUrlsResultDTOFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function MigratePdfUrlsResultDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'dryRun': json['dryRun'] == null ? undefined : json['dryRun'],
|
|
37
|
+
'logs': json['logs'] == null ? undefined : json['logs'],
|
|
38
|
+
'skipped': json['skipped'] == null ? undefined : json['skipped'],
|
|
39
|
+
'tables': json['tables'] == null ? undefined : (json['tables'].map(MigratePdfUrlsTableResultDTO_1.MigratePdfUrlsTableResultDTOFromJSON)),
|
|
40
|
+
'updated': json['updated'] == null ? undefined : json['updated'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function MigratePdfUrlsResultDTOToJSON(json) {
|
|
44
|
+
return MigratePdfUrlsResultDTOToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function MigratePdfUrlsResultDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'dryRun': value['dryRun'],
|
|
52
|
+
'logs': value['logs'],
|
|
53
|
+
'skipped': value['skipped'],
|
|
54
|
+
'tables': value['tables'] == null ? undefined : (value['tables'].map(MigratePdfUrlsTableResultDTO_1.MigratePdfUrlsTableResultDTOToJSON)),
|
|
55
|
+
'updated': value['updated'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=MigratePdfUrlsResultDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MigratePdfUrlsResultDTO.js","sourceRoot":"","sources":["MigratePdfUrlsResultDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,8EAEC;AAED,0EAEC;AAED,oFAYC;AAED,sEAEC;AAED,gFAaC;AAvFD,iFAKwC;AAwCxC;;GAEG;AACH,SAAgB,iCAAiC,CAAC,KAAa;IAC3D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS,EAAE,mBAA4B;IACxF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC7D,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACvD,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QAChE,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,QAAQ,CAAgB,CAAC,GAAG,CAAC,mEAAoC,CAAC,CAAC;QACzH,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,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,KAAsC,EAAE,sBAA+B,KAAK;IAC3H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,QAAQ,CAAgB,CAAC,GAAG,CAAC,iEAAkC,CAAC,CAAC;QACzH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix Project Service
|
|
5
|
+
* Service to manage Tuix projects
|
|
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
|
+
import type { MigratePdfUrlsTableResultDTO } from './MigratePdfUrlsTableResultDTO';
|
|
17
|
+
import {
|
|
18
|
+
MigratePdfUrlsTableResultDTOFromJSON,
|
|
19
|
+
MigratePdfUrlsTableResultDTOFromJSONTyped,
|
|
20
|
+
MigratePdfUrlsTableResultDTOToJSON,
|
|
21
|
+
MigratePdfUrlsTableResultDTOToJSONTyped,
|
|
22
|
+
} from './MigratePdfUrlsTableResultDTO';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MigratePdfUrlsResultDTO
|
|
28
|
+
*/
|
|
29
|
+
export interface MigratePdfUrlsResultDTO {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof MigratePdfUrlsResultDTO
|
|
34
|
+
*/
|
|
35
|
+
dryRun?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof MigratePdfUrlsResultDTO
|
|
40
|
+
*/
|
|
41
|
+
logs?: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof MigratePdfUrlsResultDTO
|
|
46
|
+
*/
|
|
47
|
+
skipped?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<MigratePdfUrlsTableResultDTO>}
|
|
51
|
+
* @memberof MigratePdfUrlsResultDTO
|
|
52
|
+
*/
|
|
53
|
+
tables?: Array<MigratePdfUrlsTableResultDTO>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof MigratePdfUrlsResultDTO
|
|
58
|
+
*/
|
|
59
|
+
updated?: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the MigratePdfUrlsResultDTO interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfMigratePdfUrlsResultDTO(value: object): value is MigratePdfUrlsResultDTO {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function MigratePdfUrlsResultDTOFromJSON(json: any): MigratePdfUrlsResultDTO {
|
|
70
|
+
return MigratePdfUrlsResultDTOFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function MigratePdfUrlsResultDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigratePdfUrlsResultDTO {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'dryRun': json['dryRun'] == null ? undefined : json['dryRun'],
|
|
80
|
+
'logs': json['logs'] == null ? undefined : json['logs'],
|
|
81
|
+
'skipped': json['skipped'] == null ? undefined : json['skipped'],
|
|
82
|
+
'tables': json['tables'] == null ? undefined : ((json['tables'] as Array<any>).map(MigratePdfUrlsTableResultDTOFromJSON)),
|
|
83
|
+
'updated': json['updated'] == null ? undefined : json['updated'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function MigratePdfUrlsResultDTOToJSON(json: any): MigratePdfUrlsResultDTO {
|
|
88
|
+
return MigratePdfUrlsResultDTOToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function MigratePdfUrlsResultDTOToJSONTyped(value?: MigratePdfUrlsResultDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'dryRun': value['dryRun'],
|
|
99
|
+
'logs': value['logs'],
|
|
100
|
+
'skipped': value['skipped'],
|
|
101
|
+
'tables': value['tables'] == null ? undefined : ((value['tables'] as Array<any>).map(MigratePdfUrlsTableResultDTOToJSON)),
|
|
102
|
+
'updated': value['updated'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix Project Service
|
|
6
|
+
* Service to manage Tuix projects
|
|
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.instanceOfMigratePdfUrlsTableResultDTO = instanceOfMigratePdfUrlsTableResultDTO;
|
|
17
|
+
exports.MigratePdfUrlsTableResultDTOFromJSON = MigratePdfUrlsTableResultDTOFromJSON;
|
|
18
|
+
exports.MigratePdfUrlsTableResultDTOFromJSONTyped = MigratePdfUrlsTableResultDTOFromJSONTyped;
|
|
19
|
+
exports.MigratePdfUrlsTableResultDTOToJSON = MigratePdfUrlsTableResultDTOToJSON;
|
|
20
|
+
exports.MigratePdfUrlsTableResultDTOToJSONTyped = MigratePdfUrlsTableResultDTOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MigratePdfUrlsTableResultDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMigratePdfUrlsTableResultDTO(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function MigratePdfUrlsTableResultDTOFromJSON(json) {
|
|
28
|
+
return MigratePdfUrlsTableResultDTOFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function MigratePdfUrlsTableResultDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'column': json['column'] == null ? undefined : json['column'],
|
|
36
|
+
'skipped': json['skipped'] == null ? undefined : json['skipped'],
|
|
37
|
+
'table': json['table'] == null ? undefined : json['table'],
|
|
38
|
+
'updated': json['updated'] == null ? undefined : json['updated'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function MigratePdfUrlsTableResultDTOToJSON(json) {
|
|
42
|
+
return MigratePdfUrlsTableResultDTOToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function MigratePdfUrlsTableResultDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'column': value['column'],
|
|
50
|
+
'skipped': value['skipped'],
|
|
51
|
+
'table': value['table'],
|
|
52
|
+
'updated': value['updated'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=MigratePdfUrlsTableResultDTO.js.map
|