@openshift-migration-advisor/planner-sdk 0.11.0-92891f5da8a7 → 0.11.0-ca05f2d33650

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.
@@ -20,6 +20,13 @@ import {
20
20
  PartnerRequestStatusToJSON,
21
21
  PartnerRequestStatusToJSONTyped,
22
22
  } from './PartnerRequestStatus.js';
23
+ import type { PartnerSummary } from './PartnerSummary.js';
24
+ import {
25
+ PartnerSummaryFromJSON,
26
+ PartnerSummaryFromJSONTyped,
27
+ PartnerSummaryToJSON,
28
+ PartnerSummaryToJSONTyped,
29
+ } from './PartnerSummary.js';
23
30
 
24
31
  /**
25
32
  *
@@ -41,10 +48,10 @@ export interface PartnerRequest {
41
48
  username: string;
42
49
  /**
43
50
  *
44
- * @type {string}
51
+ * @type {PartnerSummary}
45
52
  * @memberof PartnerRequest
46
53
  */
47
- partnerId: string;
54
+ partner: PartnerSummary;
48
55
  /**
49
56
  *
50
57
  * @type {PartnerRequestStatus}
@@ -99,6 +106,12 @@ export interface PartnerRequest {
99
106
  * @memberof PartnerRequest
100
107
  */
101
108
  terminatedAt?: Date | null;
109
+ /**
110
+ *
111
+ * @type {Date}
112
+ * @memberof PartnerRequest
113
+ */
114
+ createdAt: Date;
102
115
  }
103
116
 
104
117
 
@@ -109,13 +122,14 @@ export interface PartnerRequest {
109
122
  export function instanceOfPartnerRequest(value: object): value is PartnerRequest {
110
123
  if (!('id' in value) || value['id'] === undefined) return false;
111
124
  if (!('username' in value) || value['username'] === undefined) return false;
112
- if (!('partnerId' in value) || value['partnerId'] === undefined) return false;
125
+ if (!('partner' in value) || value['partner'] === undefined) return false;
113
126
  if (!('requestStatus' in value) || value['requestStatus'] === undefined) return false;
114
127
  if (!('name' in value) || value['name'] === undefined) return false;
115
128
  if (!('contactName' in value) || value['contactName'] === undefined) return false;
116
129
  if (!('contactPhone' in value) || value['contactPhone'] === undefined) return false;
117
130
  if (!('email' in value) || value['email'] === undefined) return false;
118
131
  if (!('location' in value) || value['location'] === undefined) return false;
132
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
119
133
  return true;
120
134
  }
121
135
 
@@ -131,7 +145,7 @@ export function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
131
145
 
132
146
  'id': json['id'],
133
147
  'username': json['username'],
134
- 'partnerId': json['partnerId'],
148
+ 'partner': PartnerSummaryFromJSON(json['partner']),
135
149
  'requestStatus': PartnerRequestStatusFromJSON(json['requestStatus']),
136
150
  'name': json['name'],
137
151
  'contactName': json['contactName'],
@@ -141,6 +155,7 @@ export function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
141
155
  'reason': json['reason'] == null ? undefined : json['reason'],
142
156
  'acceptedAt': json['acceptedAt'] == null ? undefined : (new Date(json['acceptedAt'])),
143
157
  'terminatedAt': json['terminatedAt'] == null ? undefined : (new Date(json['terminatedAt'])),
158
+ 'createdAt': (new Date(json['createdAt'])),
144
159
  };
145
160
  }
146
161
 
@@ -157,7 +172,7 @@ export function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreD
157
172
 
158
173
  'id': value['id'],
159
174
  'username': value['username'],
160
- 'partnerId': value['partnerId'],
175
+ 'partner': PartnerSummaryToJSON(value['partner']),
161
176
  'requestStatus': PartnerRequestStatusToJSON(value['requestStatus']),
162
177
  'name': value['name'],
163
178
  'contactName': value['contactName'],
@@ -167,6 +182,7 @@ export function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreD
167
182
  'reason': value['reason'],
168
183
  'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
169
184
  'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
185
+ 'createdAt': value['createdAt'].toISOString(),
170
186
  };
171
187
  }
172
188
 
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PartnerSummary
20
+ */
21
+ export interface PartnerSummary {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PartnerSummary
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PartnerSummary
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PartnerSummary
38
+ */
39
+ company: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PartnerSummary
44
+ */
45
+ icon: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the PartnerSummary interface.
50
+ */
51
+ export function instanceOfPartnerSummary(value: object): value is PartnerSummary {
52
+ if (!('id' in value) || value['id'] === undefined) return false;
53
+ if (!('name' in value) || value['name'] === undefined) return false;
54
+ if (!('company' in value) || value['company'] === undefined) return false;
55
+ if (!('icon' in value) || value['icon'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function PartnerSummaryFromJSON(json: any): PartnerSummary {
60
+ return PartnerSummaryFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function PartnerSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerSummary {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'id': json['id'],
70
+ 'name': json['name'],
71
+ 'company': json['company'],
72
+ 'icon': json['icon'],
73
+ };
74
+ }
75
+
76
+ export function PartnerSummaryToJSON(json: any): PartnerSummary {
77
+ return PartnerSummaryToJSONTyped(json, false);
78
+ }
79
+
80
+ export function PartnerSummaryToJSONTyped(value?: PartnerSummary | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'id': value['id'],
88
+ 'name': value['name'],
89
+ 'company': value['company'],
90
+ 'icon': value['icon'],
91
+ };
92
+ }
93
+
@@ -49,6 +49,7 @@ export * from './PartnerRequest.js';
49
49
  export * from './PartnerRequestCreate.js';
50
50
  export * from './PartnerRequestStatus.js';
51
51
  export * from './PartnerRequestUpdate.js';
52
+ export * from './PartnerSummary.js';
52
53
  export * from './PresignedUrl.js';
53
54
  export * from './SchemaEstimationResult.js';
54
55
  export * from './SizingOverCommitRatio.js';