@managespace/sdk 0.1.160 → 0.1.162

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 (39) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +12 -0
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +10 -0
  4. package/dist/generated/apis/default-api.d.ts +75 -1
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +244 -0
  7. package/dist/generated/models/accrual-report-filters.d.ts +39 -0
  8. package/dist/generated/models/accrual-report-filters.d.ts.map +1 -0
  9. package/dist/generated/models/accrual-report-filters.js +55 -0
  10. package/dist/generated/models/create-site-custom.d.ts +12 -0
  11. package/dist/generated/models/create-site-custom.d.ts.map +1 -1
  12. package/dist/generated/models/create-site-custom.js +4 -0
  13. package/dist/generated/models/get-journal-entries200-response.d.ts +41 -0
  14. package/dist/generated/models/get-journal-entries200-response.d.ts.map +1 -0
  15. package/dist/generated/models/get-journal-entries200-response.js +55 -0
  16. package/dist/generated/models/index.d.ts +4 -0
  17. package/dist/generated/models/index.d.ts.map +1 -1
  18. package/dist/generated/models/index.js +4 -0
  19. package/dist/generated/models/journal-entry-entries.d.ts +63 -0
  20. package/dist/generated/models/journal-entry-entries.d.ts.map +1 -0
  21. package/dist/generated/models/journal-entry-entries.js +71 -0
  22. package/dist/generated/models/journal-entry.d.ts +106 -0
  23. package/dist/generated/models/journal-entry.d.ts.map +1 -0
  24. package/dist/generated/models/journal-entry.js +100 -0
  25. package/dist/generated/models/site.d.ts +12 -0
  26. package/dist/generated/models/site.d.ts.map +1 -1
  27. package/dist/generated/models/site.js +8 -0
  28. package/package.deploy.json +1 -1
  29. package/package.json +1 -1
  30. package/src/extensibility/functions/project/billing.ts +16 -0
  31. package/src/generated/.openapi-generator/FILES +4 -0
  32. package/src/generated/apis/default-api.ts +372 -0
  33. package/src/generated/models/accrual-report-filters.ts +76 -0
  34. package/src/generated/models/create-site-custom.ts +16 -0
  35. package/src/generated/models/get-journal-entries200-response.ts +90 -0
  36. package/src/generated/models/index.ts +4 -0
  37. package/src/generated/models/journal-entry-entries.ts +112 -0
  38. package/src/generated/models/journal-entry.ts +183 -0
  39. package/src/generated/models/site.ts +18 -0
@@ -2,6 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  export * from './accounts-receivable-report-filters';
5
+ export * from './accrual-report-filters';
5
6
  export * from './address';
6
7
  export * from './asset';
7
8
  export * from './asset-category';
@@ -129,6 +130,7 @@ export * from './get-documents200-response';
129
130
  export * from './get-intent';
130
131
  export * from './get-invoices200-response';
131
132
  export * from './get-invoices-query';
133
+ export * from './get-journal-entries200-response';
132
134
  export * from './get-notes200-response';
133
135
  export * from './get-notifications200-response';
134
136
  export * from './get-orders200-response';
@@ -161,6 +163,8 @@ export * from './insured-roll-report-filters';
161
163
  export * from './intent';
162
164
  export * from './invoice';
163
165
  export * from './invoice-contact';
166
+ export * from './journal-entry';
167
+ export * from './journal-entry-entries';
164
168
  export * from './lease-status';
165
169
  export * from './line-item';
166
170
  export * from './link-plugin';
@@ -0,0 +1,112 @@
1
+ // @ts-nocheck
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace API
6
+ * ManageSpace API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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
+
16
+ import { mapValues } from '../runtime';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface JournalEntryEntries
21
+ */
22
+ export interface JournalEntryEntries {
23
+ /**
24
+ * Journal Entry Line Number
25
+ * @type {string}
26
+ * @memberof JournalEntryEntries
27
+ */
28
+ lineNo: string;
29
+ /**
30
+ * Account number
31
+ * @type {string}
32
+ * @memberof JournalEntryEntries
33
+ */
34
+ account: string;
35
+ /**
36
+ * Debit Account id associated with this Journal Entry
37
+ * @type {string}
38
+ * @memberof JournalEntryEntries
39
+ */
40
+ debit: string;
41
+ /**
42
+ * Credit Account id associated with this Journal Entry
43
+ * @type {string}
44
+ * @memberof JournalEntryEntries
45
+ */
46
+ credit: string;
47
+ /**
48
+ * Journal Entry description
49
+ * @type {string}
50
+ * @memberof JournalEntryEntries
51
+ */
52
+ description: string;
53
+ /**
54
+ * Customer ID associated with journal entry
55
+ * @type {string}
56
+ * @memberof JournalEntryEntries
57
+ */
58
+ customerId: string;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the JournalEntryEntries interface.
63
+ */
64
+ export function instanceOfJournalEntryEntries(value: object): value is JournalEntryEntries {
65
+ if (!('lineNo' in value) || value['lineNo'] === undefined) return false;
66
+ if (!('account' in value) || value['account'] === undefined) return false;
67
+ if (!('debit' in value) || value['debit'] === undefined) return false;
68
+ if (!('credit' in value) || value['credit'] === undefined) return false;
69
+ if (!('description' in value) || value['description'] === undefined) return false;
70
+ if (!('customerId' in value) || value['customerId'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function JournalEntryEntriesFromJSON(json: any): JournalEntryEntries {
75
+ return JournalEntryEntriesFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function JournalEntryEntriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): JournalEntryEntries {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'lineNo': json['lineNo'],
85
+ 'account': json['account'],
86
+ 'debit': json['debit'],
87
+ 'credit': json['credit'],
88
+ 'description': json['description'],
89
+ 'customerId': json['customerId'],
90
+ };
91
+ }
92
+
93
+ export function JournalEntryEntriesToJSON(json: any): JournalEntryEntries {
94
+ return JournalEntryEntriesToJSONTyped(json, false);
95
+ }
96
+
97
+ export function JournalEntryEntriesToJSONTyped(value?: JournalEntryEntries | null, ignoreDiscriminator: boolean = false): any {
98
+ if (value == null) {
99
+ return value;
100
+ }
101
+
102
+ return {
103
+
104
+ 'lineNo': value['lineNo'],
105
+ 'account': value['account'],
106
+ 'debit': value['debit'],
107
+ 'credit': value['credit'],
108
+ 'description': value['description'],
109
+ 'customerId': value['customerId'],
110
+ };
111
+ }
112
+
@@ -0,0 +1,183 @@
1
+ // @ts-nocheck
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace API
6
+ * ManageSpace API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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
+
16
+ import { mapValues } from '../runtime';
17
+ import type { JournalEntryEntries } from './journal-entry-entries';
18
+ import {
19
+ JournalEntryEntriesFromJSON,
20
+ JournalEntryEntriesFromJSONTyped,
21
+ JournalEntryEntriesToJSON,
22
+ JournalEntryEntriesToJSONTyped,
23
+ } from './journal-entry-entries';
24
+
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface JournalEntry
29
+ */
30
+ export interface JournalEntry {
31
+ /**
32
+ * Journal Entry ID
33
+ * @type {string}
34
+ * @memberof JournalEntry
35
+ */
36
+ id: string;
37
+ /**
38
+ * Journal Entry Date
39
+ * @type {string}
40
+ * @memberof JournalEntry
41
+ */
42
+ date: string;
43
+ /**
44
+ * Customer ID associated with journal entry
45
+ * @type {string}
46
+ * @memberof JournalEntry
47
+ */
48
+ customerId: string;
49
+ /**
50
+ * Customer name associated with journal entry
51
+ * @type {string}
52
+ * @memberof JournalEntry
53
+ */
54
+ customerName: string;
55
+ /**
56
+ * Journal Entry description
57
+ * @type {string}
58
+ * @memberof JournalEntry
59
+ */
60
+ description: string;
61
+ /**
62
+ * Journal entries
63
+ * @type {Array<JournalEntryEntries>}
64
+ * @memberof JournalEntry
65
+ */
66
+ entries: Array<JournalEntryEntries>;
67
+ /**
68
+ * Custom fields on the invoice
69
+ * @type {object}
70
+ * @memberof JournalEntry
71
+ */
72
+ customFields: object;
73
+ /**
74
+ * The date the journal entry was created
75
+ * @type {string}
76
+ * @memberof JournalEntry
77
+ */
78
+ createdAt: string;
79
+ /**
80
+ * The date the journal entry was updated
81
+ * @type {string}
82
+ * @memberof JournalEntry
83
+ */
84
+ updatedAt: string;
85
+ /**
86
+ * Who created the journal entry
87
+ * @type {string}
88
+ * @memberof JournalEntry
89
+ */
90
+ createdBy: string;
91
+ /**
92
+ * Who updated the journal entry
93
+ * @type {string}
94
+ * @memberof JournalEntry
95
+ */
96
+ updatedBy: string;
97
+ /**
98
+ * Currency code of the transaction
99
+ * @type {string}
100
+ * @memberof JournalEntry
101
+ */
102
+ transactionCurrency: string;
103
+ /**
104
+ * Transaction Conversion Rate
105
+ * @type {number}
106
+ * @memberof JournalEntry
107
+ */
108
+ transactionConversionRate: number;
109
+ }
110
+
111
+ /**
112
+ * Check if a given object implements the JournalEntry interface.
113
+ */
114
+ export function instanceOfJournalEntry(value: object): value is JournalEntry {
115
+ if (!('id' in value) || value['id'] === undefined) return false;
116
+ if (!('date' in value) || value['date'] === undefined) return false;
117
+ if (!('customerId' in value) || value['customerId'] === undefined) return false;
118
+ if (!('customerName' in value) || value['customerName'] === undefined) return false;
119
+ if (!('description' in value) || value['description'] === undefined) return false;
120
+ if (!('entries' in value) || value['entries'] === undefined) return false;
121
+ if (!('customFields' in value) || value['customFields'] === undefined) return false;
122
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
123
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
124
+ if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
125
+ if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
126
+ if (!('transactionCurrency' in value) || value['transactionCurrency'] === undefined) return false;
127
+ if (!('transactionConversionRate' in value) || value['transactionConversionRate'] === undefined) return false;
128
+ return true;
129
+ }
130
+
131
+ export function JournalEntryFromJSON(json: any): JournalEntry {
132
+ return JournalEntryFromJSONTyped(json, false);
133
+ }
134
+
135
+ export function JournalEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): JournalEntry {
136
+ if (json == null) {
137
+ return json;
138
+ }
139
+ return {
140
+
141
+ 'id': json['id'],
142
+ 'date': json['date'],
143
+ 'customerId': json['customerId'],
144
+ 'customerName': json['customerName'],
145
+ 'description': json['description'],
146
+ 'entries': ((json['entries'] as Array<any>).map(JournalEntryEntriesFromJSON)),
147
+ 'customFields': json['customFields'],
148
+ 'createdAt': json['createdAt'],
149
+ 'updatedAt': json['updatedAt'],
150
+ 'createdBy': json['createdBy'],
151
+ 'updatedBy': json['updatedBy'],
152
+ 'transactionCurrency': json['transactionCurrency'],
153
+ 'transactionConversionRate': json['transactionConversionRate'],
154
+ };
155
+ }
156
+
157
+ export function JournalEntryToJSON(json: any): JournalEntry {
158
+ return JournalEntryToJSONTyped(json, false);
159
+ }
160
+
161
+ export function JournalEntryToJSONTyped(value?: JournalEntry | null, ignoreDiscriminator: boolean = false): any {
162
+ if (value == null) {
163
+ return value;
164
+ }
165
+
166
+ return {
167
+
168
+ 'id': value['id'],
169
+ 'date': value['date'],
170
+ 'customerId': value['customerId'],
171
+ 'customerName': value['customerName'],
172
+ 'description': value['description'],
173
+ 'entries': ((value['entries'] as Array<any>).map(JournalEntryEntriesToJSON)),
174
+ 'customFields': value['customFields'],
175
+ 'createdAt': value['createdAt'],
176
+ 'updatedAt': value['updatedAt'],
177
+ 'createdBy': value['createdBy'],
178
+ 'updatedBy': value['updatedBy'],
179
+ 'transactionCurrency': value['transactionCurrency'],
180
+ 'transactionConversionRate': value['transactionConversionRate'],
181
+ };
182
+ }
183
+
@@ -297,6 +297,18 @@ export interface Site {
297
297
  * @memberof Site
298
298
  */
299
299
  siteRoles?: Array<SiteRole>;
300
+ /**
301
+ * Site code
302
+ * @type {string}
303
+ * @memberof Site
304
+ */
305
+ siteCode: string | null;
306
+ /**
307
+ * Division code
308
+ * @type {string}
309
+ * @memberof Site
310
+ */
311
+ division: string | null;
300
312
  }
301
313
 
302
314
  /**
@@ -310,6 +322,8 @@ export function instanceOfSite(value: object): value is Site {
310
322
  if (!('email' in value) || value['email'] === undefined) return false;
311
323
  if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
312
324
  if (!('addressId' in value) || value['addressId'] === undefined) return false;
325
+ if (!('siteCode' in value) || value['siteCode'] === undefined) return false;
326
+ if (!('division' in value) || value['division'] === undefined) return false;
313
327
  return true;
314
328
  }
315
329
 
@@ -348,6 +362,8 @@ export function SiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Site
348
362
  'rateChanges': json['rateChanges'] == null ? undefined : ((json['rateChanges'] as Array<any>).map(RateChangeFromJSON)),
349
363
  'assetReservations': json['assetReservations'] == null ? undefined : ((json['assetReservations'] as Array<any>).map(AssetReservationFromJSON)),
350
364
  'siteRoles': json['siteRoles'] == null ? undefined : ((json['siteRoles'] as Array<any>).map(SiteRoleFromJSON)),
365
+ 'siteCode': json['siteCode'],
366
+ 'division': json['division'],
351
367
  };
352
368
  }
353
369
 
@@ -387,6 +403,8 @@ export function SiteToJSONTyped(value?: Site | null, ignoreDiscriminator: boolea
387
403
  'rateChanges': value['rateChanges'] == null ? undefined : ((value['rateChanges'] as Array<any>).map(RateChangeToJSON)),
388
404
  'assetReservations': value['assetReservations'] == null ? undefined : ((value['assetReservations'] as Array<any>).map(AssetReservationToJSON)),
389
405
  'siteRoles': value['siteRoles'] == null ? undefined : ((value['siteRoles'] as Array<any>).map(SiteRoleToJSON)),
406
+ 'siteCode': value['siteCode'],
407
+ 'division': value['division'],
390
408
  };
391
409
  }
392
410