@product-live/api-sdk 2.2.0-dev → 2.3.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/apis/DataFactoryFileApi.ts +38 -35
- package/apis/JobApi.ts +76 -62
- package/apis/JobExecutionApi.ts +78 -28
- package/apis/TaskApi.ts +92 -78
- package/apis/TaskExecutionApi.ts +32 -32
- package/apis/VariableApi.ts +160 -19
- package/dist/apis/DataFactoryFileApi.d.ts +20 -0
- package/dist/apis/DataFactoryFileApi.js +122 -0
- package/dist/apis/DataFactoryFileApi.js.map +1 -0
- package/dist/apis/JobApi.d.ts +32 -0
- package/dist/apis/JobApi.js +191 -0
- package/dist/apis/JobApi.js.map +1 -0
- package/dist/apis/JobExecutionApi.d.ts +20 -0
- package/dist/apis/JobExecutionApi.js +107 -0
- package/dist/apis/JobExecutionApi.js.map +1 -0
- package/dist/apis/TaskApi.d.ts +36 -0
- package/dist/apis/TaskApi.js +196 -0
- package/dist/apis/TaskApi.js.map +1 -0
- package/dist/apis/TaskExecutionApi.d.ts +15 -0
- package/dist/apis/TaskExecutionApi.js +79 -0
- package/dist/apis/TaskExecutionApi.js.map +1 -0
- package/dist/apis/VariableApi.d.ts +26 -0
- package/dist/apis/VariableApi.js +140 -0
- package/dist/apis/VariableApi.js.map +1 -0
- package/dist/apis/index.d.ts +6 -0
- package/dist/apis/index.js +23 -0
- package/dist/apis/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/models/CreateJobDto.d.ts +22 -0
- package/dist/models/CreateJobDto.js +63 -0
- package/dist/models/CreateJobDto.js.map +1 -0
- package/dist/models/CreateJobExecutionDto.d.ts +13 -0
- package/dist/models/CreateJobExecutionDto.js +44 -0
- package/dist/models/CreateJobExecutionDto.js.map +1 -0
- package/dist/models/CreateTaskDto.d.ts +12 -0
- package/dist/models/CreateTaskDto.js +48 -0
- package/dist/models/CreateTaskDto.js.map +1 -0
- package/dist/models/CreateVariableDto.d.ts +10 -0
- package/dist/models/CreateVariableDto.js +44 -0
- package/dist/models/CreateVariableDto.js.map +1 -0
- package/dist/models/FileControllerGetFiles200Response.d.ts +14 -0
- package/dist/models/FileControllerGetFiles200Response.js +43 -0
- package/dist/models/FileControllerGetFiles200Response.js.map +1 -0
- package/dist/models/FileDto.d.ts +12 -0
- package/dist/models/FileDto.js +50 -0
- package/dist/models/FileDto.js.map +1 -0
- package/dist/models/JobControllerList200Response.d.ts +14 -0
- package/dist/models/JobControllerList200Response.js +43 -0
- package/dist/models/JobControllerList200Response.js.map +1 -0
- package/dist/models/JobDto.d.ts +26 -0
- package/dist/models/JobDto.js +75 -0
- package/dist/models/JobDto.js.map +1 -0
- package/dist/models/JobDtoPeriodicityInner.d.ts +8 -0
- package/dist/models/JobDtoPeriodicityInner.js +37 -0
- package/dist/models/JobDtoPeriodicityInner.js.map +1 -0
- package/dist/models/JobDtoTasksInner.d.ts +14 -0
- package/dist/models/JobDtoTasksInner.js +45 -0
- package/dist/models/JobDtoTasksInner.js.map +1 -0
- package/dist/models/JobDtoTitleLocal.d.ts +8 -0
- package/dist/models/JobDtoTitleLocal.js +37 -0
- package/dist/models/JobDtoTitleLocal.js.map +1 -0
- package/dist/models/JobExecutionControllerGetOne400Response.d.ts +7 -0
- package/dist/models/JobExecutionControllerGetOne400Response.js +35 -0
- package/dist/models/JobExecutionControllerGetOne400Response.js.map +1 -0
- package/dist/models/JobExecutionControllerList200Response.d.ts +14 -0
- package/dist/models/JobExecutionControllerList200Response.js +43 -0
- package/dist/models/JobExecutionControllerList200Response.js.map +1 -0
- package/dist/models/JobExecutionDto.d.ts +23 -0
- package/dist/models/JobExecutionDto.js +68 -0
- package/dist/models/JobExecutionDto.js.map +1 -0
- package/dist/models/JobExecutionDtoInfo.d.ts +7 -0
- package/dist/models/JobExecutionDtoInfo.js +35 -0
- package/dist/models/JobExecutionDtoInfo.js.map +1 -0
- package/dist/models/PatchTaskExecutionDto.d.ts +11 -0
- package/dist/models/PatchTaskExecutionDto.js +41 -0
- package/dist/models/PatchTaskExecutionDto.js.map +1 -0
- package/dist/models/TaskControllerList200Response.d.ts +14 -0
- package/dist/models/TaskControllerList200Response.js +43 -0
- package/dist/models/TaskControllerList200Response.js.map +1 -0
- package/dist/models/TaskDto.d.ts +16 -0
- package/dist/models/TaskDto.js +60 -0
- package/dist/models/TaskDto.js.map +1 -0
- package/dist/models/TaskDtoInputKeysInner.d.ts +8 -0
- package/dist/models/TaskDtoInputKeysInner.js +37 -0
- package/dist/models/TaskDtoInputKeysInner.js.map +1 -0
- package/dist/models/TaskExecutionDto.d.ts +18 -0
- package/dist/models/TaskExecutionDto.js +56 -0
- package/dist/models/TaskExecutionDto.js.map +1 -0
- package/dist/models/UpdateJobDto.d.ts +23 -0
- package/dist/models/UpdateJobDto.js +66 -0
- package/dist/models/UpdateJobDto.js.map +1 -0
- package/dist/models/UpdateTaskDto.d.ts +13 -0
- package/dist/models/UpdateTaskDto.js +51 -0
- package/dist/models/UpdateTaskDto.js.map +1 -0
- package/dist/models/UpdateVariableDto.d.ts +11 -0
- package/dist/models/UpdateVariableDto.js +47 -0
- package/dist/models/UpdateVariableDto.js.map +1 -0
- package/dist/models/VariableControllerList200Response.d.ts +14 -0
- package/dist/models/VariableControllerList200Response.js +43 -0
- package/dist/models/VariableControllerList200Response.js.map +1 -0
- package/dist/models/VariableDto.d.ts +18 -0
- package/dist/models/VariableDto.js +59 -0
- package/dist/models/VariableDto.js.map +1 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +42 -0
- package/dist/models/index.js.map +1 -0
- package/dist/runtime.d.ts +154 -0
- package/dist/runtime.js +306 -0
- package/dist/runtime.js.map +1 -0
- package/models/CreateJobDto.ts +169 -0
- package/models/CreateJobExecutionDto.ts +98 -0
- package/models/CreateTaskDto.ts +109 -0
- package/models/CreateVariableDto.ts +92 -0
- package/models/FileControllerGetFiles200Response.ts +98 -0
- package/models/FileDto.ts +111 -0
- package/models/JobControllerList200Response.ts +98 -0
- package/models/JobDto.ts +50 -86
- package/models/JobDtoPeriodicityInner.ts +1 -1
- package/models/JobDtoTasksInner.ts +9 -1
- package/models/JobDtoTitleLocal.ts +1 -1
- package/models/JobExecutionControllerGetOne400Response.ts +65 -0
- package/models/JobExecutionControllerList200Response.ts +98 -0
- package/models/JobExecutionDto.ts +35 -67
- package/models/JobExecutionDtoInfo.ts +65 -0
- package/models/PatchTaskExecutionDto.ts +83 -0
- package/models/TaskControllerList200Response.ts +98 -0
- package/models/TaskDto.ts +28 -28
- package/models/TaskDtoInputKeysInner.ts +1 -1
- package/models/TaskExecutionDto.ts +129 -0
- package/models/UpdateJobDto.ts +178 -0
- package/models/UpdateTaskDto.ts +118 -0
- package/models/UpdateVariableDto.ts +101 -0
- package/models/VariableControllerList200Response.ts +98 -0
- package/models/VariableDto.ts +33 -24
- package/models/index.ts +18 -11
- package/package.json +11 -5
- package/runtime.ts +19 -1
- package/.openapi-generator-ignore +0 -23
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.1.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
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { VariableDto } from './VariableDto';
|
|
17
|
+
import {
|
|
18
|
+
VariableDtoFromJSON,
|
|
19
|
+
VariableDtoFromJSONTyped,
|
|
20
|
+
VariableDtoToJSON,
|
|
21
|
+
} from './VariableDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface VariableControllerList200Response
|
|
27
|
+
*/
|
|
28
|
+
export interface VariableControllerList200Response {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof VariableControllerList200Response
|
|
33
|
+
*/
|
|
34
|
+
object?: VariableControllerList200ResponseObjectEnum;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof VariableControllerList200Response
|
|
39
|
+
*/
|
|
40
|
+
totalElements?: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<VariableDto>}
|
|
44
|
+
* @memberof VariableControllerList200Response
|
|
45
|
+
*/
|
|
46
|
+
data?: Array<VariableDto>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export const VariableControllerList200ResponseObjectEnum = {
|
|
54
|
+
List: 'list'
|
|
55
|
+
} as const;
|
|
56
|
+
export type VariableControllerList200ResponseObjectEnum = typeof VariableControllerList200ResponseObjectEnum[keyof typeof VariableControllerList200ResponseObjectEnum];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the VariableControllerList200Response interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfVariableControllerList200Response(value: object): boolean {
|
|
63
|
+
let isInstance = true;
|
|
64
|
+
|
|
65
|
+
return isInstance;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function VariableControllerList200ResponseFromJSON(json: any): VariableControllerList200Response {
|
|
69
|
+
return VariableControllerList200ResponseFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function VariableControllerList200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariableControllerList200Response {
|
|
73
|
+
if ((json === undefined) || (json === null)) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'object': !exists(json, 'object') ? undefined : json['object'],
|
|
79
|
+
'totalElements': !exists(json, 'totalElements') ? undefined : json['totalElements'],
|
|
80
|
+
'data': !exists(json, 'data') ? undefined : ((json['data'] as Array<any>).map(VariableDtoFromJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function VariableControllerList200ResponseToJSON(value?: VariableControllerList200Response | null): any {
|
|
85
|
+
if (value === undefined) {
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
if (value === null) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'object': value.object,
|
|
94
|
+
'totalElements': value.totalElements,
|
|
95
|
+
'data': value.data === undefined ? undefined : ((value.data as Array<any>).map(VariableDtoToJSON)),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
package/models/VariableDto.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product-Live API
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 2.1.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,64 +24,73 @@ export interface VariableDto {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof VariableDto
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
key: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof VariableDto
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
name: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {object}
|
|
37
37
|
* @memberof VariableDto
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
status?: object;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof VariableDto
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
value: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof VariableDto
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
id: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof VariableDto
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
object: VariableDtoObjectEnum;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof VariableDto
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
createdAt: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof VariableDto
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
updatedAt: string;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const VariableDtoObjectEnum = {
|
|
77
|
+
Variable: 'variable'
|
|
78
|
+
} as const;
|
|
79
|
+
export type VariableDtoObjectEnum = typeof VariableDtoObjectEnum[keyof typeof VariableDtoObjectEnum];
|
|
80
|
+
|
|
81
|
+
|
|
72
82
|
/**
|
|
73
83
|
* Check if a given object implements the VariableDto interface.
|
|
74
84
|
*/
|
|
75
85
|
export function instanceOfVariableDto(value: object): boolean {
|
|
76
86
|
let isInstance = true;
|
|
77
|
-
isInstance = isInstance && "object" in value;
|
|
78
|
-
isInstance = isInstance && "createdAt" in value;
|
|
79
|
-
isInstance = isInstance && "updatedAt" in value;
|
|
80
|
-
isInstance = isInstance && "id" in value;
|
|
81
87
|
isInstance = isInstance && "key" in value;
|
|
82
88
|
isInstance = isInstance && "name" in value;
|
|
83
|
-
isInstance = isInstance && "status" in value;
|
|
84
89
|
isInstance = isInstance && "value" in value;
|
|
90
|
+
isInstance = isInstance && "id" in value;
|
|
91
|
+
isInstance = isInstance && "object" in value;
|
|
92
|
+
isInstance = isInstance && "createdAt" in value;
|
|
93
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
85
94
|
|
|
86
95
|
return isInstance;
|
|
87
96
|
}
|
|
@@ -96,14 +105,14 @@ export function VariableDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
96
105
|
}
|
|
97
106
|
return {
|
|
98
107
|
|
|
99
|
-
'object': json['object'],
|
|
100
|
-
'createdAt': json['createdAt'],
|
|
101
|
-
'updatedAt': json['updatedAt'],
|
|
102
|
-
'id': json['id'],
|
|
103
108
|
'key': json['key'],
|
|
104
109
|
'name': json['name'],
|
|
105
|
-
'status': json['status'],
|
|
110
|
+
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
106
111
|
'value': json['value'],
|
|
112
|
+
'id': json['id'],
|
|
113
|
+
'object': json['object'],
|
|
114
|
+
'createdAt': json['createdAt'],
|
|
115
|
+
'updatedAt': json['updatedAt'],
|
|
107
116
|
};
|
|
108
117
|
}
|
|
109
118
|
|
|
@@ -116,14 +125,14 @@ export function VariableDtoToJSON(value?: VariableDto | null): any {
|
|
|
116
125
|
}
|
|
117
126
|
return {
|
|
118
127
|
|
|
119
|
-
'object': value.object,
|
|
120
|
-
'createdAt': value.createdAt,
|
|
121
|
-
'updatedAt': value.updatedAt,
|
|
122
|
-
'id': value.id,
|
|
123
128
|
'key': value.key,
|
|
124
129
|
'name': value.name,
|
|
125
130
|
'status': value.status,
|
|
126
131
|
'value': value.value,
|
|
132
|
+
'id': value.id,
|
|
133
|
+
'object': value.object,
|
|
134
|
+
'createdAt': value.createdAt,
|
|
135
|
+
'updatedAt': value.updatedAt,
|
|
127
136
|
};
|
|
128
137
|
}
|
|
129
138
|
|
package/models/index.ts
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
3
|
+
export * from './CreateJobDto';
|
|
4
|
+
export * from './CreateJobExecutionDto';
|
|
5
|
+
export * from './CreateTaskDto';
|
|
6
|
+
export * from './CreateVariableDto';
|
|
7
|
+
export * from './FileControllerGetFiles200Response';
|
|
8
|
+
export * from './FileDto';
|
|
9
|
+
export * from './JobControllerList200Response';
|
|
8
10
|
export * from './JobDto';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './JobDtoProject';
|
|
11
|
+
export * from './JobDtoPeriodicityInner';
|
|
11
12
|
export * from './JobDtoTasksInner';
|
|
12
13
|
export * from './JobDtoTitleLocal';
|
|
14
|
+
export * from './JobExecutionControllerGetOne400Response';
|
|
15
|
+
export * from './JobExecutionControllerList200Response';
|
|
13
16
|
export * from './JobExecutionDto';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
17
|
+
export * from './JobExecutionDtoInfo';
|
|
18
|
+
export * from './PatchTaskExecutionDto';
|
|
19
|
+
export * from './TaskControllerList200Response';
|
|
16
20
|
export * from './TaskDto';
|
|
17
21
|
export * from './TaskDtoInputKeysInner';
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
22
|
+
export * from './TaskExecutionDto';
|
|
23
|
+
export * from './UpdateJobDto';
|
|
24
|
+
export * from './UpdateTaskDto';
|
|
25
|
+
export * from './UpdateVariableDto';
|
|
26
|
+
export * from './VariableControllerList200Response';
|
|
20
27
|
export * from './VariableDto';
|
package/package.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "",
|
|
3
|
-
"main": "index.js",
|
|
3
|
+
"main": "./dist/index.js",
|
|
4
4
|
"author": "product-live",
|
|
5
5
|
"license": "ISC",
|
|
6
|
-
"version": "2.
|
|
7
|
-
"hash": "
|
|
8
|
-
"homepage": "https://api-next.
|
|
9
|
-
"name": "@product-live/api-sdk"
|
|
6
|
+
"version": "2.3.1",
|
|
7
|
+
"hash": "65e6e2dfb295ad42130181fe49cbdc265434b49034e3a6936fd274f1fc0243af",
|
|
8
|
+
"homepage": "https://api-next.product-live.com/-json",
|
|
9
|
+
"name": "@product-live/api-sdk",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"typescript": "^5.0.4"
|
|
15
|
+
}
|
|
10
16
|
}
|
package/runtime.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product-Live API
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 2.1.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -91,6 +91,7 @@ export const DefaultConfig = new Configuration();
|
|
|
91
91
|
*/
|
|
92
92
|
export class BaseAPI {
|
|
93
93
|
|
|
94
|
+
private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
94
95
|
private middleware: Middleware[];
|
|
95
96
|
|
|
96
97
|
constructor(protected configuration = DefaultConfig) {
|
|
@@ -113,6 +114,23 @@ export class BaseAPI {
|
|
|
113
114
|
return this.withMiddleware<T>(...middlewares);
|
|
114
115
|
}
|
|
115
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Check if the given MIME is a JSON MIME.
|
|
119
|
+
* JSON MIME examples:
|
|
120
|
+
* application/json
|
|
121
|
+
* application/json; charset=UTF8
|
|
122
|
+
* APPLICATION/JSON
|
|
123
|
+
* application/vnd.company+json
|
|
124
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
125
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
126
|
+
*/
|
|
127
|
+
protected isJsonMime(mime: string | null | undefined): boolean {
|
|
128
|
+
if (!mime) {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
132
|
+
}
|
|
133
|
+
|
|
116
134
|
protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {
|
|
117
135
|
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
118
136
|
const response = await this.fetchApi(url, init);
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|