@managespace/sdk 0.1.160-reports → 0.1.160

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 (43) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +0 -5
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +0 -5
  4. package/dist/generated/apis/default-api.d.ts +1 -20
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +0 -62
  7. package/dist/generated/models/create-site-custom.d.ts +0 -12
  8. package/dist/generated/models/create-site-custom.d.ts.map +1 -1
  9. package/dist/generated/models/create-site-custom.js +0 -4
  10. package/dist/generated/models/index.d.ts +0 -4
  11. package/dist/generated/models/index.d.ts.map +1 -1
  12. package/dist/generated/models/index.js +0 -4
  13. package/dist/generated/models/send-email.d.ts +6 -0
  14. package/dist/generated/models/send-email.d.ts.map +1 -1
  15. package/dist/generated/models/send-email.js +2 -0
  16. package/dist/generated/models/site.d.ts +0 -12
  17. package/dist/generated/models/site.d.ts.map +1 -1
  18. package/dist/generated/models/site.js +0 -8
  19. package/package.deploy.json +4 -8
  20. package/package.json +4 -8
  21. package/src/extensibility/functions/project/billing.ts +0 -7
  22. package/src/generated/.openapi-generator/FILES +0 -4
  23. package/src/generated/apis/default-api.ts +0 -96
  24. package/src/generated/models/create-site-custom.ts +0 -16
  25. package/src/generated/models/index.ts +0 -4
  26. package/src/generated/models/send-email.ts +8 -0
  27. package/src/generated/models/site.ts +0 -18
  28. package/dist/generated/models/accrual-report-filters.d.ts +0 -39
  29. package/dist/generated/models/accrual-report-filters.d.ts.map +0 -1
  30. package/dist/generated/models/accrual-report-filters.js +0 -55
  31. package/dist/generated/models/get-journal-entries200-response.d.ts +0 -41
  32. package/dist/generated/models/get-journal-entries200-response.d.ts.map +0 -1
  33. package/dist/generated/models/get-journal-entries200-response.js +0 -55
  34. package/dist/generated/models/journal-entry-entries.d.ts +0 -63
  35. package/dist/generated/models/journal-entry-entries.d.ts.map +0 -1
  36. package/dist/generated/models/journal-entry-entries.js +0 -71
  37. package/dist/generated/models/journal-entry.d.ts +0 -106
  38. package/dist/generated/models/journal-entry.d.ts.map +0 -1
  39. package/dist/generated/models/journal-entry.js +0 -100
  40. package/src/generated/models/accrual-report-filters.ts +0 -76
  41. package/src/generated/models/get-journal-entries200-response.ts +0 -90
  42. package/src/generated/models/journal-entry-entries.ts +0 -112
  43. package/src/generated/models/journal-entry.ts +0 -183
@@ -1,55 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfAccrualReportFilters = instanceOfAccrualReportFilters;
18
- exports.AccrualReportFiltersFromJSON = AccrualReportFiltersFromJSON;
19
- exports.AccrualReportFiltersFromJSONTyped = AccrualReportFiltersFromJSONTyped;
20
- exports.AccrualReportFiltersToJSON = AccrualReportFiltersToJSON;
21
- exports.AccrualReportFiltersToJSONTyped = AccrualReportFiltersToJSONTyped;
22
- /**
23
- * Check if a given object implements the AccrualReportFilters interface.
24
- */
25
- function instanceOfAccrualReportFilters(value) {
26
- if (!('startDate' in value) || value['startDate'] === undefined)
27
- return false;
28
- if (!('endDate' in value) || value['endDate'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function AccrualReportFiltersFromJSON(json) {
33
- return AccrualReportFiltersFromJSONTyped(json, false);
34
- }
35
- function AccrualReportFiltersFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'startDate': (new Date(json['startDate'])),
41
- 'endDate': (new Date(json['endDate'])),
42
- };
43
- }
44
- function AccrualReportFiltersToJSON(json) {
45
- return AccrualReportFiltersToJSONTyped(json, false);
46
- }
47
- function AccrualReportFiltersToJSONTyped(value, ignoreDiscriminator = false) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'startDate': ((value['startDate']).toISOString().substring(0, 10)),
53
- 'endDate': ((value['endDate']).toISOString().substring(0, 10)),
54
- };
55
- }
@@ -1,41 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
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 { PageMeta } from './page-meta';
13
- import type { JournalEntry } from './journal-entry';
14
- /**
15
- *
16
- * @export
17
- * @interface GetJournalEntries200Response
18
- */
19
- export interface GetJournalEntries200Response {
20
- /**
21
- * The pagination metadata
22
- * @type {PageMeta}
23
- * @memberof GetJournalEntries200Response
24
- */
25
- pageMeta: PageMeta;
26
- /**
27
- *
28
- * @type {Array<JournalEntry>}
29
- * @memberof GetJournalEntries200Response
30
- */
31
- results?: Array<JournalEntry>;
32
- }
33
- /**
34
- * Check if a given object implements the GetJournalEntries200Response interface.
35
- */
36
- export declare function instanceOfGetJournalEntries200Response(value: object): value is GetJournalEntries200Response;
37
- export declare function GetJournalEntries200ResponseFromJSON(json: any): GetJournalEntries200Response;
38
- export declare function GetJournalEntries200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetJournalEntries200Response;
39
- export declare function GetJournalEntries200ResponseToJSON(json: any): GetJournalEntries200Response;
40
- export declare function GetJournalEntries200ResponseToJSONTyped(value?: GetJournalEntries200Response | null, ignoreDiscriminator?: boolean): any;
41
- //# sourceMappingURL=get-journal-entries200-response.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-journal-entries200-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/get-journal-entries200-response.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQpD;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAG3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAS/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9I"}
@@ -1,55 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfGetJournalEntries200Response = instanceOfGetJournalEntries200Response;
18
- exports.GetJournalEntries200ResponseFromJSON = GetJournalEntries200ResponseFromJSON;
19
- exports.GetJournalEntries200ResponseFromJSONTyped = GetJournalEntries200ResponseFromJSONTyped;
20
- exports.GetJournalEntries200ResponseToJSON = GetJournalEntries200ResponseToJSON;
21
- exports.GetJournalEntries200ResponseToJSONTyped = GetJournalEntries200ResponseToJSONTyped;
22
- const page_meta_1 = require("./page-meta");
23
- const journal_entry_1 = require("./journal-entry");
24
- /**
25
- * Check if a given object implements the GetJournalEntries200Response interface.
26
- */
27
- function instanceOfGetJournalEntries200Response(value) {
28
- if (!('pageMeta' in value) || value['pageMeta'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function GetJournalEntries200ResponseFromJSON(json) {
33
- return GetJournalEntries200ResponseFromJSONTyped(json, false);
34
- }
35
- function GetJournalEntries200ResponseFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- 'pageMeta': (0, page_meta_1.PageMetaFromJSON)(json['pageMeta']),
41
- 'results': json['results'] == null ? undefined : (json['results'].map(journal_entry_1.JournalEntryFromJSON)),
42
- };
43
- }
44
- function GetJournalEntries200ResponseToJSON(json) {
45
- return GetJournalEntries200ResponseToJSONTyped(json, false);
46
- }
47
- function GetJournalEntries200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'pageMeta': (0, page_meta_1.PageMetaToJSON)(value['pageMeta']),
53
- 'results': value['results'] == null ? undefined : (value['results'].map(journal_entry_1.JournalEntryToJSON)),
54
- };
55
- }
@@ -1,63 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
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
- /**
13
- *
14
- * @export
15
- * @interface JournalEntryEntries
16
- */
17
- export interface JournalEntryEntries {
18
- /**
19
- * Journal Entry Line Number
20
- * @type {string}
21
- * @memberof JournalEntryEntries
22
- */
23
- lineNo: string;
24
- /**
25
- * Account number
26
- * @type {string}
27
- * @memberof JournalEntryEntries
28
- */
29
- account: string;
30
- /**
31
- * Debit Account id associated with this Journal Entry
32
- * @type {string}
33
- * @memberof JournalEntryEntries
34
- */
35
- debit: string;
36
- /**
37
- * Credit Account id associated with this Journal Entry
38
- * @type {string}
39
- * @memberof JournalEntryEntries
40
- */
41
- credit: string;
42
- /**
43
- * Journal Entry description
44
- * @type {string}
45
- * @memberof JournalEntryEntries
46
- */
47
- description: string;
48
- /**
49
- * Customer ID associated with journal entry
50
- * @type {string}
51
- * @memberof JournalEntryEntries
52
- */
53
- customerId: string;
54
- }
55
- /**
56
- * Check if a given object implements the JournalEntryEntries interface.
57
- */
58
- export declare function instanceOfJournalEntryEntries(value: object): value is JournalEntryEntries;
59
- export declare function JournalEntryEntriesFromJSON(json: any): JournalEntryEntries;
60
- export declare function JournalEntryEntriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): JournalEntryEntries;
61
- export declare function JournalEntryEntriesToJSON(json: any): JournalEntryEntries;
62
- export declare function JournalEntryEntriesToJSONTyped(value?: JournalEntryEntries | null, ignoreDiscriminator?: boolean): any;
63
- //# sourceMappingURL=journal-entry-entries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"journal-entry-entries.d.ts","sourceRoot":"","sources":["../../../src/generated/models/journal-entry-entries.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAQzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAa7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc5H"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfJournalEntryEntries = instanceOfJournalEntryEntries;
18
- exports.JournalEntryEntriesFromJSON = JournalEntryEntriesFromJSON;
19
- exports.JournalEntryEntriesFromJSONTyped = JournalEntryEntriesFromJSONTyped;
20
- exports.JournalEntryEntriesToJSON = JournalEntryEntriesToJSON;
21
- exports.JournalEntryEntriesToJSONTyped = JournalEntryEntriesToJSONTyped;
22
- /**
23
- * Check if a given object implements the JournalEntryEntries interface.
24
- */
25
- function instanceOfJournalEntryEntries(value) {
26
- if (!('lineNo' in value) || value['lineNo'] === undefined)
27
- return false;
28
- if (!('account' in value) || value['account'] === undefined)
29
- return false;
30
- if (!('debit' in value) || value['debit'] === undefined)
31
- return false;
32
- if (!('credit' in value) || value['credit'] === undefined)
33
- return false;
34
- if (!('description' in value) || value['description'] === undefined)
35
- return false;
36
- if (!('customerId' in value) || value['customerId'] === undefined)
37
- return false;
38
- return true;
39
- }
40
- function JournalEntryEntriesFromJSON(json) {
41
- return JournalEntryEntriesFromJSONTyped(json, false);
42
- }
43
- function JournalEntryEntriesFromJSONTyped(json, ignoreDiscriminator) {
44
- if (json == null) {
45
- return json;
46
- }
47
- return {
48
- 'lineNo': json['lineNo'],
49
- 'account': json['account'],
50
- 'debit': json['debit'],
51
- 'credit': json['credit'],
52
- 'description': json['description'],
53
- 'customerId': json['customerId'],
54
- };
55
- }
56
- function JournalEntryEntriesToJSON(json) {
57
- return JournalEntryEntriesToJSONTyped(json, false);
58
- }
59
- function JournalEntryEntriesToJSONTyped(value, ignoreDiscriminator = false) {
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
- 'lineNo': value['lineNo'],
65
- 'account': value['account'],
66
- 'debit': value['debit'],
67
- 'credit': value['credit'],
68
- 'description': value['description'],
69
- 'customerId': value['customerId'],
70
- };
71
- }
@@ -1,106 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
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 { JournalEntryEntries } from './journal-entry-entries';
13
- /**
14
- *
15
- * @export
16
- * @interface JournalEntry
17
- */
18
- export interface JournalEntry {
19
- /**
20
- * Journal Entry ID
21
- * @type {string}
22
- * @memberof JournalEntry
23
- */
24
- id: string;
25
- /**
26
- * Journal Entry Date
27
- * @type {string}
28
- * @memberof JournalEntry
29
- */
30
- date: string;
31
- /**
32
- * Customer ID associated with journal entry
33
- * @type {string}
34
- * @memberof JournalEntry
35
- */
36
- customerId: string;
37
- /**
38
- * Customer name associated with journal entry
39
- * @type {string}
40
- * @memberof JournalEntry
41
- */
42
- customerName: string;
43
- /**
44
- * Journal Entry description
45
- * @type {string}
46
- * @memberof JournalEntry
47
- */
48
- description: string;
49
- /**
50
- * Journal entries
51
- * @type {Array<JournalEntryEntries>}
52
- * @memberof JournalEntry
53
- */
54
- entries: Array<JournalEntryEntries>;
55
- /**
56
- * Custom fields on the invoice
57
- * @type {object}
58
- * @memberof JournalEntry
59
- */
60
- customFields: object;
61
- /**
62
- * The date the journal entry was created
63
- * @type {string}
64
- * @memberof JournalEntry
65
- */
66
- createdAt: string;
67
- /**
68
- * The date the journal entry was updated
69
- * @type {string}
70
- * @memberof JournalEntry
71
- */
72
- updatedAt: string;
73
- /**
74
- * Who created the journal entry
75
- * @type {string}
76
- * @memberof JournalEntry
77
- */
78
- createdBy: string;
79
- /**
80
- * Who updated the journal entry
81
- * @type {string}
82
- * @memberof JournalEntry
83
- */
84
- updatedBy: string;
85
- /**
86
- * Currency code of the transaction
87
- * @type {string}
88
- * @memberof JournalEntry
89
- */
90
- transactionCurrency: string;
91
- /**
92
- * Transaction Conversion Rate
93
- * @type {number}
94
- * @memberof JournalEntry
95
- */
96
- transactionConversionRate: number;
97
- }
98
- /**
99
- * Check if a given object implements the JournalEntry interface.
100
- */
101
- export declare function instanceOfJournalEntry(value: object): value is JournalEntry;
102
- export declare function JournalEntryFromJSON(json: any): JournalEntry;
103
- export declare function JournalEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): JournalEntry;
104
- export declare function JournalEntryToJSON(json: any): JournalEntry;
105
- export declare function JournalEntryToJSONTyped(value?: JournalEntry | null, ignoreDiscriminator?: boolean): any;
106
- //# sourceMappingURL=journal-entry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"journal-entry.d.ts","sourceRoot":"","sources":["../../../src/generated/models/journal-entry.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACpC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAe3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAoB/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAqB9G"}
@@ -1,100 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfJournalEntry = instanceOfJournalEntry;
18
- exports.JournalEntryFromJSON = JournalEntryFromJSON;
19
- exports.JournalEntryFromJSONTyped = JournalEntryFromJSONTyped;
20
- exports.JournalEntryToJSON = JournalEntryToJSON;
21
- exports.JournalEntryToJSONTyped = JournalEntryToJSONTyped;
22
- const journal_entry_entries_1 = require("./journal-entry-entries");
23
- /**
24
- * Check if a given object implements the JournalEntry interface.
25
- */
26
- function instanceOfJournalEntry(value) {
27
- if (!('id' in value) || value['id'] === undefined)
28
- return false;
29
- if (!('date' in value) || value['date'] === undefined)
30
- return false;
31
- if (!('customerId' in value) || value['customerId'] === undefined)
32
- return false;
33
- if (!('customerName' in value) || value['customerName'] === undefined)
34
- return false;
35
- if (!('description' in value) || value['description'] === undefined)
36
- return false;
37
- if (!('entries' in value) || value['entries'] === undefined)
38
- return false;
39
- if (!('customFields' in value) || value['customFields'] === undefined)
40
- return false;
41
- if (!('createdAt' in value) || value['createdAt'] === undefined)
42
- return false;
43
- if (!('updatedAt' in value) || value['updatedAt'] === undefined)
44
- return false;
45
- if (!('createdBy' in value) || value['createdBy'] === undefined)
46
- return false;
47
- if (!('updatedBy' in value) || value['updatedBy'] === undefined)
48
- return false;
49
- if (!('transactionCurrency' in value) || value['transactionCurrency'] === undefined)
50
- return false;
51
- if (!('transactionConversionRate' in value) || value['transactionConversionRate'] === undefined)
52
- return false;
53
- return true;
54
- }
55
- function JournalEntryFromJSON(json) {
56
- return JournalEntryFromJSONTyped(json, false);
57
- }
58
- function JournalEntryFromJSONTyped(json, ignoreDiscriminator) {
59
- if (json == null) {
60
- return json;
61
- }
62
- return {
63
- 'id': json['id'],
64
- 'date': json['date'],
65
- 'customerId': json['customerId'],
66
- 'customerName': json['customerName'],
67
- 'description': json['description'],
68
- 'entries': (json['entries'].map(journal_entry_entries_1.JournalEntryEntriesFromJSON)),
69
- 'customFields': json['customFields'],
70
- 'createdAt': json['createdAt'],
71
- 'updatedAt': json['updatedAt'],
72
- 'createdBy': json['createdBy'],
73
- 'updatedBy': json['updatedBy'],
74
- 'transactionCurrency': json['transactionCurrency'],
75
- 'transactionConversionRate': json['transactionConversionRate'],
76
- };
77
- }
78
- function JournalEntryToJSON(json) {
79
- return JournalEntryToJSONTyped(json, false);
80
- }
81
- function JournalEntryToJSONTyped(value, ignoreDiscriminator = false) {
82
- if (value == null) {
83
- return value;
84
- }
85
- return {
86
- 'id': value['id'],
87
- 'date': value['date'],
88
- 'customerId': value['customerId'],
89
- 'customerName': value['customerName'],
90
- 'description': value['description'],
91
- 'entries': (value['entries'].map(journal_entry_entries_1.JournalEntryEntriesToJSON)),
92
- 'customFields': value['customFields'],
93
- 'createdAt': value['createdAt'],
94
- 'updatedAt': value['updatedAt'],
95
- 'createdBy': value['createdBy'],
96
- 'updatedBy': value['updatedBy'],
97
- 'transactionCurrency': value['transactionCurrency'],
98
- 'transactionConversionRate': value['transactionConversionRate'],
99
- };
100
- }
@@ -1,76 +0,0 @@
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
-
@@ -1,90 +0,0 @@
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
-