@managespace/sdk 0.0.203 → 0.0.204

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.
@@ -0,0 +1,125 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace API
5
+ * ManageSpace API Documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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 { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProductTaxGroup
20
+ */
21
+ export interface ProductTaxGroup {
22
+ /**
23
+ * name of tax group
24
+ * @type {string}
25
+ * @memberof ProductTaxGroup
26
+ */
27
+ name: string;
28
+ /**
29
+ * Note for tax group
30
+ * @type {string}
31
+ * @memberof ProductTaxGroup
32
+ */
33
+ notes?: string;
34
+ /**
35
+ * Status of tax group
36
+ * @type {string}
37
+ * @memberof ProductTaxGroup
38
+ */
39
+ status?: string;
40
+ /**
41
+ * Who created the product tax group
42
+ * @type {string}
43
+ * @memberof ProductTaxGroup
44
+ */
45
+ createdBy?: string;
46
+ /**
47
+ * Who updated the product tax group
48
+ * @type {string}
49
+ * @memberof ProductTaxGroup
50
+ */
51
+ updatedBy?: string;
52
+ /**
53
+ * Product Tax Group ID
54
+ * @type {string}
55
+ * @memberof ProductTaxGroup
56
+ */
57
+ id: string;
58
+ /**
59
+ * The date the product tax group was created
60
+ * @type {string}
61
+ * @memberof ProductTaxGroup
62
+ */
63
+ createdAt: string;
64
+ /**
65
+ * The date the product tax group was updated
66
+ * @type {string}
67
+ * @memberof ProductTaxGroup
68
+ */
69
+ updatedAt: string;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the ProductTaxGroup interface.
74
+ */
75
+ export function instanceOfProductTaxGroup(value: object): value is ProductTaxGroup {
76
+ if (!('name' in value) || value['name'] === undefined) return false;
77
+ if (!('id' in value) || value['id'] === undefined) return false;
78
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
79
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
80
+ return true;
81
+ }
82
+
83
+ export function ProductTaxGroupFromJSON(json: any): ProductTaxGroup {
84
+ return ProductTaxGroupFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function ProductTaxGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTaxGroup {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'name': json['name'],
94
+ 'notes': json['notes'] == null ? undefined : json['notes'],
95
+ 'status': json['status'] == null ? undefined : json['status'],
96
+ 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
97
+ 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
98
+ 'id': json['id'],
99
+ 'createdAt': json['createdAt'],
100
+ 'updatedAt': json['updatedAt'],
101
+ };
102
+ }
103
+
104
+ export function ProductTaxGroupToJSON(json: any): ProductTaxGroup {
105
+ return ProductTaxGroupToJSONTyped(json, false);
106
+ }
107
+
108
+ export function ProductTaxGroupToJSONTyped(value?: ProductTaxGroup | null, ignoreDiscriminator: boolean = false): any {
109
+ if (value == null) {
110
+ return value;
111
+ }
112
+
113
+ return {
114
+
115
+ 'name': value['name'],
116
+ 'notes': value['notes'],
117
+ 'status': value['status'],
118
+ 'createdBy': value['createdBy'],
119
+ 'updatedBy': value['updatedBy'],
120
+ 'id': value['id'],
121
+ 'createdAt': value['createdAt'],
122
+ 'updatedAt': value['updatedAt'],
123
+ };
124
+ }
125
+
@@ -27,13 +27,6 @@ import {
27
27
  TaskInstanceToJSON,
28
28
  TaskInstanceToJSONTyped,
29
29
  } from './task-instance';
30
- import type { User } from './user';
31
- import {
32
- UserFromJSON,
33
- UserFromJSONTyped,
34
- UserToJSON,
35
- UserToJSONTyped,
36
- } from './user';
37
30
  import type { Org } from './org';
38
31
  import {
39
32
  OrgFromJSON,
@@ -97,18 +90,6 @@ export interface TaskDefinition {
97
90
  * @memberof TaskDefinition
98
91
  */
99
92
  description: string | null;
100
- /**
101
- *
102
- * @type {User}
103
- * @memberof TaskDefinition
104
- */
105
- assignedToUser?: User | null;
106
- /**
107
- * Who task definition is assigned to
108
- * @type {string}
109
- * @memberof TaskDefinition
110
- */
111
- assignedToUserId: string | null;
112
93
  /**
113
94
  * When the task definition is due by
114
95
  * @type {string}
@@ -144,7 +125,6 @@ export function instanceOfTaskDefinition(value: object): value is TaskDefinition
144
125
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
145
126
  if (!('name' in value) || value['name'] === undefined) return false;
146
127
  if (!('description' in value) || value['description'] === undefined) return false;
147
- if (!('assignedToUserId' in value) || value['assignedToUserId'] === undefined) return false;
148
128
  if (!('dueBy' in value) || value['dueBy'] === undefined) return false;
149
129
  if (!('checklistId' in value) || value['checklistId'] === undefined) return false;
150
130
  return true;
@@ -167,8 +147,6 @@ export function TaskDefinitionFromJSONTyped(json: any, ignoreDiscriminator: bool
167
147
  'siteId': json['siteId'],
168
148
  'name': json['name'],
169
149
  'description': json['description'],
170
- 'assignedToUser': json['assignedToUser'] == null ? undefined : UserFromJSON(json['assignedToUser']),
171
- 'assignedToUserId': json['assignedToUserId'],
172
150
  'dueBy': json['dueBy'],
173
151
  'checklist': json['checklist'] == null ? undefined : ChecklistFromJSON(json['checklist']),
174
152
  'checklistId': json['checklistId'],
@@ -194,8 +172,6 @@ export function TaskDefinitionToJSONTyped(value?: TaskDefinition | null, ignoreD
194
172
  'siteId': value['siteId'],
195
173
  'name': value['name'],
196
174
  'description': value['description'],
197
- 'assignedToUser': UserToJSON(value['assignedToUser']),
198
- 'assignedToUserId': value['assignedToUserId'],
199
175
  'dueBy': value['dueBy'],
200
176
  'checklist': ChecklistToJSON(value['checklist']),
201
177
  'checklistId': value['checklistId'],
@@ -27,13 +27,6 @@ import {
27
27
  TaskInstanceToJSON,
28
28
  TaskInstanceToJSONTyped,
29
29
  } from './task-instance';
30
- import type { TaskDefinition } from './task-definition';
31
- import {
32
- TaskDefinitionFromJSON,
33
- TaskDefinitionFromJSONTyped,
34
- TaskDefinitionToJSON,
35
- TaskDefinitionToJSONTyped,
36
- } from './task-definition';
37
30
  import type { UploadedDocument } from './uploaded-document';
38
31
  import {
39
32
  UploadedDocumentFromJSON,
@@ -69,6 +62,13 @@ import {
69
62
  ChecklistToJSON,
70
63
  ChecklistToJSONTyped,
71
64
  } from './checklist';
65
+ import type { Asset } from './asset';
66
+ import {
67
+ AssetFromJSON,
68
+ AssetFromJSONTyped,
69
+ AssetToJSON,
70
+ AssetToJSONTyped,
71
+ } from './asset';
72
72
  import type { Role3 } from './role3';
73
73
  import {
74
74
  Role3FromJSON,
@@ -76,6 +76,13 @@ import {
76
76
  Role3ToJSON,
77
77
  Role3ToJSONTyped,
78
78
  } from './role3';
79
+ import type { WorkflowInstance } from './workflow-instance';
80
+ import {
81
+ WorkflowInstanceFromJSON,
82
+ WorkflowInstanceFromJSONTyped,
83
+ WorkflowInstanceToJSON,
84
+ WorkflowInstanceToJSONTyped,
85
+ } from './workflow-instance';
79
86
  import type { Notification } from './notification';
80
87
  import {
81
88
  NotificationFromJSON,
@@ -249,16 +256,28 @@ export interface User {
249
256
  communications?: Array<Communication>;
250
257
  /**
251
258
  *
252
- * @type {Array<TaskDefinition>}
259
+ * @type {Array<UploadedDocument>}
253
260
  * @memberof User
254
261
  */
255
- taskDefinitions?: Array<TaskDefinition>;
262
+ uploadedDocuments?: Array<UploadedDocument>;
256
263
  /**
257
264
  *
258
- * @type {Array<UploadedDocument>}
265
+ * @type {Array<WorkflowInstance>}
266
+ * @memberof User
267
+ */
268
+ workflowInstances?: Array<WorkflowInstance>;
269
+ /**
270
+ *
271
+ * @type {Array<Asset>}
272
+ * @memberof User
273
+ */
274
+ createdAssets?: Array<Asset>;
275
+ /**
276
+ *
277
+ * @type {Array<Asset>}
259
278
  * @memberof User
260
279
  */
261
- uploadedDocument?: Array<UploadedDocument>;
280
+ updatedAssets?: Array<Asset>;
262
281
  }
263
282
 
264
283
  /**
@@ -315,8 +334,10 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
315
334
  'createdNotes': json['createdNotes'] == null ? undefined : ((json['createdNotes'] as Array<any>).map(NoteFromJSON)),
316
335
  'updatedNotes': json['updatedNotes'] == null ? undefined : ((json['updatedNotes'] as Array<any>).map(NoteFromJSON)),
317
336
  'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationFromJSON)),
318
- 'taskDefinitions': json['taskDefinitions'] == null ? undefined : ((json['taskDefinitions'] as Array<any>).map(TaskDefinitionFromJSON)),
319
- 'uploadedDocument': json['UploadedDocument'] == null ? undefined : ((json['UploadedDocument'] as Array<any>).map(UploadedDocumentFromJSON)),
337
+ 'uploadedDocuments': json['uploadedDocuments'] == null ? undefined : ((json['uploadedDocuments'] as Array<any>).map(UploadedDocumentFromJSON)),
338
+ 'workflowInstances': json['workflowInstances'] == null ? undefined : ((json['workflowInstances'] as Array<any>).map(WorkflowInstanceFromJSON)),
339
+ 'createdAssets': json['createdAssets'] == null ? undefined : ((json['createdAssets'] as Array<any>).map(AssetFromJSON)),
340
+ 'updatedAssets': json['updatedAssets'] == null ? undefined : ((json['updatedAssets'] as Array<any>).map(AssetFromJSON)),
320
341
  };
321
342
  }
322
343
 
@@ -356,8 +377,10 @@ export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolea
356
377
  'createdNotes': value['createdNotes'] == null ? undefined : ((value['createdNotes'] as Array<any>).map(NoteToJSON)),
357
378
  'updatedNotes': value['updatedNotes'] == null ? undefined : ((value['updatedNotes'] as Array<any>).map(NoteToJSON)),
358
379
  'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationToJSON)),
359
- 'taskDefinitions': value['taskDefinitions'] == null ? undefined : ((value['taskDefinitions'] as Array<any>).map(TaskDefinitionToJSON)),
360
- 'UploadedDocument': value['uploadedDocument'] == null ? undefined : ((value['uploadedDocument'] as Array<any>).map(UploadedDocumentToJSON)),
380
+ 'uploadedDocuments': value['uploadedDocuments'] == null ? undefined : ((value['uploadedDocuments'] as Array<any>).map(UploadedDocumentToJSON)),
381
+ 'workflowInstances': value['workflowInstances'] == null ? undefined : ((value['workflowInstances'] as Array<any>).map(WorkflowInstanceToJSON)),
382
+ 'createdAssets': value['createdAssets'] == null ? undefined : ((value['createdAssets'] as Array<any>).map(AssetToJSON)),
383
+ 'updatedAssets': value['updatedAssets'] == null ? undefined : ((value['updatedAssets'] as Array<any>).map(AssetToJSON)),
361
384
  };
362
385
  }
363
386
 
@@ -20,6 +20,13 @@ import {
20
20
  SiteToJSON,
21
21
  SiteToJSONTyped,
22
22
  } from './site';
23
+ import type { User } from './user';
24
+ import {
25
+ UserFromJSON,
26
+ UserFromJSONTyped,
27
+ UserToJSON,
28
+ UserToJSONTyped,
29
+ } from './user';
23
30
  import type { Org } from './org';
24
31
  import {
25
32
  OrgFromJSON,
@@ -171,6 +178,18 @@ export interface WorkflowInstance {
171
178
  * @memberof WorkflowInstance
172
179
  */
173
180
  createdAt: Date;
181
+ /**
182
+ *
183
+ * @type {User}
184
+ * @memberof WorkflowInstance
185
+ */
186
+ createdBy?: User;
187
+ /**
188
+ * Who created the checklist
189
+ * @type {string}
190
+ * @memberof WorkflowInstance
191
+ */
192
+ createdById: string;
174
193
  }
175
194
 
176
195
 
@@ -190,6 +209,7 @@ export function instanceOfWorkflowInstance(value: object): value is WorkflowInst
190
209
  if (!('status' in value) || value['status'] === undefined) return false;
191
210
  if (!('data' in value) || value['data'] === undefined) return false;
192
211
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
212
+ if (!('createdById' in value) || value['createdById'] === undefined) return false;
193
213
  return true;
194
214
  }
195
215
 
@@ -220,6 +240,8 @@ export function WorkflowInstanceFromJSONTyped(json: any, ignoreDiscriminator: bo
220
240
  'notifications': json['notifications'] == null ? undefined : ((json['notifications'] as Array<any>).map(NotificationFromJSON)),
221
241
  'calendars': json['calendars'] == null ? undefined : ((json['calendars'] as Array<any>).map(CalendarFromJSON)),
222
242
  'createdAt': (new Date(json['createdAt'])),
243
+ 'createdBy': json['createdBy'] == null ? undefined : UserFromJSON(json['createdBy']),
244
+ 'createdById': json['createdById'],
223
245
  };
224
246
  }
225
247
 
@@ -251,6 +273,8 @@ export function WorkflowInstanceToJSONTyped(value?: WorkflowInstance | null, ign
251
273
  'notifications': value['notifications'] == null ? undefined : ((value['notifications'] as Array<any>).map(NotificationToJSON)),
252
274
  'calendars': value['calendars'] == null ? undefined : ((value['calendars'] as Array<any>).map(CalendarToJSON)),
253
275
  'createdAt': ((value['createdAt']).toISOString()),
276
+ 'createdBy': UserToJSON(value['createdBy']),
277
+ 'createdById': value['createdById'],
254
278
  };
255
279
  }
256
280