@mlhub/models-ts-sdk 0.0.7 → 0.1.0

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 (67) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/ArtifactsApi.js +20 -13
  3. package/dist/apis/IngestionsApi.js +17 -10
  4. package/dist/apis/ModelsApi.d.ts +17 -4
  5. package/dist/apis/ModelsApi.js +76 -26
  6. package/dist/apis/PlatformsApi.js +25 -18
  7. package/dist/apis/PublicationsApi.js +22 -15
  8. package/dist/apis/TasksApi.js +15 -8
  9. package/dist/apis/index.js +20 -9
  10. package/dist/index.js +17 -6
  11. package/dist/models/Accelerator.js +5 -5
  12. package/dist/models/Artifact.js +5 -5
  13. package/dist/models/ArtifactIngestion.js +7 -7
  14. package/dist/models/ArtifactIngestionStatus.js +5 -4
  15. package/dist/models/ArtifactPublication.js +6 -6
  16. package/dist/models/ArtifactPublicationStatus.js +5 -4
  17. package/dist/models/ArtifactType.js +5 -4
  18. package/dist/models/AssociateModelMetadata.js +3 -3
  19. package/dist/models/AssociateModelMetadataResponse.js +3 -3
  20. package/dist/models/BadRequestResponse.js +3 -3
  21. package/dist/models/CreateModelMetadataResponse.js +3 -3
  22. package/dist/models/DiscoverModelsByPlatformResponse.js +3 -3
  23. package/dist/models/DiscoverModelsResponse.js +3 -3
  24. package/dist/models/DiscoveryCriteria.js +5 -5
  25. package/dist/models/DiscoveryCriterion.d.ts +2 -2
  26. package/dist/models/DiscoveryCriterion.js +42 -42
  27. package/dist/models/GetModelArtifactResponse.js +5 -5
  28. package/dist/models/GetModelByPlatformResponse.js +3 -3
  29. package/dist/models/GetModelIngestionResponse.js +5 -5
  30. package/dist/models/GetModelPublicationResponse.js +5 -5
  31. package/dist/models/GetModelResponse.js +3 -3
  32. package/dist/models/HardwareRequirements.js +8 -8
  33. package/dist/models/IngestArtifactRequest.js +6 -6
  34. package/dist/models/IngestModelArtifactResponse.js +5 -5
  35. package/dist/models/ListModelArtifactResponse.js +3 -3
  36. package/dist/models/ListModelIngestionsResponse.js +3 -3
  37. package/dist/models/ListModelPublicationsForArtifactResponse.js +3 -3
  38. package/dist/models/ListModelPublicationsResponse.js +3 -3
  39. package/dist/models/ListModelsByPlatformResponse.js +3 -3
  40. package/dist/models/ListModelsResponse.js +3 -3
  41. package/dist/models/ListPlatformsResponse.js +3 -3
  42. package/dist/models/ListTasksResponse.js +3 -3
  43. package/dist/models/ModelArtifact.d.ts +1 -1
  44. package/dist/models/ModelArtifact.js +7 -7
  45. package/dist/models/ModelIO.js +5 -5
  46. package/dist/models/ModelMetadata.d.ts +2 -2
  47. package/dist/models/ModelMetadata.js +41 -41
  48. package/dist/models/NotFoundResponse.js +3 -3
  49. package/dist/models/Platform.d.ts +3 -2
  50. package/dist/models/Platform.js +8 -6
  51. package/dist/models/PlatformDetails.js +5 -5
  52. package/dist/models/PublishArtifactRequest.js +4 -4
  53. package/dist/models/PublishModelArtifactResponse.js +5 -5
  54. package/dist/models/ServerErrorResponse.js +3 -3
  55. package/dist/models/SystemRequirement.js +3 -3
  56. package/dist/models/Task.js +5 -4
  57. package/dist/models/index.js +56 -45
  58. package/dist/runtime.d.ts +18 -18
  59. package/dist/runtime.js +45 -35
  60. package/package.json +3 -3
  61. package/src/apis/ModelsApi.ts +56 -15
  62. package/src/apis/PlatformsApi.ts +1 -1
  63. package/src/models/DiscoveryCriterion.ts +2 -2
  64. package/src/models/ModelArtifact.ts +1 -1
  65. package/src/models/ModelMetadata.ts +2 -2
  66. package/src/models/Platform.ts +3 -2
  67. package/src/runtime.ts +1 -1
@@ -13,30 +13,36 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = Object.setPrototypeOf ||
17
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
19
22
  return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
20
25
  extendStatics(d, b);
21
26
  function __() { this.constructor = d; }
22
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23
28
  };
24
29
  })();
25
30
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
32
  return new (P || (P = Promise))(function (resolve, reject) {
27
33
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
34
  function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
36
  step((generator = generator.apply(thisArg, _arguments || [])).next());
31
37
  });
32
38
  };
33
39
  var __generator = (this && this.__generator) || function (thisArg, body) {
34
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
35
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
42
  function verb(n) { return function (v) { return step([n, v]); }; }
37
43
  function step(op) {
38
44
  if (f) throw new TypeError("Generator is already executing.");
39
- while (_) try {
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
40
46
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
41
47
  if (y = 0, t) op = [op[0] & 2, t.value];
42
48
  switch (op[0]) {
@@ -58,6 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
58
64
  }
59
65
  };
60
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.PublicationsApi = void 0;
61
68
  var runtime = require("../runtime");
62
69
  var models_1 = require("../models");
63
70
  /**
@@ -83,14 +90,14 @@ var PublicationsApi = /** @class */ (function (_super) {
83
90
  queryParameters = {};
84
91
  headerParameters = {};
85
92
  return [4 /*yield*/, this.request({
86
- path: "/models-api/publications/{publication_id}".replace("{" + "publication_id" + "}", encodeURIComponent(String(requestParameters.publicationId))),
93
+ path: "/models-api/publications/{publication_id}".replace("{".concat("publication_id", "}"), encodeURIComponent(String(requestParameters.publicationId))),
87
94
  method: 'GET',
88
95
  headers: headerParameters,
89
96
  query: queryParameters,
90
97
  }, initOverrides)];
91
98
  case 1:
92
99
  response = _a.sent();
93
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.GetModelPublicationResponseFromJSON(jsonValue); })];
100
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetModelPublicationResponseFromJSON)(jsonValue); })];
94
101
  }
95
102
  });
96
103
  });
@@ -131,7 +138,7 @@ var PublicationsApi = /** @class */ (function (_super) {
131
138
  }, initOverrides)];
132
139
  case 1:
133
140
  response = _a.sent();
134
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.ListModelPublicationsResponseFromJSON(jsonValue); })];
141
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ListModelPublicationsResponseFromJSON)(jsonValue); })];
135
142
  }
136
143
  });
137
144
  });
@@ -168,14 +175,14 @@ var PublicationsApi = /** @class */ (function (_super) {
168
175
  queryParameters = {};
169
176
  headerParameters = {};
170
177
  return [4 /*yield*/, this.request({
171
- path: "/models-api/artifacts/{artifact_id}/publications".replace("{" + "artifact_id" + "}", encodeURIComponent(String(requestParameters.artifactId))),
178
+ path: "/models-api/artifacts/{artifact_id}/publications".replace("{".concat("artifact_id", "}"), encodeURIComponent(String(requestParameters.artifactId))),
172
179
  method: 'GET',
173
180
  headers: headerParameters,
174
181
  query: queryParameters,
175
182
  }, initOverrides)];
176
183
  case 1:
177
184
  response = _a.sent();
178
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.ListModelPublicationsForArtifactResponseFromJSON(jsonValue); })];
185
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ListModelPublicationsForArtifactResponseFromJSON)(jsonValue); })];
179
186
  }
180
187
  });
181
188
  });
@@ -216,15 +223,15 @@ var PublicationsApi = /** @class */ (function (_super) {
216
223
  headerParameters = {};
217
224
  headerParameters['Content-Type'] = 'application/json';
218
225
  return [4 /*yield*/, this.request({
219
- path: "/models-api/artifacts/{artifact_id}/publications".replace("{" + "artifact_id" + "}", encodeURIComponent(String(requestParameters.artifactId))),
226
+ path: "/models-api/artifacts/{artifact_id}/publications".replace("{".concat("artifact_id", "}"), encodeURIComponent(String(requestParameters.artifactId))),
220
227
  method: 'POST',
221
228
  headers: headerParameters,
222
229
  query: queryParameters,
223
- body: models_1.PublishArtifactRequestToJSON(requestParameters.publishArtifactRequest),
230
+ body: (0, models_1.PublishArtifactRequestToJSON)(requestParameters.publishArtifactRequest),
224
231
  }, initOverrides)];
225
232
  case 1:
226
233
  response = _a.sent();
227
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.PublishModelArtifactResponseFromJSON(jsonValue); })];
234
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PublishModelArtifactResponseFromJSON)(jsonValue); })];
228
235
  }
229
236
  });
230
237
  });
@@ -13,30 +13,36 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = Object.setPrototypeOf ||
17
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
19
22
  return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
20
25
  extendStatics(d, b);
21
26
  function __() { this.constructor = d; }
22
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23
28
  };
24
29
  })();
25
30
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
32
  return new (P || (P = Promise))(function (resolve, reject) {
27
33
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
34
  function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
36
  step((generator = generator.apply(thisArg, _arguments || [])).next());
31
37
  });
32
38
  };
33
39
  var __generator = (this && this.__generator) || function (thisArg, body) {
34
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
35
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
42
  function verb(n) { return function (v) { return step([n, v]); }; }
37
43
  function step(op) {
38
44
  if (f) throw new TypeError("Generator is already executing.");
39
- while (_) try {
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
40
46
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
41
47
  if (y = 0, t) op = [op[0] & 2, t.value];
42
48
  switch (op[0]) {
@@ -58,6 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
58
64
  }
59
65
  };
60
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.TasksApi = void 0;
61
68
  var runtime = require("../runtime");
62
69
  var models_1 = require("../models");
63
70
  /**
@@ -87,7 +94,7 @@ var TasksApi = /** @class */ (function (_super) {
87
94
  }, initOverrides)];
88
95
  case 1:
89
96
  response = _a.sent();
90
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return models_1.ListTasksResponseFromJSON(jsonValue); })];
97
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ListTasksResponseFromJSON)(jsonValue); })];
91
98
  }
92
99
  });
93
100
  });
@@ -1,13 +1,24 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
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
+ };
5
16
  Object.defineProperty(exports, "__esModule", { value: true });
6
17
  /* tslint:disable */
7
18
  /* eslint-disable */
8
- __export(require("./ArtifactsApi"));
9
- __export(require("./IngestionsApi"));
10
- __export(require("./ModelsApi"));
11
- __export(require("./PlatformsApi"));
12
- __export(require("./PublicationsApi"));
13
- __export(require("./TasksApi"));
19
+ __exportStar(require("./ArtifactsApi"), exports);
20
+ __exportStar(require("./IngestionsApi"), exports);
21
+ __exportStar(require("./ModelsApi"), exports);
22
+ __exportStar(require("./PlatformsApi"), exports);
23
+ __exportStar(require("./PublicationsApi"), exports);
24
+ __exportStar(require("./TasksApi"), exports);
package/dist/index.js CHANGED
@@ -1,10 +1,21 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
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
+ };
5
16
  Object.defineProperty(exports, "__esModule", { value: true });
6
17
  /* tslint:disable */
7
18
  /* eslint-disable */
8
- __export(require("./runtime"));
9
- __export(require("./apis"));
10
- __export(require("./models"));
19
+ __exportStar(require("./runtime"), exports);
20
+ __exportStar(require("./apis"), exports);
21
+ __exportStar(require("./models"), exports);
@@ -13,24 +13,25 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AcceleratorFromJSON = AcceleratorFromJSON;
17
+ exports.AcceleratorFromJSONTyped = AcceleratorFromJSONTyped;
18
+ exports.AcceleratorToJSON = AcceleratorToJSON;
16
19
  var runtime_1 = require("../runtime");
17
20
  var _1 = require("./");
18
21
  function AcceleratorFromJSON(json) {
19
22
  return AcceleratorFromJSONTyped(json, false);
20
23
  }
21
- exports.AcceleratorFromJSON = AcceleratorFromJSON;
22
24
  function AcceleratorFromJSONTyped(json, ignoreDiscriminator) {
23
25
  if ((json === undefined) || (json === null)) {
24
26
  return json;
25
27
  }
26
28
  return {
27
29
  'accelerator_type': json['accelerator_type'],
28
- 'cores': !runtime_1.exists(json, 'cores') ? undefined : json['cores'],
29
- 'memory_gb': !runtime_1.exists(json, 'memory_gb') ? undefined : json['memory_gb'],
30
+ 'cores': !(0, runtime_1.exists)(json, 'cores') ? undefined : json['cores'],
31
+ 'memory_gb': !(0, runtime_1.exists)(json, 'memory_gb') ? undefined : json['memory_gb'],
30
32
  'system_requirements': (json['system_requirements'].map(_1.SystemRequirementFromJSON)),
31
33
  };
32
34
  }
33
- exports.AcceleratorFromJSONTyped = AcceleratorFromJSONTyped;
34
35
  function AcceleratorToJSON(value) {
35
36
  if (value === undefined) {
36
37
  return undefined;
@@ -45,4 +46,3 @@ function AcceleratorToJSON(value) {
45
46
  'system_requirements': (value.system_requirements.map(_1.SystemRequirementToJSON)),
46
47
  };
47
48
  }
48
- exports.AcceleratorToJSON = AcceleratorToJSON;
@@ -13,23 +13,24 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ArtifactFromJSON = ArtifactFromJSON;
17
+ exports.ArtifactFromJSONTyped = ArtifactFromJSONTyped;
18
+ exports.ArtifactToJSON = ArtifactToJSON;
16
19
  var _1 = require("./");
17
20
  function ArtifactFromJSON(json) {
18
21
  return ArtifactFromJSONTyped(json, false);
19
22
  }
20
- exports.ArtifactFromJSON = ArtifactFromJSON;
21
23
  function ArtifactFromJSONTyped(json, ignoreDiscriminator) {
22
24
  if ((json === undefined) || (json === null)) {
23
25
  return json;
24
26
  }
25
27
  return {
26
- 'artifact_type': _1.ArtifactTypeFromJSON(json['artifact_type']),
28
+ 'artifact_type': (0, _1.ArtifactTypeFromJSON)(json['artifact_type']),
27
29
  'created_at': json['created_at'],
28
30
  'id': json['id'],
29
31
  'last_modified': json['last_modified'],
30
32
  };
31
33
  }
32
- exports.ArtifactFromJSONTyped = ArtifactFromJSONTyped;
33
34
  function ArtifactToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -38,10 +39,9 @@ function ArtifactToJSON(value) {
38
39
  return null;
39
40
  }
40
41
  return {
41
- 'artifact_type': _1.ArtifactTypeToJSON(value.artifact_type),
42
+ 'artifact_type': (0, _1.ArtifactTypeToJSON)(value.artifact_type),
42
43
  'created_at': value.created_at,
43
44
  'id': value.id,
44
45
  'last_modified': value.last_modified,
45
46
  };
46
47
  }
47
- exports.ArtifactToJSON = ArtifactToJSON;
@@ -13,12 +13,14 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ArtifactIngestionFromJSON = ArtifactIngestionFromJSON;
17
+ exports.ArtifactIngestionFromJSONTyped = ArtifactIngestionFromJSONTyped;
18
+ exports.ArtifactIngestionToJSON = ArtifactIngestionToJSON;
16
19
  var runtime_1 = require("../runtime");
17
20
  var _1 = require("./");
18
21
  function ArtifactIngestionFromJSON(json) {
19
22
  return ArtifactIngestionFromJSONTyped(json, false);
20
23
  }
21
- exports.ArtifactIngestionFromJSON = ArtifactIngestionFromJSON;
22
24
  function ArtifactIngestionFromJSONTyped(json, ignoreDiscriminator) {
23
25
  if ((json === undefined) || (json === null)) {
24
26
  return json;
@@ -27,14 +29,13 @@ function ArtifactIngestionFromJSONTyped(json, ignoreDiscriminator) {
27
29
  'artifact_id': json['artifact_id'],
28
30
  'created_at': json['created_at'],
29
31
  'id': json['id'],
30
- 'last_message': !runtime_1.exists(json, 'last_message') ? undefined : json['last_message'],
32
+ 'last_message': !(0, runtime_1.exists)(json, 'last_message') ? undefined : json['last_message'],
31
33
  'last_modified': json['last_modified'],
32
34
  'platform': json['platform'],
33
- 'status': _1.ArtifactIngestionStatusFromJSON(json['status']),
34
- 'webhook_url': !runtime_1.exists(json, 'webhook_url') ? undefined : json['webhook_url'],
35
+ 'status': (0, _1.ArtifactIngestionStatusFromJSON)(json['status']),
36
+ 'webhook_url': !(0, runtime_1.exists)(json, 'webhook_url') ? undefined : json['webhook_url'],
35
37
  };
36
38
  }
37
- exports.ArtifactIngestionFromJSONTyped = ArtifactIngestionFromJSONTyped;
38
39
  function ArtifactIngestionToJSON(value) {
39
40
  if (value === undefined) {
40
41
  return undefined;
@@ -49,8 +50,7 @@ function ArtifactIngestionToJSON(value) {
49
50
  'last_message': value.last_message,
50
51
  'last_modified': value.last_modified,
51
52
  'platform': value.platform,
52
- 'status': _1.ArtifactIngestionStatusToJSON(value.status),
53
+ 'status': (0, _1.ArtifactIngestionStatusToJSON)(value.status),
53
54
  'webhook_url': value.webhook_url,
54
55
  };
55
56
  }
56
- exports.ArtifactIngestionToJSON = ArtifactIngestionToJSON;
@@ -13,6 +13,10 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ArtifactIngestionStatus = void 0;
17
+ exports.ArtifactIngestionStatusFromJSON = ArtifactIngestionStatusFromJSON;
18
+ exports.ArtifactIngestionStatusFromJSONTyped = ArtifactIngestionStatusFromJSONTyped;
19
+ exports.ArtifactIngestionStatusToJSON = ArtifactIngestionStatusToJSON;
16
20
  /**
17
21
  *
18
22
  * @export
@@ -29,16 +33,13 @@ var ArtifactIngestionStatus;
29
33
  ArtifactIngestionStatus["Archived"] = "Archived";
30
34
  ArtifactIngestionStatus["Finished"] = "Finished";
31
35
  ArtifactIngestionStatus["Failed"] = "Failed";
32
- })(ArtifactIngestionStatus = exports.ArtifactIngestionStatus || (exports.ArtifactIngestionStatus = {}));
36
+ })(ArtifactIngestionStatus || (exports.ArtifactIngestionStatus = ArtifactIngestionStatus = {}));
33
37
  function ArtifactIngestionStatusFromJSON(json) {
34
38
  return ArtifactIngestionStatusFromJSONTyped(json, false);
35
39
  }
36
- exports.ArtifactIngestionStatusFromJSON = ArtifactIngestionStatusFromJSON;
37
40
  function ArtifactIngestionStatusFromJSONTyped(json, ignoreDiscriminator) {
38
41
  return json;
39
42
  }
40
- exports.ArtifactIngestionStatusFromJSONTyped = ArtifactIngestionStatusFromJSONTyped;
41
43
  function ArtifactIngestionStatusToJSON(value) {
42
44
  return value;
43
45
  }
44
- exports.ArtifactIngestionStatusToJSON = ArtifactIngestionStatusToJSON;
@@ -13,12 +13,14 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ArtifactPublicationFromJSON = ArtifactPublicationFromJSON;
17
+ exports.ArtifactPublicationFromJSONTyped = ArtifactPublicationFromJSONTyped;
18
+ exports.ArtifactPublicationToJSON = ArtifactPublicationToJSON;
16
19
  var runtime_1 = require("../runtime");
17
20
  var _1 = require("./");
18
21
  function ArtifactPublicationFromJSON(json) {
19
22
  return ArtifactPublicationFromJSONTyped(json, false);
20
23
  }
21
- exports.ArtifactPublicationFromJSON = ArtifactPublicationFromJSON;
22
24
  function ArtifactPublicationFromJSONTyped(json, ignoreDiscriminator) {
23
25
  if ((json === undefined) || (json === null)) {
24
26
  return json;
@@ -28,13 +30,12 @@ function ArtifactPublicationFromJSONTyped(json, ignoreDiscriminator) {
28
30
  'attempts': json['attempts'],
29
31
  'created_at': json['created_at'],
30
32
  'id': json['id'],
31
- 'last_message': !runtime_1.exists(json, 'last_message') ? undefined : json['last_message'],
33
+ 'last_message': !(0, runtime_1.exists)(json, 'last_message') ? undefined : json['last_message'],
32
34
  'last_modified': json['last_modified'],
33
- 'status': _1.ArtifactPublicationStatusFromJSON(json['status']),
35
+ 'status': (0, _1.ArtifactPublicationStatusFromJSON)(json['status']),
34
36
  'target_platform': json['target_platform'],
35
37
  };
36
38
  }
37
- exports.ArtifactPublicationFromJSONTyped = ArtifactPublicationFromJSONTyped;
38
39
  function ArtifactPublicationToJSON(value) {
39
40
  if (value === undefined) {
40
41
  return undefined;
@@ -49,8 +50,7 @@ function ArtifactPublicationToJSON(value) {
49
50
  'id': value.id,
50
51
  'last_message': value.last_message,
51
52
  'last_modified': value.last_modified,
52
- 'status': _1.ArtifactPublicationStatusToJSON(value.status),
53
+ 'status': (0, _1.ArtifactPublicationStatusToJSON)(value.status),
53
54
  'target_platform': value.target_platform,
54
55
  };
55
56
  }
56
- exports.ArtifactPublicationToJSON = ArtifactPublicationToJSON;
@@ -13,6 +13,10 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ArtifactPublicationStatus = void 0;
17
+ exports.ArtifactPublicationStatusFromJSON = ArtifactPublicationStatusFromJSON;
18
+ exports.ArtifactPublicationStatusFromJSONTyped = ArtifactPublicationStatusFromJSONTyped;
19
+ exports.ArtifactPublicationStatusToJSON = ArtifactPublicationStatusToJSON;
16
20
  /**
17
21
  *
18
22
  * @export
@@ -30,16 +34,13 @@ var ArtifactPublicationStatus;
30
34
  ArtifactPublicationStatus["PublishedArtifact"] = "PublishedArtifact";
31
35
  ArtifactPublicationStatus["Finished"] = "Finished";
32
36
  ArtifactPublicationStatus["Failed"] = "Failed";
33
- })(ArtifactPublicationStatus = exports.ArtifactPublicationStatus || (exports.ArtifactPublicationStatus = {}));
37
+ })(ArtifactPublicationStatus || (exports.ArtifactPublicationStatus = ArtifactPublicationStatus = {}));
34
38
  function ArtifactPublicationStatusFromJSON(json) {
35
39
  return ArtifactPublicationStatusFromJSONTyped(json, false);
36
40
  }
37
- exports.ArtifactPublicationStatusFromJSON = ArtifactPublicationStatusFromJSON;
38
41
  function ArtifactPublicationStatusFromJSONTyped(json, ignoreDiscriminator) {
39
42
  return json;
40
43
  }
41
- exports.ArtifactPublicationStatusFromJSONTyped = ArtifactPublicationStatusFromJSONTyped;
42
44
  function ArtifactPublicationStatusToJSON(value) {
43
45
  return value;
44
46
  }
45
- exports.ArtifactPublicationStatusToJSON = ArtifactPublicationStatusToJSON;
@@ -13,6 +13,10 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ArtifactType = void 0;
17
+ exports.ArtifactTypeFromJSON = ArtifactTypeFromJSON;
18
+ exports.ArtifactTypeFromJSONTyped = ArtifactTypeFromJSONTyped;
19
+ exports.ArtifactTypeToJSON = ArtifactTypeToJSON;
16
20
  /**
17
21
  *
18
22
  * @export
@@ -22,16 +26,13 @@ var ArtifactType;
22
26
  (function (ArtifactType) {
23
27
  ArtifactType["Model"] = "Model";
24
28
  ArtifactType["Dataset"] = "Dataset";
25
- })(ArtifactType = exports.ArtifactType || (exports.ArtifactType = {}));
29
+ })(ArtifactType || (exports.ArtifactType = ArtifactType = {}));
26
30
  function ArtifactTypeFromJSON(json) {
27
31
  return ArtifactTypeFromJSONTyped(json, false);
28
32
  }
29
- exports.ArtifactTypeFromJSON = ArtifactTypeFromJSON;
30
33
  function ArtifactTypeFromJSONTyped(json, ignoreDiscriminator) {
31
34
  return json;
32
35
  }
33
- exports.ArtifactTypeFromJSONTyped = ArtifactTypeFromJSONTyped;
34
36
  function ArtifactTypeToJSON(value) {
35
37
  return value;
36
38
  }
37
- exports.ArtifactTypeToJSON = ArtifactTypeToJSON;
@@ -13,10 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AssociateModelMetadataFromJSON = AssociateModelMetadataFromJSON;
17
+ exports.AssociateModelMetadataFromJSONTyped = AssociateModelMetadataFromJSONTyped;
18
+ exports.AssociateModelMetadataToJSON = AssociateModelMetadataToJSON;
16
19
  function AssociateModelMetadataFromJSON(json) {
17
20
  return AssociateModelMetadataFromJSONTyped(json, false);
18
21
  }
19
- exports.AssociateModelMetadataFromJSON = AssociateModelMetadataFromJSON;
20
22
  function AssociateModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
21
23
  if ((json === undefined) || (json === null)) {
22
24
  return json;
@@ -26,7 +28,6 @@ function AssociateModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
26
28
  'name': json['name'],
27
29
  };
28
30
  }
29
- exports.AssociateModelMetadataFromJSONTyped = AssociateModelMetadataFromJSONTyped;
30
31
  function AssociateModelMetadataToJSON(value) {
31
32
  if (value === undefined) {
32
33
  return undefined;
@@ -39,4 +40,3 @@ function AssociateModelMetadataToJSON(value) {
39
40
  'name': value.name,
40
41
  };
41
42
  }
42
- exports.AssociateModelMetadataToJSON = AssociateModelMetadataToJSON;
@@ -13,10 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AssociateModelMetadataResponseFromJSON = AssociateModelMetadataResponseFromJSON;
17
+ exports.AssociateModelMetadataResponseFromJSONTyped = AssociateModelMetadataResponseFromJSONTyped;
18
+ exports.AssociateModelMetadataResponseToJSON = AssociateModelMetadataResponseToJSON;
16
19
  function AssociateModelMetadataResponseFromJSON(json) {
17
20
  return AssociateModelMetadataResponseFromJSONTyped(json, false);
18
21
  }
19
- exports.AssociateModelMetadataResponseFromJSON = AssociateModelMetadataResponseFromJSON;
20
22
  function AssociateModelMetadataResponseFromJSONTyped(json, ignoreDiscriminator) {
21
23
  if ((json === undefined) || (json === null)) {
22
24
  return json;
@@ -29,7 +31,6 @@ function AssociateModelMetadataResponseFromJSONTyped(json, ignoreDiscriminator)
29
31
  'version': json['version'],
30
32
  };
31
33
  }
32
- exports.AssociateModelMetadataResponseFromJSONTyped = AssociateModelMetadataResponseFromJSONTyped;
33
34
  function AssociateModelMetadataResponseToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -45,4 +46,3 @@ function AssociateModelMetadataResponseToJSON(value) {
45
46
  'version': value.version,
46
47
  };
47
48
  }
48
- exports.AssociateModelMetadataResponseToJSON = AssociateModelMetadataResponseToJSON;
@@ -13,10 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BadRequestResponseFromJSON = BadRequestResponseFromJSON;
17
+ exports.BadRequestResponseFromJSONTyped = BadRequestResponseFromJSONTyped;
18
+ exports.BadRequestResponseToJSON = BadRequestResponseToJSON;
16
19
  function BadRequestResponseFromJSON(json) {
17
20
  return BadRequestResponseFromJSONTyped(json, false);
18
21
  }
19
- exports.BadRequestResponseFromJSON = BadRequestResponseFromJSON;
20
22
  function BadRequestResponseFromJSONTyped(json, ignoreDiscriminator) {
21
23
  if ((json === undefined) || (json === null)) {
22
24
  return json;
@@ -29,7 +31,6 @@ function BadRequestResponseFromJSONTyped(json, ignoreDiscriminator) {
29
31
  'version': json['version'],
30
32
  };
31
33
  }
32
- exports.BadRequestResponseFromJSONTyped = BadRequestResponseFromJSONTyped;
33
34
  function BadRequestResponseToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -45,4 +46,3 @@ function BadRequestResponseToJSON(value) {
45
46
  'version': value.version,
46
47
  };
47
48
  }
48
- exports.BadRequestResponseToJSON = BadRequestResponseToJSON;
@@ -13,10 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateModelMetadataResponseFromJSON = CreateModelMetadataResponseFromJSON;
17
+ exports.CreateModelMetadataResponseFromJSONTyped = CreateModelMetadataResponseFromJSONTyped;
18
+ exports.CreateModelMetadataResponseToJSON = CreateModelMetadataResponseToJSON;
16
19
  function CreateModelMetadataResponseFromJSON(json) {
17
20
  return CreateModelMetadataResponseFromJSONTyped(json, false);
18
21
  }
19
- exports.CreateModelMetadataResponseFromJSON = CreateModelMetadataResponseFromJSON;
20
22
  function CreateModelMetadataResponseFromJSONTyped(json, ignoreDiscriminator) {
21
23
  if ((json === undefined) || (json === null)) {
22
24
  return json;
@@ -29,7 +31,6 @@ function CreateModelMetadataResponseFromJSONTyped(json, ignoreDiscriminator) {
29
31
  'version': json['version'],
30
32
  };
31
33
  }
32
- exports.CreateModelMetadataResponseFromJSONTyped = CreateModelMetadataResponseFromJSONTyped;
33
34
  function CreateModelMetadataResponseToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -45,4 +46,3 @@ function CreateModelMetadataResponseToJSON(value) {
45
46
  'version': value.version,
46
47
  };
47
48
  }
48
- exports.CreateModelMetadataResponseToJSON = CreateModelMetadataResponseToJSON;
@@ -13,10 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DiscoverModelsByPlatformResponseFromJSON = DiscoverModelsByPlatformResponseFromJSON;
17
+ exports.DiscoverModelsByPlatformResponseFromJSONTyped = DiscoverModelsByPlatformResponseFromJSONTyped;
18
+ exports.DiscoverModelsByPlatformResponseToJSON = DiscoverModelsByPlatformResponseToJSON;
16
19
  function DiscoverModelsByPlatformResponseFromJSON(json) {
17
20
  return DiscoverModelsByPlatformResponseFromJSONTyped(json, false);
18
21
  }
19
- exports.DiscoverModelsByPlatformResponseFromJSON = DiscoverModelsByPlatformResponseFromJSON;
20
22
  function DiscoverModelsByPlatformResponseFromJSONTyped(json, ignoreDiscriminator) {
21
23
  if ((json === undefined) || (json === null)) {
22
24
  return json;
@@ -29,7 +31,6 @@ function DiscoverModelsByPlatformResponseFromJSONTyped(json, ignoreDiscriminator
29
31
  'version': json['version'],
30
32
  };
31
33
  }
32
- exports.DiscoverModelsByPlatformResponseFromJSONTyped = DiscoverModelsByPlatformResponseFromJSONTyped;
33
34
  function DiscoverModelsByPlatformResponseToJSON(value) {
34
35
  if (value === undefined) {
35
36
  return undefined;
@@ -45,4 +46,3 @@ function DiscoverModelsByPlatformResponseToJSON(value) {
45
46
  'version': value.version,
46
47
  };
47
48
  }
48
- exports.DiscoverModelsByPlatformResponseToJSON = DiscoverModelsByPlatformResponseToJSON;