@managespace/sdk 0.1.159 → 0.1.160-reports

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 (66) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +5 -0
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +5 -0
  4. package/dist/generated/apis/default-api.d.ts +110 -1
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +392 -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/billing-run.d.ts +6 -0
  11. package/dist/generated/models/billing-run.d.ts.map +1 -1
  12. package/dist/generated/models/billing-run.js +2 -0
  13. package/dist/generated/models/create-billing-run.d.ts +6 -0
  14. package/dist/generated/models/create-billing-run.d.ts.map +1 -1
  15. package/dist/generated/models/create-billing-run.js +2 -0
  16. package/dist/generated/models/create-site-custom.d.ts +12 -0
  17. package/dist/generated/models/create-site-custom.d.ts.map +1 -1
  18. package/dist/generated/models/create-site-custom.js +4 -0
  19. package/dist/generated/models/get-journal-entries200-response.d.ts +41 -0
  20. package/dist/generated/models/get-journal-entries200-response.d.ts.map +1 -0
  21. package/dist/generated/models/get-journal-entries200-response.js +55 -0
  22. package/dist/generated/models/income-report-filters.d.ts +45 -0
  23. package/dist/generated/models/income-report-filters.d.ts.map +1 -0
  24. package/dist/generated/models/income-report-filters.js +57 -0
  25. package/dist/generated/models/index.d.ts +9 -0
  26. package/dist/generated/models/index.d.ts.map +1 -1
  27. package/dist/generated/models/index.js +9 -0
  28. package/dist/generated/models/journal-entry-entries.d.ts +63 -0
  29. package/dist/generated/models/journal-entry-entries.d.ts.map +1 -0
  30. package/dist/generated/models/journal-entry-entries.js +71 -0
  31. package/dist/generated/models/journal-entry.d.ts +106 -0
  32. package/dist/generated/models/journal-entry.d.ts.map +1 -0
  33. package/dist/generated/models/journal-entry.js +100 -0
  34. package/dist/generated/models/occupancy-statistics-report-filters.d.ts +45 -0
  35. package/dist/generated/models/occupancy-statistics-report-filters.d.ts.map +1 -0
  36. package/dist/generated/models/occupancy-statistics-report-filters.js +57 -0
  37. package/dist/generated/models/prepaid-rent-report-filters.d.ts +45 -0
  38. package/dist/generated/models/prepaid-rent-report-filters.d.ts.map +1 -0
  39. package/dist/generated/models/prepaid-rent-report-filters.js +57 -0
  40. package/dist/generated/models/refund-summary-report-filters.d.ts +45 -0
  41. package/dist/generated/models/refund-summary-report-filters.d.ts.map +1 -0
  42. package/dist/generated/models/refund-summary-report-filters.js +57 -0
  43. package/dist/generated/models/security-deposits-report-filters.d.ts +45 -0
  44. package/dist/generated/models/security-deposits-report-filters.d.ts.map +1 -0
  45. package/dist/generated/models/security-deposits-report-filters.js +57 -0
  46. package/dist/generated/models/site.d.ts +12 -0
  47. package/dist/generated/models/site.d.ts.map +1 -1
  48. package/dist/generated/models/site.js +8 -0
  49. package/package.json +5 -2
  50. package/src/extensibility/functions/project/billing.ts +7 -0
  51. package/src/generated/.openapi-generator/FILES +9 -0
  52. package/src/generated/apis/default-api.ts +586 -0
  53. package/src/generated/models/accrual-report-filters.ts +76 -0
  54. package/src/generated/models/billing-run.ts +8 -0
  55. package/src/generated/models/create-billing-run.ts +8 -0
  56. package/src/generated/models/create-site-custom.ts +16 -0
  57. package/src/generated/models/get-journal-entries200-response.ts +90 -0
  58. package/src/generated/models/income-report-filters.ts +84 -0
  59. package/src/generated/models/index.ts +9 -0
  60. package/src/generated/models/journal-entry-entries.ts +112 -0
  61. package/src/generated/models/journal-entry.ts +183 -0
  62. package/src/generated/models/occupancy-statistics-report-filters.ts +84 -0
  63. package/src/generated/models/prepaid-rent-report-filters.ts +84 -0
  64. package/src/generated/models/refund-summary-report-filters.ts +84 -0
  65. package/src/generated/models/security-deposits-report-filters.ts +84 -0
  66. package/src/generated/models/site.ts +18 -0
@@ -0,0 +1,76 @@
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 AccrualReportFilters
21
+ */
22
+ export interface AccrualReportFilters {
23
+ /**
24
+ * Start date for the report period
25
+ * @type {Date}
26
+ * @memberof AccrualReportFilters
27
+ */
28
+ startDate: Date;
29
+ /**
30
+ * End date for the report period
31
+ * @type {Date}
32
+ * @memberof AccrualReportFilters
33
+ */
34
+ endDate: Date;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the AccrualReportFilters interface.
39
+ */
40
+ export function instanceOfAccrualReportFilters(value: object): value is AccrualReportFilters {
41
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
42
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function AccrualReportFiltersFromJSON(json: any): AccrualReportFilters {
47
+ return AccrualReportFiltersFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function AccrualReportFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccrualReportFilters {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'startDate': (new Date(json['startDate'])),
57
+ 'endDate': (new Date(json['endDate'])),
58
+ };
59
+ }
60
+
61
+ export function AccrualReportFiltersToJSON(json: any): AccrualReportFilters {
62
+ return AccrualReportFiltersToJSONTyped(json, false);
63
+ }
64
+
65
+ export function AccrualReportFiltersToJSONTyped(value?: AccrualReportFilters | null, ignoreDiscriminator: boolean = false): any {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+
70
+ return {
71
+
72
+ 'startDate': ((value['startDate']).toISOString().substring(0,10)),
73
+ 'endDate': ((value['endDate']).toISOString().substring(0,10)),
74
+ };
75
+ }
76
+
@@ -52,6 +52,12 @@ export interface BillingRun {
52
52
  * @memberof BillingRun
53
53
  */
54
54
  filterOptions?: BillingRunFilterOptions;
55
+ /**
56
+ * Payment term to apply to invoices (e.g., "Due on Receipt", "Net 15")
57
+ * @type {string}
58
+ * @memberof BillingRun
59
+ */
60
+ paymentTerm?: string;
55
61
  /**
56
62
  * Billing Run ID
57
63
  * @type {string}
@@ -153,6 +159,7 @@ export function BillingRunFromJSONTyped(json: any, ignoreDiscriminator: boolean)
153
159
  'invoiceDate': json['invoiceDate'],
154
160
  'chargeType': json['chargeType'],
155
161
  'filterOptions': json['filterOptions'] == null ? undefined : BillingRunFilterOptionsFromJSON(json['filterOptions']),
162
+ 'paymentTerm': json['paymentTerm'] == null ? undefined : json['paymentTerm'],
156
163
  'id': json['id'],
157
164
  'status': json['status'],
158
165
  'invoicesTotal': json['invoicesTotal'],
@@ -182,6 +189,7 @@ export function BillingRunToJSONTyped(value?: BillingRun | null, ignoreDiscrimin
182
189
  'invoiceDate': value['invoiceDate'],
183
190
  'chargeType': value['chargeType'],
184
191
  'filterOptions': BillingRunFilterOptionsToJSON(value['filterOptions']),
192
+ 'paymentTerm': value['paymentTerm'],
185
193
  'id': value['id'],
186
194
  'status': value['status'],
187
195
  'invoicesTotal': value['invoicesTotal'],
@@ -82,6 +82,12 @@ export interface CreateBillingRun {
82
82
  * @memberof CreateBillingRun
83
83
  */
84
84
  doNotEmailIfInvoiceAmountZero?: boolean;
85
+ /**
86
+ * Payment term to apply to invoices (e.g., "Due on Receipt", "Net 15")
87
+ * @type {string}
88
+ * @memberof CreateBillingRun
89
+ */
90
+ paymentTerm?: string;
85
91
  }
86
92
 
87
93
  /**
@@ -113,6 +119,7 @@ export function CreateBillingRunFromJSONTyped(json: any, ignoreDiscriminator: bo
113
119
  'doNotEmailIfInvoiceBalanceZero': json['doNotEmailIfInvoiceBalanceZero'] == null ? undefined : json['doNotEmailIfInvoiceBalanceZero'],
114
120
  'doNotEmailIfAutoPayIsOnWithPaymentMethod': json['doNotEmailIfAutoPayIsOnWithPaymentMethod'] == null ? undefined : json['doNotEmailIfAutoPayIsOnWithPaymentMethod'],
115
121
  'doNotEmailIfInvoiceAmountZero': json['doNotEmailIfInvoiceAmountZero'] == null ? undefined : json['doNotEmailIfInvoiceAmountZero'],
122
+ 'paymentTerm': json['paymentTerm'] == null ? undefined : json['paymentTerm'],
116
123
  };
117
124
  }
118
125
 
@@ -136,6 +143,7 @@ export function CreateBillingRunToJSONTyped(value?: CreateBillingRun | null, ign
136
143
  'doNotEmailIfInvoiceBalanceZero': value['doNotEmailIfInvoiceBalanceZero'],
137
144
  'doNotEmailIfAutoPayIsOnWithPaymentMethod': value['doNotEmailIfAutoPayIsOnWithPaymentMethod'],
138
145
  'doNotEmailIfInvoiceAmountZero': value['doNotEmailIfInvoiceAmountZero'],
146
+ 'paymentTerm': value['paymentTerm'],
139
147
  };
140
148
  }
141
149
 
@@ -52,6 +52,18 @@ export interface CreateSiteCustom {
52
52
  * @memberof CreateSiteCustom
53
53
  */
54
54
  phoneNumber: string;
55
+ /**
56
+ * Site code
57
+ * @type {string}
58
+ * @memberof CreateSiteCustom
59
+ */
60
+ siteCode?: string | null;
61
+ /**
62
+ * Division code
63
+ * @type {string}
64
+ * @memberof CreateSiteCustom
65
+ */
66
+ division?: string | null;
55
67
  /**
56
68
  * Site address.
57
69
  * @type {CreateAddress}
@@ -86,6 +98,8 @@ export function CreateSiteCustomFromJSONTyped(json: any, ignoreDiscriminator: bo
86
98
  'accessCodeLength': json['accessCodeLength'],
87
99
  'email': json['email'],
88
100
  'phoneNumber': json['phoneNumber'],
101
+ 'siteCode': json['siteCode'] == null ? undefined : json['siteCode'],
102
+ 'division': json['division'] == null ? undefined : json['division'],
89
103
  'address': CreateAddressFromJSON(json['address']),
90
104
  };
91
105
  }
@@ -105,6 +119,8 @@ export function CreateSiteCustomToJSONTyped(value?: CreateSiteCustom | null, ign
105
119
  'accessCodeLength': value['accessCodeLength'],
106
120
  'email': value['email'],
107
121
  'phoneNumber': value['phoneNumber'],
122
+ 'siteCode': value['siteCode'],
123
+ 'division': value['division'],
108
124
  'address': CreateAddressToJSON(value['address']),
109
125
  };
110
126
  }
@@ -0,0 +1,90 @@
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 { PageMeta } from './page-meta';
18
+ import {
19
+ PageMetaFromJSON,
20
+ PageMetaFromJSONTyped,
21
+ PageMetaToJSON,
22
+ PageMetaToJSONTyped,
23
+ } from './page-meta';
24
+ import type { JournalEntry } from './journal-entry';
25
+ import {
26
+ JournalEntryFromJSON,
27
+ JournalEntryFromJSONTyped,
28
+ JournalEntryToJSON,
29
+ JournalEntryToJSONTyped,
30
+ } from './journal-entry';
31
+
32
+ /**
33
+ *
34
+ * @export
35
+ * @interface GetJournalEntries200Response
36
+ */
37
+ export interface GetJournalEntries200Response {
38
+ /**
39
+ * The pagination metadata
40
+ * @type {PageMeta}
41
+ * @memberof GetJournalEntries200Response
42
+ */
43
+ pageMeta: PageMeta;
44
+ /**
45
+ *
46
+ * @type {Array<JournalEntry>}
47
+ * @memberof GetJournalEntries200Response
48
+ */
49
+ results?: Array<JournalEntry>;
50
+ }
51
+
52
+ /**
53
+ * Check if a given object implements the GetJournalEntries200Response interface.
54
+ */
55
+ export function instanceOfGetJournalEntries200Response(value: object): value is GetJournalEntries200Response {
56
+ if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function GetJournalEntries200ResponseFromJSON(json: any): GetJournalEntries200Response {
61
+ return GetJournalEntries200ResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetJournalEntries200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetJournalEntries200Response {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pageMeta': PageMetaFromJSON(json['pageMeta']),
71
+ 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(JournalEntryFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function GetJournalEntries200ResponseToJSON(json: any): GetJournalEntries200Response {
76
+ return GetJournalEntries200ResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function GetJournalEntries200ResponseToJSONTyped(value?: GetJournalEntries200Response | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'pageMeta': PageMetaToJSON(value['pageMeta']),
87
+ 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(JournalEntryToJSON)),
88
+ };
89
+ }
90
+
@@ -0,0 +1,84 @@
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 IncomeReportFilters
21
+ */
22
+ export interface IncomeReportFilters {
23
+ /**
24
+ * Site ID to filter the report
25
+ * @type {string}
26
+ * @memberof IncomeReportFilters
27
+ */
28
+ siteId?: string;
29
+ /**
30
+ * Start date for the report period
31
+ * @type {Date}
32
+ * @memberof IncomeReportFilters
33
+ */
34
+ startDate: Date;
35
+ /**
36
+ * End date for the report period
37
+ * @type {Date}
38
+ * @memberof IncomeReportFilters
39
+ */
40
+ endDate: Date;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the IncomeReportFilters interface.
45
+ */
46
+ export function instanceOfIncomeReportFilters(value: object): value is IncomeReportFilters {
47
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
48
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function IncomeReportFiltersFromJSON(json: any): IncomeReportFilters {
53
+ return IncomeReportFiltersFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function IncomeReportFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncomeReportFilters {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'siteId': json['siteId'] == null ? undefined : json['siteId'],
63
+ 'startDate': (new Date(json['startDate'])),
64
+ 'endDate': (new Date(json['endDate'])),
65
+ };
66
+ }
67
+
68
+ export function IncomeReportFiltersToJSON(json: any): IncomeReportFilters {
69
+ return IncomeReportFiltersToJSONTyped(json, false);
70
+ }
71
+
72
+ export function IncomeReportFiltersToJSONTyped(value?: IncomeReportFilters | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'siteId': value['siteId'],
80
+ 'startDate': ((value['startDate']).toISOString().substring(0,10)),
81
+ 'endDate': ((value['endDate']).toISOString().substring(0,10)),
82
+ };
83
+ }
84
+
@@ -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';
@@ -156,10 +158,13 @@ export * from './get-templates200-response';
156
158
  export * from './get-users200-response';
157
159
  export * from './get-workflow-definitions200-response';
158
160
  export * from './get-workflow-instances200-response';
161
+ export * from './income-report-filters';
159
162
  export * from './insured-roll-report-filters';
160
163
  export * from './intent';
161
164
  export * from './invoice';
162
165
  export * from './invoice-contact';
166
+ export * from './journal-entry';
167
+ export * from './journal-entry-entries';
163
168
  export * from './lease-status';
164
169
  export * from './line-item';
165
170
  export * from './link-plugin';
@@ -169,6 +174,7 @@ export * from './map-feature';
169
174
  export * from './merge-assets-custom';
170
175
  export * from './note';
171
176
  export * from './notification';
177
+ export * from './occupancy-statistics-report-filters';
172
178
  export * from './omit-type-class';
173
179
  export * from './order';
174
180
  export * from './order-line-item';
@@ -195,6 +201,7 @@ export * from './plugin-filter-item';
195
201
  export * from './plugin-filter-item-value';
196
202
  export * from './plugin-filter-operator';
197
203
  export * from './plugin-version';
204
+ export * from './prepaid-rent-report-filters';
198
205
  export * from './preview-subscription';
199
206
  export * from './pricing-rule';
200
207
  export * from './pricing-rule-criteria';
@@ -209,9 +216,11 @@ export * from './rate-change-status';
209
216
  export * from './refund';
210
217
  export * from './refund-invoice';
211
218
  export * from './refund-payment';
219
+ export * from './refund-summary-report-filters';
212
220
  export * from './rent-roll-report-filters';
213
221
  export * from './revenue-rule';
214
222
  export * from './roles';
223
+ export * from './security-deposits-report-filters';
215
224
  export * from './send-email';
216
225
  export * from './send-sms';
217
226
  export * from './separate-assets-custom';
@@ -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
+