@managespace/sdk 0.1.21 → 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.
- package/dist/extensibility/functions/project/billing.d.ts +11 -3
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/generated/apis/default-api.d.ts +23 -9
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +60 -22
- package/dist/generated/models/index.d.ts +1 -11
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -11
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +9 -4
- package/src/generated/.openapi-generator/FILES +1 -11
- package/src/generated/apis/default-api.ts +105 -44
- package/src/generated/models/change-active-site.ts +66 -0
- package/src/generated/models/create-checklist.ts +135 -0
- package/src/generated/models/create-task-template.ts +83 -0
- package/src/generated/models/create-task.ts +135 -0
- package/src/generated/models/custom-update-task-template.ts +93 -0
- package/src/generated/models/document-signed.ts +115 -0
- package/src/generated/models/{update-customer200-response.ts → get-customers200-response.ts} +12 -12
- package/src/generated/models/get-payments1200-response.ts +89 -0
- package/src/generated/models/get-task-templates200-response.ts +89 -0
- package/src/generated/models/get-tasks200-response.ts +89 -0
- package/src/generated/models/index.ts +1 -11
- package/src/generated/models/task-template.ts +187 -0
- package/src/generated/models/task.ts +290 -0
- package/src/generated/models/update-checklist-task-template.ts +66 -0
- package/dist/generated/models/base-pagination-query.d.ts +0 -39
- package/dist/generated/models/base-pagination-query.d.ts.map +0 -1
- package/dist/generated/models/base-pagination-query.js +0 -51
- package/dist/generated/models/comparison-operator.d.ts +0 -36
- package/dist/generated/models/comparison-operator.d.ts.map +0 -1
- package/dist/generated/models/comparison-operator.js +0 -61
- package/dist/generated/models/filter-item-value.d.ts +0 -27
- package/dist/generated/models/filter-item-value.d.ts.map +0 -1
- package/dist/generated/models/filter-item-value.js +0 -39
- package/dist/generated/models/filter-item.d.ts +0 -47
- package/dist/generated/models/filter-item.d.ts.map +0 -1
- package/dist/generated/models/filter-item.js +0 -61
- package/dist/generated/models/filter-operator.d.ts +0 -36
- package/dist/generated/models/filter-operator.d.ts.map +0 -1
- package/dist/generated/models/filter-operator.js +0 -61
- package/dist/generated/models/get-customers-query.d.ts +0 -48
- package/dist/generated/models/get-customers-query.d.ts.map +0 -1
- package/dist/generated/models/get-customers-query.js +0 -56
- package/dist/generated/models/get-subscriptions-post200-response.d.ts +0 -41
- package/dist/generated/models/get-subscriptions-post200-response.d.ts.map +0 -1
- package/dist/generated/models/get-subscriptions-post200-response.js +0 -55
- package/dist/generated/models/get-subscriptions-query.d.ts +0 -66
- package/dist/generated/models/get-subscriptions-query.d.ts.map +0 -1
- package/dist/generated/models/get-subscriptions-query.js +0 -62
- package/dist/generated/models/order-operator.d.ts +0 -26
- package/dist/generated/models/order-operator.d.ts.map +0 -1
- package/dist/generated/models/order-operator.js +0 -51
- package/dist/generated/models/plugin-filter-item.d.ts +0 -41
- package/dist/generated/models/plugin-filter-item.d.ts.map +0 -1
- package/dist/generated/models/plugin-filter-item.js +0 -57
- package/dist/generated/models/plugin-filter-operator.d.ts +0 -27
- package/dist/generated/models/plugin-filter-operator.d.ts.map +0 -1
- package/dist/generated/models/plugin-filter-operator.js +0 -52
- package/dist/generated/models/sort-order.d.ts +0 -40
- package/dist/generated/models/sort-order.d.ts.map +0 -1
- package/dist/generated/models/sort-order.js +0 -52
- package/dist/generated/models/update-customer200-response.d.ts +0 -41
- package/dist/generated/models/update-customer200-response.d.ts.map +0 -1
- package/dist/generated/models/update-customer200-response.js +0 -55
- package/src/generated/models/base-pagination-query.ts +0 -73
- package/src/generated/models/filter-item-value.ts +0 -46
- package/src/generated/models/filter-item.ts +0 -101
- package/src/generated/models/filter-operator.ts +0 -63
- package/src/generated/models/get-customers-query.ts +0 -103
- package/src/generated/models/get-subscriptions-query.ts +0 -127
- package/src/generated/models/order-operator.ts +0 -53
- package/src/generated/models/plugin-filter-item.ts +0 -92
- package/src/generated/models/plugin-filter-operator.ts +0 -54
- package/src/generated/models/sort-order.ts +0 -83
|
@@ -1,73 +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
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface BasePaginationQuery
|
|
20
|
-
*/
|
|
21
|
-
export interface BasePaginationQuery {
|
|
22
|
-
/**
|
|
23
|
-
* The offset of the first record to return (0-indexed).
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof BasePaginationQuery
|
|
26
|
-
*/
|
|
27
|
-
offset?: number;
|
|
28
|
-
/**
|
|
29
|
-
* The maximum number of records to return per page.
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof BasePaginationQuery
|
|
32
|
-
*/
|
|
33
|
-
limit?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the BasePaginationQuery interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfBasePaginationQuery(value: object): value is BasePaginationQuery {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function BasePaginationQueryFromJSON(json: any): BasePaginationQuery {
|
|
44
|
-
return BasePaginationQueryFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function BasePaginationQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): BasePaginationQuery {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
|
|
53
|
-
'offset': json['offset'] == null ? undefined : json['offset'],
|
|
54
|
-
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function BasePaginationQueryToJSON(json: any): BasePaginationQuery {
|
|
59
|
-
return BasePaginationQueryToJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function BasePaginationQueryToJSONTyped(value?: BasePaginationQuery | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
-
if (value == null) {
|
|
64
|
-
return value;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'offset': value['offset'],
|
|
70
|
-
'limit': value['limit'],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -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,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
|
-
|
|
@@ -1,53 +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 order to sort by
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const OrderOperator = {
|
|
21
|
-
Asc: 'asc',
|
|
22
|
-
Desc: 'desc'
|
|
23
|
-
} as const;
|
|
24
|
-
export type OrderOperator = typeof OrderOperator[keyof typeof OrderOperator];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export function instanceOfOrderOperator(value: any): boolean {
|
|
28
|
-
for (const key in OrderOperator) {
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(OrderOperator, key)) {
|
|
30
|
-
if (OrderOperator[key as keyof typeof OrderOperator] === value) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function OrderOperatorFromJSON(json: any): OrderOperator {
|
|
39
|
-
return OrderOperatorFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function OrderOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderOperator {
|
|
43
|
-
return json as OrderOperator;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function OrderOperatorToJSON(value?: OrderOperator | null): any {
|
|
47
|
-
return value as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function OrderOperatorToJSONTyped(value: any, ignoreDiscriminator: boolean): OrderOperator {
|
|
51
|
-
return value as OrderOperator;
|
|
52
|
-
}
|
|
53
|
-
|
|
@@ -1,92 +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 { PluginFilterOperator } from './plugin-filter-operator';
|
|
24
|
-
import {
|
|
25
|
-
PluginFilterOperatorFromJSON,
|
|
26
|
-
PluginFilterOperatorFromJSONTyped,
|
|
27
|
-
PluginFilterOperatorToJSON,
|
|
28
|
-
PluginFilterOperatorToJSONTyped,
|
|
29
|
-
} from './plugin-filter-operator';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PluginFilterItem
|
|
35
|
-
*/
|
|
36
|
-
export interface PluginFilterItem {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {PluginFilterOperator}
|
|
40
|
-
* @memberof PluginFilterItem
|
|
41
|
-
*/
|
|
42
|
-
operator: PluginFilterOperator;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {FilterItemValue}
|
|
46
|
-
* @memberof PluginFilterItem
|
|
47
|
-
*/
|
|
48
|
-
value: FilterItemValue;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Check if a given object implements the PluginFilterItem interface.
|
|
55
|
-
*/
|
|
56
|
-
export function instanceOfPluginFilterItem(value: object): value is PluginFilterItem {
|
|
57
|
-
if (!('operator' in value) || value['operator'] === undefined) return false;
|
|
58
|
-
if (!('value' in value) || value['value'] === undefined) return false;
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function PluginFilterItemFromJSON(json: any): PluginFilterItem {
|
|
63
|
-
return PluginFilterItemFromJSONTyped(json, false);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function PluginFilterItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PluginFilterItem {
|
|
67
|
-
if (json == null) {
|
|
68
|
-
return json;
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
|
|
72
|
-
'operator': PluginFilterOperatorFromJSON(json['operator']),
|
|
73
|
-
'value': FilterItemValueFromJSON(json['value']),
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function PluginFilterItemToJSON(json: any): PluginFilterItem {
|
|
78
|
-
return PluginFilterItemToJSONTyped(json, false);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function PluginFilterItemToJSONTyped(value?: PluginFilterItem | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
-
if (value == null) {
|
|
83
|
-
return value;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return {
|
|
87
|
-
|
|
88
|
-
'operator': PluginFilterOperatorToJSON(value['operator']),
|
|
89
|
-
'value': FilterItemValueToJSON(value['value']),
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|