@cirrobio/api-client 0.0.11-alpha → 0.0.13-alpha

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 (41) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/README.md +1 -1
  3. package/dist/apis/BillingApi.d.ts +3 -3
  4. package/dist/apis/BillingApi.js +6 -6
  5. package/dist/apis/DashboardsApi.d.ts +6 -6
  6. package/dist/apis/DashboardsApi.js +6 -6
  7. package/dist/apis/MetadataApi.d.ts +12 -1
  8. package/dist/apis/MetadataApi.js +53 -0
  9. package/dist/apis/NotebooksApi.d.ts +3 -3
  10. package/dist/apis/NotebooksApi.js +1 -7
  11. package/dist/apis/SystemApi.d.ts +8 -0
  12. package/dist/apis/SystemApi.js +41 -0
  13. package/dist/models/BillingAccountRequest.d.ts +70 -0
  14. package/dist/models/BillingAccountRequest.js +71 -0
  15. package/dist/models/Contact.d.ts +4 -4
  16. package/dist/models/Contact.js +5 -8
  17. package/dist/models/Dashboard.d.ts +8 -0
  18. package/dist/models/Dashboard.js +3 -0
  19. package/dist/models/DashboardRequest.d.ts +53 -0
  20. package/dist/models/DashboardRequest.js +59 -0
  21. package/dist/models/FormSchema.d.ts +1 -1
  22. package/dist/models/NotebookInstanceStatusResponse.d.ts +31 -0
  23. package/dist/models/NotebookInstanceStatusResponse.js +50 -0
  24. package/dist/models/Sample.d.ts +6 -0
  25. package/dist/models/Sample.js +3 -0
  26. package/dist/models/index.d.ts +3 -1
  27. package/dist/models/index.js +3 -1
  28. package/package.json +1 -1
  29. package/src/apis/BillingApi.ts +11 -8
  30. package/src/apis/DashboardsApi.ts +14 -14
  31. package/src/apis/MetadataApi.ts +45 -0
  32. package/src/apis/NotebooksApi.ts +6 -7
  33. package/src/apis/SystemApi.ts +26 -0
  34. package/src/models/BillingAccountRequest.ts +139 -0
  35. package/src/models/Contact.ts +8 -12
  36. package/src/models/Dashboard.ts +9 -0
  37. package/src/models/DashboardRequest.ts +93 -0
  38. package/src/models/FormSchema.ts +1 -1
  39. package/src/models/NotebookInstanceStatusResponse.ts +66 -0
  40. package/src/models/Sample.ts +9 -0
  41. package/src/models/index.ts +3 -1
@@ -17,16 +17,17 @@ src/apis/UsersApi.ts
17
17
  src/apis/index.ts
18
18
  src/index.ts
19
19
  src/models/BillingAccount.ts
20
+ src/models/BillingAccountRequest.ts
20
21
  src/models/BillingMethod.ts
21
22
  src/models/BudgetPeriod.ts
22
23
  src/models/CloudAccount.ts
23
24
  src/models/Contact.ts
24
- src/models/CreateDashboardRequest.ts
25
25
  src/models/CreateNotebookInstanceRequest.ts
26
26
  src/models/CreateResponse.ts
27
27
  src/models/CustomPipelineSettings.ts
28
28
  src/models/CustomerType.ts
29
29
  src/models/Dashboard.ts
30
+ src/models/DashboardRequest.ts
30
31
  src/models/Dataset.ts
31
32
  src/models/DatasetDetail.ts
32
33
  src/models/Executor.ts
@@ -35,6 +36,7 @@ src/models/GetExecutionLogsResponse.ts
35
36
  src/models/LogEntry.ts
36
37
  src/models/MetricRecord.ts
37
38
  src/models/NotebookInstance.ts
39
+ src/models/NotebookInstanceStatusResponse.ts
38
40
  src/models/OpenNotebookInstanceResponse.ts
39
41
  src/models/PaginatedResponseDatasetListDto.ts
40
42
  src/models/Process.ts
package/README.md CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.0.11-alpha --save
39
+ npm install @cirrobio/api-client@0.0.13-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,9 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BillingAccount, CreateResponse } from '../models/index';
13
+ import type { BillingAccount, BillingAccountRequest, CreateResponse } from '../models/index';
14
14
  export interface CreateBillingAccountRequest {
15
- billingAccount: BillingAccount;
15
+ billingAccountRequest: BillingAccountRequest;
16
16
  }
17
17
  export interface DeleteBillingAccountRequest {
18
18
  billingAccountId: string;
@@ -22,7 +22,7 @@ export interface GetBillingAccountsRequest {
22
22
  }
23
23
  export interface UpdateBillingAccountRequest {
24
24
  billingAccountId: string;
25
- billingAccount: BillingAccount;
25
+ billingAccountRequest: BillingAccountRequest;
26
26
  }
27
27
  /**
28
28
  *
@@ -85,8 +85,8 @@ var BillingApi = /** @class */ (function (_super) {
85
85
  return __generator(this, function (_a) {
86
86
  switch (_a.label) {
87
87
  case 0:
88
- if (requestParameters.billingAccount === null || requestParameters.billingAccount === undefined) {
89
- throw new runtime.RequiredError('billingAccount', 'Required parameter requestParameters.billingAccount was null or undefined when calling createBillingAccount.');
88
+ if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
89
+ throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling createBillingAccount.');
90
90
  }
91
91
  queryParameters = {};
92
92
  headerParameters = {};
@@ -105,7 +105,7 @@ var BillingApi = /** @class */ (function (_super) {
105
105
  method: 'POST',
106
106
  headers: headerParameters,
107
107
  query: queryParameters,
108
- body: (0, index_1.BillingAccountToJSON)(requestParameters.billingAccount),
108
+ body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
109
109
  }, initOverrides)];
110
110
  case 3:
111
111
  response = _a.sent();
@@ -304,8 +304,8 @@ var BillingApi = /** @class */ (function (_super) {
304
304
  if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
305
305
  throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling updateBillingAccount.');
306
306
  }
307
- if (requestParameters.billingAccount === null || requestParameters.billingAccount === undefined) {
308
- throw new runtime.RequiredError('billingAccount', 'Required parameter requestParameters.billingAccount was null or undefined when calling updateBillingAccount.');
307
+ if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
308
+ throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling updateBillingAccount.');
309
309
  }
310
310
  queryParameters = {};
311
311
  headerParameters = {};
@@ -324,7 +324,7 @@ var BillingApi = /** @class */ (function (_super) {
324
324
  method: 'PUT',
325
325
  headers: headerParameters,
326
326
  query: queryParameters,
327
- body: (0, index_1.BillingAccountToJSON)(requestParameters.billingAccount),
327
+ body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
328
328
  }, initOverrides)];
329
329
  case 3:
330
330
  response = _a.sent();
@@ -10,10 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateDashboardRequest, CreateResponse, Dashboard } from '../models/index';
14
- export interface CreateDashboardOperationRequest {
13
+ import type { CreateResponse, Dashboard, DashboardRequest } from '../models/index';
14
+ export interface CreateDashboardRequest {
15
15
  projectId: string;
16
- createDashboardRequest: CreateDashboardRequest;
16
+ dashboardRequest: DashboardRequest;
17
17
  }
18
18
  export interface DeleteDashboardRequest {
19
19
  projectId: string;
@@ -29,7 +29,7 @@ export interface GetDashboardsRequest {
29
29
  export interface UpdateDashboardRequest {
30
30
  projectId: string;
31
31
  dashboardId: string;
32
- createDashboardRequest: CreateDashboardRequest;
32
+ dashboardRequest: DashboardRequest;
33
33
  }
34
34
  /**
35
35
  *
@@ -39,12 +39,12 @@ export declare class DashboardsApi extends runtime.BaseAPI {
39
39
  * Creates a dashboard
40
40
  * Create dashboard
41
41
  */
42
- createDashboardRaw(requestParameters: CreateDashboardOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
42
+ createDashboardRaw(requestParameters: CreateDashboardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
43
43
  /**
44
44
  * Creates a dashboard
45
45
  * Create dashboard
46
46
  */
47
- createDashboard(requestParameters: CreateDashboardOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
47
+ createDashboard(requestParameters: CreateDashboardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
48
48
  /**
49
49
  * Deletes a dashboard
50
50
  * Delete dashboard
@@ -88,8 +88,8 @@ var DashboardsApi = /** @class */ (function (_super) {
88
88
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
89
89
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling createDashboard.');
90
90
  }
91
- if (requestParameters.createDashboardRequest === null || requestParameters.createDashboardRequest === undefined) {
92
- throw new runtime.RequiredError('createDashboardRequest', 'Required parameter requestParameters.createDashboardRequest was null or undefined when calling createDashboard.');
91
+ if (requestParameters.dashboardRequest === null || requestParameters.dashboardRequest === undefined) {
92
+ throw new runtime.RequiredError('dashboardRequest', 'Required parameter requestParameters.dashboardRequest was null or undefined when calling createDashboard.');
93
93
  }
94
94
  queryParameters = {};
95
95
  headerParameters = {};
@@ -108,7 +108,7 @@ var DashboardsApi = /** @class */ (function (_super) {
108
108
  method: 'POST',
109
109
  headers: headerParameters,
110
110
  query: queryParameters,
111
- body: (0, index_1.CreateDashboardRequestToJSON)(requestParameters.createDashboardRequest),
111
+ body: (0, index_1.DashboardRequestToJSON)(requestParameters.dashboardRequest),
112
112
  }, initOverrides)];
113
113
  case 3:
114
114
  response = _a.sent();
@@ -322,8 +322,8 @@ var DashboardsApi = /** @class */ (function (_super) {
322
322
  if (requestParameters.dashboardId === null || requestParameters.dashboardId === undefined) {
323
323
  throw new runtime.RequiredError('dashboardId', 'Required parameter requestParameters.dashboardId was null or undefined when calling updateDashboard.');
324
324
  }
325
- if (requestParameters.createDashboardRequest === null || requestParameters.createDashboardRequest === undefined) {
326
- throw new runtime.RequiredError('createDashboardRequest', 'Required parameter requestParameters.createDashboardRequest was null or undefined when calling updateDashboard.');
325
+ if (requestParameters.dashboardRequest === null || requestParameters.dashboardRequest === undefined) {
326
+ throw new runtime.RequiredError('dashboardRequest', 'Required parameter requestParameters.dashboardRequest was null or undefined when calling updateDashboard.');
327
327
  }
328
328
  queryParameters = {};
329
329
  headerParameters = {};
@@ -342,7 +342,7 @@ var DashboardsApi = /** @class */ (function (_super) {
342
342
  method: 'PUT',
343
343
  headers: headerParameters,
344
344
  query: queryParameters,
345
- body: (0, index_1.CreateDashboardRequestToJSON)(requestParameters.createDashboardRequest),
345
+ body: (0, index_1.DashboardRequestToJSON)(requestParameters.dashboardRequest),
346
346
  }, initOverrides)];
347
347
  case 3:
348
348
  response = _a.sent();
@@ -10,10 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Sample } from '../models/index';
13
+ import type { FormSchema, Sample } from '../models/index';
14
14
  export interface GetProjectSamplesRequest {
15
15
  projectId: string;
16
16
  }
17
+ export interface GetProjectSchemaRequest {
18
+ projectId: string;
19
+ }
17
20
  export interface UpdateSampleRequest {
18
21
  projectId: string;
19
22
  sample: Sample;
@@ -30,6 +33,14 @@ export declare class MetadataApi extends runtime.BaseAPI {
30
33
  * Get project samples
31
34
  */
32
35
  getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Sample>>;
36
+ /**
37
+ * Get project metadata schema
38
+ */
39
+ getProjectSchemaRaw(requestParameters: GetProjectSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormSchema>>;
40
+ /**
41
+ * Get project metadata schema
42
+ */
43
+ getProjectSchema(requestParameters: GetProjectSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormSchema>;
33
44
  /**
34
45
  * Update sample
35
46
  */
@@ -128,6 +128,59 @@ var MetadataApi = /** @class */ (function (_super) {
128
128
  });
129
129
  });
130
130
  };
131
+ /**
132
+ * Get project metadata schema
133
+ */
134
+ MetadataApi.prototype.getProjectSchemaRaw = function (requestParameters, initOverrides) {
135
+ return __awaiter(this, void 0, void 0, function () {
136
+ var queryParameters, headerParameters, token, tokenString, response;
137
+ return __generator(this, function (_a) {
138
+ switch (_a.label) {
139
+ case 0:
140
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
141
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectSchema.');
142
+ }
143
+ queryParameters = {};
144
+ headerParameters = {};
145
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
146
+ token = this.configuration.accessToken;
147
+ return [4 /*yield*/, token("accessToken", [])];
148
+ case 1:
149
+ tokenString = _a.sent();
150
+ if (tokenString) {
151
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
152
+ }
153
+ _a.label = 2;
154
+ case 2: return [4 /*yield*/, this.request({
155
+ path: "/projects/{projectId}/schema".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
156
+ method: 'GET',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ }, initOverrides)];
160
+ case 3:
161
+ response = _a.sent();
162
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FormSchemaFromJSON)(jsonValue); })];
163
+ }
164
+ });
165
+ });
166
+ };
167
+ /**
168
+ * Get project metadata schema
169
+ */
170
+ MetadataApi.prototype.getProjectSchema = function (requestParameters, initOverrides) {
171
+ return __awaiter(this, void 0, void 0, function () {
172
+ var response;
173
+ return __generator(this, function (_a) {
174
+ switch (_a.label) {
175
+ case 0: return [4 /*yield*/, this.getProjectSchemaRaw(requestParameters, initOverrides)];
176
+ case 1:
177
+ response = _a.sent();
178
+ return [4 /*yield*/, response.value()];
179
+ case 2: return [2 /*return*/, _a.sent()];
180
+ }
181
+ });
182
+ });
183
+ };
131
184
  /**
132
185
  * Update sample
133
186
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateNotebookInstanceRequest, CreateResponse, NotebookInstance, OpenNotebookInstanceResponse } from '../models/index';
13
+ import type { CreateNotebookInstanceRequest, CreateResponse, NotebookInstance, NotebookInstanceStatusResponse, OpenNotebookInstanceResponse } from '../models/index';
14
14
  export interface CreateNotebookInstanceOperationRequest {
15
15
  projectId: string;
16
16
  createNotebookInstanceRequest: CreateNotebookInstanceRequest;
@@ -58,10 +58,10 @@ export declare class NotebooksApi extends runtime.BaseAPI {
58
58
  generateNotebookInstanceUrl(requestParameters: GenerateNotebookInstanceUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OpenNotebookInstanceResponse>;
59
59
  /**
60
60
  */
61
- getNotebookInstanceStatusRaw(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
61
+ getNotebookInstanceStatusRaw(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotebookInstanceStatusResponse>>;
62
62
  /**
63
63
  */
64
- getNotebookInstanceStatus(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
64
+ getNotebookInstanceStatus(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotebookInstanceStatusResponse>;
65
65
  /**
66
66
  */
67
67
  getNotebookInstancesRaw(requestParameters: GetNotebookInstancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<NotebookInstance>>>;
@@ -270,13 +270,7 @@ var NotebooksApi = /** @class */ (function (_super) {
270
270
  }, initOverrides)];
271
271
  case 3:
272
272
  response = _a.sent();
273
- if (this.isJsonMime(response.headers.get('content-type'))) {
274
- return [2 /*return*/, new runtime.JSONApiResponse(response)];
275
- }
276
- else {
277
- return [2 /*return*/, new runtime.TextApiResponse(response)];
278
- }
279
- return [2 /*return*/];
273
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.NotebookInstanceStatusResponseFromJSON)(jsonValue); })];
280
274
  }
281
275
  });
282
276
  });
@@ -33,4 +33,12 @@ export declare class SystemApi extends runtime.BaseAPI {
33
33
  * Get system info
34
34
  */
35
35
  info(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse>;
36
+ /**
37
+ * Get system info
38
+ */
39
+ info1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>>;
40
+ /**
41
+ * Get system info
42
+ */
43
+ info1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse>;
36
44
  }
@@ -168,6 +168,47 @@ var SystemApi = /** @class */ (function (_super) {
168
168
  });
169
169
  });
170
170
  };
171
+ /**
172
+ * Get system info
173
+ */
174
+ SystemApi.prototype.info1Raw = function (initOverrides) {
175
+ return __awaiter(this, void 0, void 0, function () {
176
+ var queryParameters, headerParameters, response;
177
+ return __generator(this, function (_a) {
178
+ switch (_a.label) {
179
+ case 0:
180
+ queryParameters = {};
181
+ headerParameters = {};
182
+ return [4 /*yield*/, this.request({
183
+ path: "/info/system",
184
+ method: 'GET',
185
+ headers: headerParameters,
186
+ query: queryParameters,
187
+ }, initOverrides)];
188
+ case 1:
189
+ response = _a.sent();
190
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SystemInfoResponseFromJSON)(jsonValue); })];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ * Get system info
197
+ */
198
+ SystemApi.prototype.info1 = function (initOverrides) {
199
+ return __awaiter(this, void 0, void 0, function () {
200
+ var response;
201
+ return __generator(this, function (_a) {
202
+ switch (_a.label) {
203
+ case 0: return [4 /*yield*/, this.info1Raw(initOverrides)];
204
+ case 1:
205
+ response = _a.sent();
206
+ return [4 /*yield*/, response.value()];
207
+ case 2: return [2 /*return*/, _a.sent()];
208
+ }
209
+ });
210
+ });
211
+ };
171
212
  return SystemApi;
172
213
  }(runtime.BaseAPI));
173
214
  exports.SystemApi = SystemApi;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { BillingMethod } from './BillingMethod';
13
+ import type { Contact } from './Contact';
14
+ import type { CustomerType } from './CustomerType';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface BillingAccountRequest
19
+ */
20
+ export interface BillingAccountRequest {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof BillingAccountRequest
25
+ */
26
+ name: string;
27
+ /**
28
+ *
29
+ * @type {Array<Contact>}
30
+ * @memberof BillingAccountRequest
31
+ */
32
+ contacts: Array<Contact>;
33
+ /**
34
+ *
35
+ * @type {CustomerType}
36
+ * @memberof BillingAccountRequest
37
+ */
38
+ customerType: CustomerType;
39
+ /**
40
+ *
41
+ * @type {BillingMethod}
42
+ * @memberof BillingAccountRequest
43
+ */
44
+ billingMethod: BillingMethod;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof BillingAccountRequest
49
+ */
50
+ primaryBudgetNumber: string;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof BillingAccountRequest
55
+ */
56
+ owner: string;
57
+ /**
58
+ *
59
+ * @type {Array<string>}
60
+ * @memberof BillingAccountRequest
61
+ */
62
+ sharedWith: Array<string>;
63
+ }
64
+ /**
65
+ * Check if a given object implements the BillingAccountRequest interface.
66
+ */
67
+ export declare function instanceOfBillingAccountRequest(value: object): boolean;
68
+ export declare function BillingAccountRequestFromJSON(json: any): BillingAccountRequest;
69
+ export declare function BillingAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingAccountRequest;
70
+ export declare function BillingAccountRequestToJSON(value?: BillingAccountRequest | null): any;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
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.BillingAccountRequestToJSON = exports.BillingAccountRequestFromJSONTyped = exports.BillingAccountRequestFromJSON = exports.instanceOfBillingAccountRequest = void 0;
17
+ var BillingMethod_1 = require("./BillingMethod");
18
+ var Contact_1 = require("./Contact");
19
+ var CustomerType_1 = require("./CustomerType");
20
+ /**
21
+ * Check if a given object implements the BillingAccountRequest interface.
22
+ */
23
+ function instanceOfBillingAccountRequest(value) {
24
+ var isInstance = true;
25
+ isInstance = isInstance && "name" in value;
26
+ isInstance = isInstance && "contacts" in value;
27
+ isInstance = isInstance && "customerType" in value;
28
+ isInstance = isInstance && "billingMethod" in value;
29
+ isInstance = isInstance && "primaryBudgetNumber" in value;
30
+ isInstance = isInstance && "owner" in value;
31
+ isInstance = isInstance && "sharedWith" in value;
32
+ return isInstance;
33
+ }
34
+ exports.instanceOfBillingAccountRequest = instanceOfBillingAccountRequest;
35
+ function BillingAccountRequestFromJSON(json) {
36
+ return BillingAccountRequestFromJSONTyped(json, false);
37
+ }
38
+ exports.BillingAccountRequestFromJSON = BillingAccountRequestFromJSON;
39
+ function BillingAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
40
+ if ((json === undefined) || (json === null)) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'contacts': (json['contacts'].map(Contact_1.ContactFromJSON)),
46
+ 'customerType': (0, CustomerType_1.CustomerTypeFromJSON)(json['customerType']),
47
+ 'billingMethod': (0, BillingMethod_1.BillingMethodFromJSON)(json['billingMethod']),
48
+ 'primaryBudgetNumber': json['primaryBudgetNumber'],
49
+ 'owner': json['owner'],
50
+ 'sharedWith': json['sharedWith'],
51
+ };
52
+ }
53
+ exports.BillingAccountRequestFromJSONTyped = BillingAccountRequestFromJSONTyped;
54
+ function BillingAccountRequestToJSON(value) {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+ 'name': value.name,
63
+ 'contacts': (value.contacts.map(Contact_1.ContactToJSON)),
64
+ 'customerType': (0, CustomerType_1.CustomerTypeToJSON)(value.customerType),
65
+ 'billingMethod': (0, BillingMethod_1.BillingMethodToJSON)(value.billingMethod),
66
+ 'primaryBudgetNumber': value.primaryBudgetNumber,
67
+ 'owner': value.owner,
68
+ 'sharedWith': value.sharedWith,
69
+ };
70
+ }
71
+ exports.BillingAccountRequestToJSON = BillingAccountRequestToJSON;
@@ -20,25 +20,25 @@ export interface Contact {
20
20
  * @type {string}
21
21
  * @memberof Contact
22
22
  */
23
- name: string;
23
+ name?: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof Contact
28
28
  */
29
- organization: string;
29
+ organization?: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof Contact
34
34
  */
35
- email: string;
35
+ email?: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
39
  * @memberof Contact
40
40
  */
41
- phone: string;
41
+ phone?: string;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the Contact interface.
@@ -14,15 +14,12 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ContactToJSON = exports.ContactFromJSONTyped = exports.ContactFromJSON = exports.instanceOfContact = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  /**
18
19
  * Check if a given object implements the Contact interface.
19
20
  */
20
21
  function instanceOfContact(value) {
21
22
  var isInstance = true;
22
- isInstance = isInstance && "name" in value;
23
- isInstance = isInstance && "organization" in value;
24
- isInstance = isInstance && "email" in value;
25
- isInstance = isInstance && "phone" in value;
26
23
  return isInstance;
27
24
  }
28
25
  exports.instanceOfContact = instanceOfContact;
@@ -35,10 +32,10 @@ function ContactFromJSONTyped(json, ignoreDiscriminator) {
35
32
  return json;
36
33
  }
37
34
  return {
38
- 'name': json['name'],
39
- 'organization': json['organization'],
40
- 'email': json['email'],
41
- 'phone': json['phone'],
35
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
36
+ 'organization': !(0, runtime_1.exists)(json, 'organization') ? undefined : json['organization'],
37
+ 'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
38
+ 'phone': !(0, runtime_1.exists)(json, 'phone') ? undefined : json['phone'],
42
39
  };
43
40
  }
44
41
  exports.ContactFromJSONTyped = ContactFromJSONTyped;
@@ -41,6 +41,14 @@ export interface Dashboard {
41
41
  dashboardData: {
42
42
  [key: string]: any;
43
43
  };
44
+ /**
45
+ *
46
+ * @type {{ [key: string]: any; }}
47
+ * @memberof Dashboard
48
+ */
49
+ info: {
50
+ [key: string]: any;
51
+ };
44
52
  /**
45
53
  *
46
54
  * @type {string}
@@ -23,6 +23,7 @@ function instanceOfDashboard(value) {
23
23
  isInstance = isInstance && "name" in value;
24
24
  isInstance = isInstance && "description" in value;
25
25
  isInstance = isInstance && "dashboardData" in value;
26
+ isInstance = isInstance && "info" in value;
26
27
  isInstance = isInstance && "createdBy" in value;
27
28
  isInstance = isInstance && "createdAt" in value;
28
29
  isInstance = isInstance && "updatedAt" in value;
@@ -42,6 +43,7 @@ function DashboardFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'name': json['name'],
43
44
  'description': json['description'],
44
45
  'dashboardData': json['dashboardData'],
46
+ 'info': json['info'],
45
47
  'createdBy': json['createdBy'],
46
48
  'createdAt': (new Date(json['createdAt'])),
47
49
  'updatedAt': (new Date(json['updatedAt'])),
@@ -60,6 +62,7 @@ function DashboardToJSON(value) {
60
62
  'name': value.name,
61
63
  'description': value.description,
62
64
  'dashboardData': value.dashboardData,
65
+ 'info': value.info,
63
66
  'createdBy': value.createdBy,
64
67
  'createdAt': (value.createdAt.toISOString()),
65
68
  'updatedAt': (value.updatedAt.toISOString()),