@managespace/sdk 0.1.22 → 0.1.23

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 (83) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +17 -5
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/generated/apis/default-api.d.ts +36 -13
  4. package/dist/generated/apis/default-api.d.ts.map +1 -1
  5. package/dist/generated/apis/default-api.js +99 -38
  6. package/dist/generated/models/index.d.ts +1 -12
  7. package/dist/generated/models/index.d.ts.map +1 -1
  8. package/dist/generated/models/index.js +1 -12
  9. package/package.json +1 -1
  10. package/src/extensibility/functions/project/billing.ts +14 -6
  11. package/src/generated/.openapi-generator/FILES +1 -12
  12. package/src/generated/apis/default-api.ts +164 -73
  13. package/src/generated/models/change-active-site.ts +66 -0
  14. package/src/generated/models/create-checklist.ts +135 -0
  15. package/src/generated/models/create-task-template.ts +83 -0
  16. package/src/generated/models/create-task.ts +135 -0
  17. package/src/generated/models/custom-update-task-template.ts +93 -0
  18. package/src/generated/models/document-signed.ts +115 -0
  19. package/src/generated/models/{update-customer200-response.ts → get-customers200-response.ts} +12 -12
  20. package/src/generated/models/get-payments1200-response.ts +89 -0
  21. package/src/generated/models/get-task-templates200-response.ts +89 -0
  22. package/src/generated/models/get-tasks200-response.ts +89 -0
  23. package/src/generated/models/index.ts +1 -12
  24. package/src/generated/models/task-template.ts +187 -0
  25. package/src/generated/models/task.ts +290 -0
  26. package/src/generated/models/update-checklist-task-template.ts +66 -0
  27. package/dist/generated/models/base-pagination-query.d.ts +0 -39
  28. package/dist/generated/models/base-pagination-query.d.ts.map +0 -1
  29. package/dist/generated/models/base-pagination-query.js +0 -51
  30. package/dist/generated/models/comparison-operator.d.ts +0 -36
  31. package/dist/generated/models/comparison-operator.d.ts.map +0 -1
  32. package/dist/generated/models/comparison-operator.js +0 -61
  33. package/dist/generated/models/complex-query.d.ts +0 -48
  34. package/dist/generated/models/complex-query.d.ts.map +0 -1
  35. package/dist/generated/models/complex-query.js +0 -56
  36. package/dist/generated/models/filter-item-value.d.ts +0 -27
  37. package/dist/generated/models/filter-item-value.d.ts.map +0 -1
  38. package/dist/generated/models/filter-item-value.js +0 -39
  39. package/dist/generated/models/filter-item.d.ts +0 -47
  40. package/dist/generated/models/filter-item.d.ts.map +0 -1
  41. package/dist/generated/models/filter-item.js +0 -61
  42. package/dist/generated/models/filter-operator.d.ts +0 -36
  43. package/dist/generated/models/filter-operator.d.ts.map +0 -1
  44. package/dist/generated/models/filter-operator.js +0 -61
  45. package/dist/generated/models/get-customers-query.d.ts +0 -48
  46. package/dist/generated/models/get-customers-query.d.ts.map +0 -1
  47. package/dist/generated/models/get-customers-query.js +0 -56
  48. package/dist/generated/models/get-invoices-query.d.ts +0 -60
  49. package/dist/generated/models/get-invoices-query.d.ts.map +0 -1
  50. package/dist/generated/models/get-invoices-query.js +0 -60
  51. package/dist/generated/models/get-subscriptions-post200-response.d.ts +0 -41
  52. package/dist/generated/models/get-subscriptions-post200-response.d.ts.map +0 -1
  53. package/dist/generated/models/get-subscriptions-post200-response.js +0 -55
  54. package/dist/generated/models/get-subscriptions-query.d.ts +0 -66
  55. package/dist/generated/models/get-subscriptions-query.d.ts.map +0 -1
  56. package/dist/generated/models/get-subscriptions-query.js +0 -62
  57. package/dist/generated/models/order-operator.d.ts +0 -26
  58. package/dist/generated/models/order-operator.d.ts.map +0 -1
  59. package/dist/generated/models/order-operator.js +0 -51
  60. package/dist/generated/models/plugin-filter-item.d.ts +0 -41
  61. package/dist/generated/models/plugin-filter-item.d.ts.map +0 -1
  62. package/dist/generated/models/plugin-filter-item.js +0 -57
  63. package/dist/generated/models/plugin-filter-operator.d.ts +0 -27
  64. package/dist/generated/models/plugin-filter-operator.d.ts.map +0 -1
  65. package/dist/generated/models/plugin-filter-operator.js +0 -52
  66. package/dist/generated/models/sort-order.d.ts +0 -40
  67. package/dist/generated/models/sort-order.d.ts.map +0 -1
  68. package/dist/generated/models/sort-order.js +0 -52
  69. package/dist/generated/models/update-customer200-response.d.ts +0 -41
  70. package/dist/generated/models/update-customer200-response.d.ts.map +0 -1
  71. package/dist/generated/models/update-customer200-response.js +0 -55
  72. package/src/generated/models/base-pagination-query.ts +0 -73
  73. package/src/generated/models/complex-query.ts +0 -103
  74. package/src/generated/models/filter-item-value.ts +0 -46
  75. package/src/generated/models/filter-item.ts +0 -101
  76. package/src/generated/models/filter-operator.ts +0 -63
  77. package/src/generated/models/get-customers-query.ts +0 -103
  78. package/src/generated/models/get-invoices-query.ts +0 -119
  79. package/src/generated/models/get-subscriptions-query.ts +0 -127
  80. package/src/generated/models/order-operator.ts +0 -53
  81. package/src/generated/models/plugin-filter-item.ts +0 -92
  82. package/src/generated/models/plugin-filter-operator.ts +0 -54
  83. package/src/generated/models/sort-order.ts +0 -83
@@ -1,103 +0,0 @@
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
- import type { FilterItem } from './filter-item';
17
- import {
18
- FilterItemFromJSON,
19
- FilterItemFromJSONTyped,
20
- FilterItemToJSON,
21
- FilterItemToJSONTyped,
22
- } from './filter-item';
23
- import type { BasePaginationQuery } from './base-pagination-query';
24
- import {
25
- BasePaginationQueryFromJSON,
26
- BasePaginationQueryFromJSONTyped,
27
- BasePaginationQueryToJSON,
28
- BasePaginationQueryToJSONTyped,
29
- } from './base-pagination-query';
30
- import type { SortOrder } from './sort-order';
31
- import {
32
- SortOrderFromJSON,
33
- SortOrderFromJSONTyped,
34
- SortOrderToJSON,
35
- SortOrderToJSONTyped,
36
- } from './sort-order';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface ComplexQuery
42
- */
43
- export interface ComplexQuery {
44
- /**
45
- * The pagination metadata
46
- * @type {BasePaginationQuery}
47
- * @memberof ComplexQuery
48
- */
49
- pageOptions?: BasePaginationQuery;
50
- /**
51
- * The sort metadata
52
- * @type {SortOrder}
53
- * @memberof ComplexQuery
54
- */
55
- sort?: SortOrder;
56
- /**
57
- * A list of filters to search by.
58
- * @type {Array<FilterItem>}
59
- * @memberof ComplexQuery
60
- */
61
- filters?: Array<FilterItem>;
62
- }
63
-
64
- /**
65
- * Check if a given object implements the ComplexQuery interface.
66
- */
67
- export function instanceOfComplexQuery(value: object): value is ComplexQuery {
68
- return true;
69
- }
70
-
71
- export function ComplexQueryFromJSON(json: any): ComplexQuery {
72
- return ComplexQueryFromJSONTyped(json, false);
73
- }
74
-
75
- export function ComplexQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexQuery {
76
- if (json == null) {
77
- return json;
78
- }
79
- return {
80
-
81
- 'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
82
- 'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
83
- 'filters': json['filters'] == null ? undefined : ((json['filters'] as Array<any>).map(FilterItemFromJSON)),
84
- };
85
- }
86
-
87
- export function ComplexQueryToJSON(json: any): ComplexQuery {
88
- return ComplexQueryToJSONTyped(json, false);
89
- }
90
-
91
- export function ComplexQueryToJSONTyped(value?: ComplexQuery | null, ignoreDiscriminator: boolean = false): any {
92
- if (value == null) {
93
- return value;
94
- }
95
-
96
- return {
97
-
98
- 'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
99
- 'sort': SortOrderToJSON(value['sort']),
100
- 'filters': value['filters'] == null ? undefined : ((value['filters'] as Array<any>).map(FilterItemToJSON)),
101
- };
102
- }
103
-
@@ -1,46 +0,0 @@
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
- * Value to compare against
18
- * @export
19
- * @interface FilterItemValue
20
- */
21
- export interface FilterItemValue {
22
- }
23
-
24
- /**
25
- * Check if a given object implements the FilterItemValue interface.
26
- */
27
- export function instanceOfFilterItemValue(value: object): value is FilterItemValue {
28
- return true;
29
- }
30
-
31
- export function FilterItemValueFromJSON(json: any): FilterItemValue {
32
- return FilterItemValueFromJSONTyped(json, false);
33
- }
34
-
35
- export function FilterItemValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterItemValue {
36
- return json;
37
- }
38
-
39
- export function FilterItemValueToJSON(json: any): FilterItemValue {
40
- return FilterItemValueToJSONTyped(json, false);
41
- }
42
-
43
- export function FilterItemValueToJSONTyped(value?: FilterItemValue | null, ignoreDiscriminator: boolean = false): any {
44
- return value;
45
- }
46
-
@@ -1,101 +0,0 @@
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
- import type { FilterItemValue } from './filter-item-value';
17
- import {
18
- FilterItemValueFromJSON,
19
- FilterItemValueFromJSONTyped,
20
- FilterItemValueToJSON,
21
- FilterItemValueToJSONTyped,
22
- } from './filter-item-value';
23
- import type { FilterOperator } from './filter-operator';
24
- import {
25
- FilterOperatorFromJSON,
26
- FilterOperatorFromJSONTyped,
27
- FilterOperatorToJSON,
28
- FilterOperatorToJSONTyped,
29
- } from './filter-operator';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface FilterItem
35
- */
36
- export interface FilterItem {
37
- /**
38
- * Field to filter by
39
- * @type {string}
40
- * @memberof FilterItem
41
- */
42
- field: string;
43
- /**
44
- *
45
- * @type {FilterOperator}
46
- * @memberof FilterItem
47
- */
48
- operator: FilterOperator;
49
- /**
50
- *
51
- * @type {FilterItemValue}
52
- * @memberof FilterItem
53
- */
54
- value: FilterItemValue;
55
- }
56
-
57
-
58
-
59
- /**
60
- * Check if a given object implements the FilterItem interface.
61
- */
62
- export function instanceOfFilterItem(value: object): value is FilterItem {
63
- if (!('field' in value) || value['field'] === undefined) return false;
64
- if (!('operator' in value) || value['operator'] === undefined) return false;
65
- if (!('value' in value) || value['value'] === undefined) return false;
66
- return true;
67
- }
68
-
69
- export function FilterItemFromJSON(json: any): FilterItem {
70
- return FilterItemFromJSONTyped(json, false);
71
- }
72
-
73
- export function FilterItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterItem {
74
- if (json == null) {
75
- return json;
76
- }
77
- return {
78
-
79
- 'field': json['field'],
80
- 'operator': FilterOperatorFromJSON(json['operator']),
81
- 'value': FilterItemValueFromJSON(json['value']),
82
- };
83
- }
84
-
85
- export function FilterItemToJSON(json: any): FilterItem {
86
- return FilterItemToJSONTyped(json, false);
87
- }
88
-
89
- export function FilterItemToJSONTyped(value?: FilterItem | null, ignoreDiscriminator: boolean = false): any {
90
- if (value == null) {
91
- return value;
92
- }
93
-
94
- return {
95
-
96
- 'field': value['field'],
97
- 'operator': FilterOperatorToJSON(value['operator']),
98
- 'value': FilterItemValueToJSON(value['value']),
99
- };
100
- }
101
-
@@ -1,63 +0,0 @@
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
-
16
- /**
17
- * The operator to use when filtering
18
- * @export
19
- */
20
- export const FilterOperator = {
21
- Contains: 'contains',
22
- EndsWith: 'endsWith',
23
- Equals: 'equals',
24
- Gt: 'gt',
25
- Gte: 'gte',
26
- In: 'in',
27
- Lt: 'lt',
28
- Lte: 'lte',
29
- Not: 'not',
30
- NotIn: 'notIn',
31
- Search: 'search',
32
- StartsWith: 'startsWith'
33
- } as const;
34
- export type FilterOperator = typeof FilterOperator[keyof typeof FilterOperator];
35
-
36
-
37
- export function instanceOfFilterOperator(value: any): boolean {
38
- for (const key in FilterOperator) {
39
- if (Object.prototype.hasOwnProperty.call(FilterOperator, key)) {
40
- if (FilterOperator[key as keyof typeof FilterOperator] === value) {
41
- return true;
42
- }
43
- }
44
- }
45
- return false;
46
- }
47
-
48
- export function FilterOperatorFromJSON(json: any): FilterOperator {
49
- return FilterOperatorFromJSONTyped(json, false);
50
- }
51
-
52
- export function FilterOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterOperator {
53
- return json as FilterOperator;
54
- }
55
-
56
- export function FilterOperatorToJSON(value?: FilterOperator | null): any {
57
- return value as any;
58
- }
59
-
60
- export function FilterOperatorToJSONTyped(value: any, ignoreDiscriminator: boolean): FilterOperator {
61
- return value as FilterOperator;
62
- }
63
-
@@ -1,103 +0,0 @@
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
- import type { FilterItem } from './filter-item';
17
- import {
18
- FilterItemFromJSON,
19
- FilterItemFromJSONTyped,
20
- FilterItemToJSON,
21
- FilterItemToJSONTyped,
22
- } from './filter-item';
23
- import type { BasePaginationQuery } from './base-pagination-query';
24
- import {
25
- BasePaginationQueryFromJSON,
26
- BasePaginationQueryFromJSONTyped,
27
- BasePaginationQueryToJSON,
28
- BasePaginationQueryToJSONTyped,
29
- } from './base-pagination-query';
30
- import type { SortOrder } from './sort-order';
31
- import {
32
- SortOrderFromJSON,
33
- SortOrderFromJSONTyped,
34
- SortOrderToJSON,
35
- SortOrderToJSONTyped,
36
- } from './sort-order';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface GetCustomersQuery
42
- */
43
- export interface GetCustomersQuery {
44
- /**
45
- * The pagination metadata
46
- * @type {BasePaginationQuery}
47
- * @memberof GetCustomersQuery
48
- */
49
- pageOptions?: BasePaginationQuery;
50
- /**
51
- * The sort metadata
52
- * @type {SortOrder}
53
- * @memberof GetCustomersQuery
54
- */
55
- sort?: SortOrder;
56
- /**
57
- * A list of filters to search by.
58
- * @type {Array<FilterItem>}
59
- * @memberof GetCustomersQuery
60
- */
61
- filters?: Array<FilterItem>;
62
- }
63
-
64
- /**
65
- * Check if a given object implements the GetCustomersQuery interface.
66
- */
67
- export function instanceOfGetCustomersQuery(value: object): value is GetCustomersQuery {
68
- return true;
69
- }
70
-
71
- export function GetCustomersQueryFromJSON(json: any): GetCustomersQuery {
72
- return GetCustomersQueryFromJSONTyped(json, false);
73
- }
74
-
75
- export function GetCustomersQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCustomersQuery {
76
- if (json == null) {
77
- return json;
78
- }
79
- return {
80
-
81
- 'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
82
- 'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
83
- 'filters': json['filters'] == null ? undefined : ((json['filters'] as Array<any>).map(FilterItemFromJSON)),
84
- };
85
- }
86
-
87
- export function GetCustomersQueryToJSON(json: any): GetCustomersQuery {
88
- return GetCustomersQueryToJSONTyped(json, false);
89
- }
90
-
91
- export function GetCustomersQueryToJSONTyped(value?: GetCustomersQuery | null, ignoreDiscriminator: boolean = false): any {
92
- if (value == null) {
93
- return value;
94
- }
95
-
96
- return {
97
-
98
- 'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
99
- 'sort': SortOrderToJSON(value['sort']),
100
- 'filters': value['filters'] == null ? undefined : ((value['filters'] as Array<any>).map(FilterItemToJSON)),
101
- };
102
- }
103
-
@@ -1,119 +0,0 @@
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
- import type { BasePaginationQuery } from './base-pagination-query';
17
- import {
18
- BasePaginationQueryFromJSON,
19
- BasePaginationQueryFromJSONTyped,
20
- BasePaginationQueryToJSON,
21
- BasePaginationQueryToJSONTyped,
22
- } from './base-pagination-query';
23
- import type { PluginFilterItem } from './plugin-filter-item';
24
- import {
25
- PluginFilterItemFromJSON,
26
- PluginFilterItemFromJSONTyped,
27
- PluginFilterItemToJSON,
28
- PluginFilterItemToJSONTyped,
29
- } from './plugin-filter-item';
30
- import type { SortOrder } from './sort-order';
31
- import {
32
- SortOrderFromJSON,
33
- SortOrderFromJSONTyped,
34
- SortOrderToJSON,
35
- SortOrderToJSONTyped,
36
- } from './sort-order';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface GetInvoicesQuery
42
- */
43
- export interface GetInvoicesQuery {
44
- /**
45
- * The pagination metadata
46
- * @type {BasePaginationQuery}
47
- * @memberof GetInvoicesQuery
48
- */
49
- pageOptions?: BasePaginationQuery;
50
- /**
51
- * The sort metadata
52
- * @type {SortOrder}
53
- * @memberof GetInvoicesQuery
54
- */
55
- sort?: SortOrder;
56
- /**
57
- * Status value and operator to filter by
58
- * @type {PluginFilterItem}
59
- * @memberof GetInvoicesQuery
60
- */
61
- status?: PluginFilterItem;
62
- /**
63
- * External customer ID value and operator to filter by
64
- * @type {PluginFilterItem}
65
- * @memberof GetInvoicesQuery
66
- */
67
- externalCustomerId?: PluginFilterItem;
68
- /**
69
- * Billing run ID value and operator to filter by
70
- * @type {PluginFilterItem}
71
- * @memberof GetInvoicesQuery
72
- */
73
- billingRunId?: PluginFilterItem;
74
- }
75
-
76
- /**
77
- * Check if a given object implements the GetInvoicesQuery interface.
78
- */
79
- export function instanceOfGetInvoicesQuery(value: object): value is GetInvoicesQuery {
80
- return true;
81
- }
82
-
83
- export function GetInvoicesQueryFromJSON(json: any): GetInvoicesQuery {
84
- return GetInvoicesQueryFromJSONTyped(json, false);
85
- }
86
-
87
- export function GetInvoicesQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoicesQuery {
88
- if (json == null) {
89
- return json;
90
- }
91
- return {
92
-
93
- 'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
94
- 'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
95
- 'status': json['status'] == null ? undefined : PluginFilterItemFromJSON(json['status']),
96
- 'externalCustomerId': json['externalCustomerId'] == null ? undefined : PluginFilterItemFromJSON(json['externalCustomerId']),
97
- 'billingRunId': json['billingRunId'] == null ? undefined : PluginFilterItemFromJSON(json['billingRunId']),
98
- };
99
- }
100
-
101
- export function GetInvoicesQueryToJSON(json: any): GetInvoicesQuery {
102
- return GetInvoicesQueryToJSONTyped(json, false);
103
- }
104
-
105
- export function GetInvoicesQueryToJSONTyped(value?: GetInvoicesQuery | null, ignoreDiscriminator: boolean = false): any {
106
- if (value == null) {
107
- return value;
108
- }
109
-
110
- return {
111
-
112
- 'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
113
- 'sort': SortOrderToJSON(value['sort']),
114
- 'status': PluginFilterItemToJSON(value['status']),
115
- 'externalCustomerId': PluginFilterItemToJSON(value['externalCustomerId']),
116
- 'billingRunId': PluginFilterItemToJSON(value['billingRunId']),
117
- };
118
- }
119
-
@@ -1,127 +0,0 @@
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
- import type { BasePaginationQuery } from './base-pagination-query';
17
- import {
18
- BasePaginationQueryFromJSON,
19
- BasePaginationQueryFromJSONTyped,
20
- BasePaginationQueryToJSON,
21
- BasePaginationQueryToJSONTyped,
22
- } from './base-pagination-query';
23
- import type { PluginFilterItem } from './plugin-filter-item';
24
- import {
25
- PluginFilterItemFromJSON,
26
- PluginFilterItemFromJSONTyped,
27
- PluginFilterItemToJSON,
28
- PluginFilterItemToJSONTyped,
29
- } from './plugin-filter-item';
30
- import type { SortOrder } from './sort-order';
31
- import {
32
- SortOrderFromJSON,
33
- SortOrderFromJSONTyped,
34
- SortOrderToJSON,
35
- SortOrderToJSONTyped,
36
- } from './sort-order';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface GetSubscriptionsQuery
42
- */
43
- export interface GetSubscriptionsQuery {
44
- /**
45
- * The pagination metadata
46
- * @type {BasePaginationQuery}
47
- * @memberof GetSubscriptionsQuery
48
- */
49
- pageOptions?: BasePaginationQuery;
50
- /**
51
- * The sort metadata
52
- * @type {SortOrder}
53
- * @memberof GetSubscriptionsQuery
54
- */
55
- sort?: SortOrder;
56
- /**
57
- * Status value and operator to filter by
58
- * @type {PluginFilterItem}
59
- * @memberof GetSubscriptionsQuery
60
- */
61
- status?: PluginFilterItem;
62
- /**
63
- * Asset ID value and operator to filter by
64
- * @type {PluginFilterItem}
65
- * @memberof GetSubscriptionsQuery
66
- */
67
- assetId?: PluginFilterItem;
68
- /**
69
- * Customer ID value and operator to filter by
70
- * @type {PluginFilterItem}
71
- * @memberof GetSubscriptionsQuery
72
- */
73
- customerId?: PluginFilterItem;
74
- /**
75
- * Site ID value and operator to filter by
76
- * @type {PluginFilterItem}
77
- * @memberof GetSubscriptionsQuery
78
- */
79
- siteId?: PluginFilterItem;
80
- }
81
-
82
- /**
83
- * Check if a given object implements the GetSubscriptionsQuery interface.
84
- */
85
- export function instanceOfGetSubscriptionsQuery(value: object): value is GetSubscriptionsQuery {
86
- return true;
87
- }
88
-
89
- export function GetSubscriptionsQueryFromJSON(json: any): GetSubscriptionsQuery {
90
- return GetSubscriptionsQueryFromJSONTyped(json, false);
91
- }
92
-
93
- export function GetSubscriptionsQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSubscriptionsQuery {
94
- if (json == null) {
95
- return json;
96
- }
97
- return {
98
-
99
- 'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
100
- 'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
101
- 'status': json['status'] == null ? undefined : PluginFilterItemFromJSON(json['status']),
102
- 'assetId': json['assetId'] == null ? undefined : PluginFilterItemFromJSON(json['assetId']),
103
- 'customerId': json['customerId'] == null ? undefined : PluginFilterItemFromJSON(json['customerId']),
104
- 'siteId': json['siteId'] == null ? undefined : PluginFilterItemFromJSON(json['siteId']),
105
- };
106
- }
107
-
108
- export function GetSubscriptionsQueryToJSON(json: any): GetSubscriptionsQuery {
109
- return GetSubscriptionsQueryToJSONTyped(json, false);
110
- }
111
-
112
- export function GetSubscriptionsQueryToJSONTyped(value?: GetSubscriptionsQuery | null, ignoreDiscriminator: boolean = false): any {
113
- if (value == null) {
114
- return value;
115
- }
116
-
117
- return {
118
-
119
- 'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
120
- 'sort': SortOrderToJSON(value['sort']),
121
- 'status': PluginFilterItemToJSON(value['status']),
122
- 'assetId': PluginFilterItemToJSON(value['assetId']),
123
- 'customerId': PluginFilterItemToJSON(value['customerId']),
124
- 'siteId': PluginFilterItemToJSON(value['siteId']),
125
- };
126
- }
127
-