@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.
Files changed (140) hide show
  1. package/apis/DataFactoryFileApi.ts +38 -35
  2. package/apis/JobApi.ts +76 -62
  3. package/apis/JobExecutionApi.ts +78 -28
  4. package/apis/TaskApi.ts +92 -78
  5. package/apis/TaskExecutionApi.ts +32 -32
  6. package/apis/VariableApi.ts +160 -19
  7. package/dist/apis/DataFactoryFileApi.d.ts +20 -0
  8. package/dist/apis/DataFactoryFileApi.js +122 -0
  9. package/dist/apis/DataFactoryFileApi.js.map +1 -0
  10. package/dist/apis/JobApi.d.ts +32 -0
  11. package/dist/apis/JobApi.js +191 -0
  12. package/dist/apis/JobApi.js.map +1 -0
  13. package/dist/apis/JobExecutionApi.d.ts +20 -0
  14. package/dist/apis/JobExecutionApi.js +107 -0
  15. package/dist/apis/JobExecutionApi.js.map +1 -0
  16. package/dist/apis/TaskApi.d.ts +36 -0
  17. package/dist/apis/TaskApi.js +196 -0
  18. package/dist/apis/TaskApi.js.map +1 -0
  19. package/dist/apis/TaskExecutionApi.d.ts +15 -0
  20. package/dist/apis/TaskExecutionApi.js +79 -0
  21. package/dist/apis/TaskExecutionApi.js.map +1 -0
  22. package/dist/apis/VariableApi.d.ts +26 -0
  23. package/dist/apis/VariableApi.js +140 -0
  24. package/dist/apis/VariableApi.js.map +1 -0
  25. package/dist/apis/index.d.ts +6 -0
  26. package/dist/apis/index.js +23 -0
  27. package/dist/apis/index.js.map +1 -0
  28. package/dist/index.d.ts +3 -0
  29. package/dist/index.js +20 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/models/CreateJobDto.d.ts +22 -0
  32. package/dist/models/CreateJobDto.js +63 -0
  33. package/dist/models/CreateJobDto.js.map +1 -0
  34. package/dist/models/CreateJobExecutionDto.d.ts +13 -0
  35. package/dist/models/CreateJobExecutionDto.js +44 -0
  36. package/dist/models/CreateJobExecutionDto.js.map +1 -0
  37. package/dist/models/CreateTaskDto.d.ts +12 -0
  38. package/dist/models/CreateTaskDto.js +48 -0
  39. package/dist/models/CreateTaskDto.js.map +1 -0
  40. package/dist/models/CreateVariableDto.d.ts +10 -0
  41. package/dist/models/CreateVariableDto.js +44 -0
  42. package/dist/models/CreateVariableDto.js.map +1 -0
  43. package/dist/models/FileControllerGetFiles200Response.d.ts +14 -0
  44. package/dist/models/FileControllerGetFiles200Response.js +43 -0
  45. package/dist/models/FileControllerGetFiles200Response.js.map +1 -0
  46. package/dist/models/FileDto.d.ts +12 -0
  47. package/dist/models/FileDto.js +50 -0
  48. package/dist/models/FileDto.js.map +1 -0
  49. package/dist/models/JobControllerList200Response.d.ts +14 -0
  50. package/dist/models/JobControllerList200Response.js +43 -0
  51. package/dist/models/JobControllerList200Response.js.map +1 -0
  52. package/dist/models/JobDto.d.ts +26 -0
  53. package/dist/models/JobDto.js +75 -0
  54. package/dist/models/JobDto.js.map +1 -0
  55. package/dist/models/JobDtoPeriodicityInner.d.ts +8 -0
  56. package/dist/models/JobDtoPeriodicityInner.js +37 -0
  57. package/dist/models/JobDtoPeriodicityInner.js.map +1 -0
  58. package/dist/models/JobDtoTasksInner.d.ts +14 -0
  59. package/dist/models/JobDtoTasksInner.js +45 -0
  60. package/dist/models/JobDtoTasksInner.js.map +1 -0
  61. package/dist/models/JobDtoTitleLocal.d.ts +8 -0
  62. package/dist/models/JobDtoTitleLocal.js +37 -0
  63. package/dist/models/JobDtoTitleLocal.js.map +1 -0
  64. package/dist/models/JobExecutionControllerGetOne400Response.d.ts +7 -0
  65. package/dist/models/JobExecutionControllerGetOne400Response.js +35 -0
  66. package/dist/models/JobExecutionControllerGetOne400Response.js.map +1 -0
  67. package/dist/models/JobExecutionControllerList200Response.d.ts +14 -0
  68. package/dist/models/JobExecutionControllerList200Response.js +43 -0
  69. package/dist/models/JobExecutionControllerList200Response.js.map +1 -0
  70. package/dist/models/JobExecutionDto.d.ts +23 -0
  71. package/dist/models/JobExecutionDto.js +68 -0
  72. package/dist/models/JobExecutionDto.js.map +1 -0
  73. package/dist/models/JobExecutionDtoInfo.d.ts +7 -0
  74. package/dist/models/JobExecutionDtoInfo.js +35 -0
  75. package/dist/models/JobExecutionDtoInfo.js.map +1 -0
  76. package/dist/models/PatchTaskExecutionDto.d.ts +11 -0
  77. package/dist/models/PatchTaskExecutionDto.js +41 -0
  78. package/dist/models/PatchTaskExecutionDto.js.map +1 -0
  79. package/dist/models/TaskControllerList200Response.d.ts +14 -0
  80. package/dist/models/TaskControllerList200Response.js +43 -0
  81. package/dist/models/TaskControllerList200Response.js.map +1 -0
  82. package/dist/models/TaskDto.d.ts +16 -0
  83. package/dist/models/TaskDto.js +60 -0
  84. package/dist/models/TaskDto.js.map +1 -0
  85. package/dist/models/TaskDtoInputKeysInner.d.ts +8 -0
  86. package/dist/models/TaskDtoInputKeysInner.js +37 -0
  87. package/dist/models/TaskDtoInputKeysInner.js.map +1 -0
  88. package/dist/models/TaskExecutionDto.d.ts +18 -0
  89. package/dist/models/TaskExecutionDto.js +56 -0
  90. package/dist/models/TaskExecutionDto.js.map +1 -0
  91. package/dist/models/UpdateJobDto.d.ts +23 -0
  92. package/dist/models/UpdateJobDto.js +66 -0
  93. package/dist/models/UpdateJobDto.js.map +1 -0
  94. package/dist/models/UpdateTaskDto.d.ts +13 -0
  95. package/dist/models/UpdateTaskDto.js +51 -0
  96. package/dist/models/UpdateTaskDto.js.map +1 -0
  97. package/dist/models/UpdateVariableDto.d.ts +11 -0
  98. package/dist/models/UpdateVariableDto.js +47 -0
  99. package/dist/models/UpdateVariableDto.js.map +1 -0
  100. package/dist/models/VariableControllerList200Response.d.ts +14 -0
  101. package/dist/models/VariableControllerList200Response.js +43 -0
  102. package/dist/models/VariableControllerList200Response.js.map +1 -0
  103. package/dist/models/VariableDto.d.ts +18 -0
  104. package/dist/models/VariableDto.js +59 -0
  105. package/dist/models/VariableDto.js.map +1 -0
  106. package/dist/models/index.d.ts +25 -0
  107. package/dist/models/index.js +42 -0
  108. package/dist/models/index.js.map +1 -0
  109. package/dist/runtime.d.ts +154 -0
  110. package/dist/runtime.js +306 -0
  111. package/dist/runtime.js.map +1 -0
  112. package/models/CreateJobDto.ts +169 -0
  113. package/models/CreateJobExecutionDto.ts +98 -0
  114. package/models/CreateTaskDto.ts +109 -0
  115. package/models/CreateVariableDto.ts +92 -0
  116. package/models/FileControllerGetFiles200Response.ts +98 -0
  117. package/models/FileDto.ts +111 -0
  118. package/models/JobControllerList200Response.ts +98 -0
  119. package/models/JobDto.ts +50 -86
  120. package/models/JobDtoPeriodicityInner.ts +1 -1
  121. package/models/JobDtoTasksInner.ts +9 -1
  122. package/models/JobDtoTitleLocal.ts +1 -1
  123. package/models/JobExecutionControllerGetOne400Response.ts +65 -0
  124. package/models/JobExecutionControllerList200Response.ts +98 -0
  125. package/models/JobExecutionDto.ts +35 -67
  126. package/models/JobExecutionDtoInfo.ts +65 -0
  127. package/models/PatchTaskExecutionDto.ts +83 -0
  128. package/models/TaskControllerList200Response.ts +98 -0
  129. package/models/TaskDto.ts +28 -28
  130. package/models/TaskDtoInputKeysInner.ts +1 -1
  131. package/models/TaskExecutionDto.ts +129 -0
  132. package/models/UpdateJobDto.ts +178 -0
  133. package/models/UpdateTaskDto.ts +118 -0
  134. package/models/UpdateVariableDto.ts +101 -0
  135. package/models/VariableControllerList200Response.ts +98 -0
  136. package/models/VariableDto.ts +33 -24
  137. package/models/index.ts +18 -11
  138. package/package.json +11 -5
  139. package/runtime.ts +19 -1
  140. 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
+
@@ -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.88.0
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
- object: string;
27
+ key: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof VariableDto
32
32
  */
33
- createdAt: string;
33
+ name: string;
34
34
  /**
35
35
  *
36
- * @type {string}
36
+ * @type {object}
37
37
  * @memberof VariableDto
38
38
  */
39
- updatedAt: string;
39
+ status?: object;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof VariableDto
44
44
  */
45
- id: string;
45
+ value: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
49
  * @memberof VariableDto
50
50
  */
51
- key: string;
51
+ id: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
55
55
  * @memberof VariableDto
56
56
  */
57
- name: string;
57
+ object: VariableDtoObjectEnum;
58
58
  /**
59
59
  *
60
60
  * @type {string}
61
61
  * @memberof VariableDto
62
62
  */
63
- status: string;
63
+ createdAt: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
67
67
  * @memberof VariableDto
68
68
  */
69
- value: string;
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 './ExecuteJob400Response';
4
- export * from './ExecuteJobDto';
5
- export * from './ExecuteJobDtoInfo';
6
- export * from './ExecuteJobDtoJob';
7
- export * from './FileCreatedDto';
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 './JobDtoPeriodicitiesInner';
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 './JobExecutionDtoEventsInner';
15
- export * from './JobExecutionDtoJob';
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 './TaskInstanceDto';
19
- export * from './TaskInstanceUpdateDto';
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.2.0-dev",
7
- "hash": "f1dcef9ef81081dcf76fabbc543e2a1cb9dd49cb42510a16cc582cf722a9ec27",
8
- "homepage": "https://api-next.dev.product-live.com/-json",
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.88.0
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