@managespace/sdk 0.1.19 → 0.1.21
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 +19 -1
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +15 -0
- package/dist/generated/apis/default-api.d.ts +44 -8
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +150 -14
- package/dist/generated/models/create-template.d.ts +2 -2
- package/dist/generated/models/create-template.d.ts.map +1 -1
- package/dist/generated/models/create-template.js +3 -3
- package/dist/generated/models/document-complete.d.ts +2 -2
- package/dist/generated/models/document-complete.d.ts.map +1 -1
- package/dist/generated/models/document-complete.js +3 -3
- package/dist/generated/models/filter-item.d.ts +9 -9
- package/dist/generated/models/filter-item.d.ts.map +1 -1
- package/dist/generated/models/filter-item.js +7 -7
- package/dist/generated/models/filter-operator.d.ts +36 -0
- package/dist/generated/models/filter-operator.d.ts.map +1 -0
- package/dist/generated/models/filter-operator.js +61 -0
- package/dist/generated/models/index.d.ts +6 -3
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +6 -3
- package/dist/generated/models/plugin-filter-item.d.ts +3 -3
- package/dist/generated/models/plugin-filter-item.d.ts.map +1 -1
- package/dist/generated/models/plugin-filter-item.js +3 -3
- package/dist/generated/models/plugin-filter-operator.d.ts +27 -0
- package/dist/generated/models/plugin-filter-operator.d.ts.map +1 -0
- package/dist/generated/models/plugin-filter-operator.js +52 -0
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +21 -0
- package/src/generated/.openapi-generator/FILES +6 -3
- package/src/generated/apis/default-api.ts +233 -31
- package/src/generated/models/create-product-tax-group.ts +82 -0
- package/src/generated/models/create-template.ts +5 -5
- package/src/generated/models/document-complete.ts +5 -5
- package/src/generated/models/filter-item.ts +19 -19
- package/src/generated/models/filter-operator.ts +63 -0
- package/src/generated/models/get-product-tax-groups200-response.ts +89 -0
- package/src/generated/models/index.ts +6 -3
- package/src/generated/models/notstarted.ts +55 -0
- package/src/generated/models/plugin-filter-item.ts +10 -10
- package/src/generated/models/plugin-filter-operator.ts +54 -0
- package/src/generated/models/product-tax-group.ts +109 -0
- package/src/generated/models/comparison-operator.ts +0 -63
- package/src/generated/models/get-subscriptions-post200-response.ts +0 -89
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
FilterItemValueToJSON,
|
|
21
21
|
FilterItemValueToJSONTyped,
|
|
22
22
|
} from './filter-item-value';
|
|
23
|
-
import type {
|
|
23
|
+
import type { FilterOperator } from './filter-operator';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
FilterOperatorFromJSON,
|
|
26
|
+
FilterOperatorFromJSONTyped,
|
|
27
|
+
FilterOperatorToJSON,
|
|
28
|
+
FilterOperatorToJSONTyped,
|
|
29
|
+
} from './filter-operator';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -35,23 +35,23 @@ import {
|
|
|
35
35
|
*/
|
|
36
36
|
export interface FilterItem {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {
|
|
38
|
+
* Field to filter by
|
|
39
|
+
* @type {string}
|
|
40
40
|
* @memberof FilterItem
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
field: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {FilterOperator}
|
|
46
46
|
* @memberof FilterItem
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
operator: FilterOperator;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {
|
|
50
|
+
*
|
|
51
|
+
* @type {FilterItemValue}
|
|
52
52
|
* @memberof FilterItem
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
value: FilterItemValue;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
|
|
@@ -60,9 +60,9 @@ export interface FilterItem {
|
|
|
60
60
|
* Check if a given object implements the FilterItem interface.
|
|
61
61
|
*/
|
|
62
62
|
export function instanceOfFilterItem(value: object): value is FilterItem {
|
|
63
|
+
if (!('field' in value) || value['field'] === undefined) return false;
|
|
63
64
|
if (!('operator' in value) || value['operator'] === undefined) return false;
|
|
64
65
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
65
|
-
if (!('field' in value) || value['field'] === undefined) return false;
|
|
66
66
|
return true;
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -76,9 +76,9 @@ export function FilterItemFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
76
76
|
}
|
|
77
77
|
return {
|
|
78
78
|
|
|
79
|
-
'operator': ComparisonOperatorFromJSON(json['operator']),
|
|
80
|
-
'value': FilterItemValueFromJSON(json['value']),
|
|
81
79
|
'field': json['field'],
|
|
80
|
+
'operator': FilterOperatorFromJSON(json['operator']),
|
|
81
|
+
'value': FilterItemValueFromJSON(json['value']),
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -93,9 +93,9 @@ export function FilterItemToJSONTyped(value?: FilterItem | null, ignoreDiscrimin
|
|
|
93
93
|
|
|
94
94
|
return {
|
|
95
95
|
|
|
96
|
-
'operator': ComparisonOperatorToJSON(value['operator']),
|
|
97
|
-
'value': FilterItemValueToJSON(value['value']),
|
|
98
96
|
'field': value['field'],
|
|
97
|
+
'operator': FilterOperatorToJSON(value['operator']),
|
|
98
|
+
'value': FilterItemValueToJSON(value['value']),
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { PageMeta } from './page-meta';
|
|
17
|
+
import {
|
|
18
|
+
PageMetaFromJSON,
|
|
19
|
+
PageMetaFromJSONTyped,
|
|
20
|
+
PageMetaToJSON,
|
|
21
|
+
PageMetaToJSONTyped,
|
|
22
|
+
} from './page-meta';
|
|
23
|
+
import type { ProductTaxGroup } from './product-tax-group';
|
|
24
|
+
import {
|
|
25
|
+
ProductTaxGroupFromJSON,
|
|
26
|
+
ProductTaxGroupFromJSONTyped,
|
|
27
|
+
ProductTaxGroupToJSON,
|
|
28
|
+
ProductTaxGroupToJSONTyped,
|
|
29
|
+
} from './product-tax-group';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetProductTaxGroups200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface GetProductTaxGroups200Response {
|
|
37
|
+
/**
|
|
38
|
+
* The pagination metadata
|
|
39
|
+
* @type {PageMeta}
|
|
40
|
+
* @memberof GetProductTaxGroups200Response
|
|
41
|
+
*/
|
|
42
|
+
pageMeta: PageMeta;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ProductTaxGroup>}
|
|
46
|
+
* @memberof GetProductTaxGroups200Response
|
|
47
|
+
*/
|
|
48
|
+
results?: Array<ProductTaxGroup>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetProductTaxGroups200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetProductTaxGroups200Response(value: object): value is GetProductTaxGroups200Response {
|
|
55
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetProductTaxGroups200ResponseFromJSON(json: any): GetProductTaxGroups200Response {
|
|
60
|
+
return GetProductTaxGroups200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetProductTaxGroups200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductTaxGroups200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ProductTaxGroupFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetProductTaxGroups200ResponseToJSON(json: any): GetProductTaxGroups200Response {
|
|
75
|
+
return GetProductTaxGroups200ResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetProductTaxGroups200ResponseToJSONTyped(value?: GetProductTaxGroups200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ProductTaxGroupToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -20,7 +20,6 @@ export * from './checklist';
|
|
|
20
20
|
export * from './checklist-recurrence-frequency';
|
|
21
21
|
export * from './communication';
|
|
22
22
|
export * from './communication-type';
|
|
23
|
-
export * from './comparison-operator';
|
|
24
23
|
export * from './configuration-setting';
|
|
25
24
|
export * from './configuration-setting-type';
|
|
26
25
|
export * from './contact';
|
|
@@ -50,6 +49,7 @@ export * from './create-payment-refund';
|
|
|
50
49
|
export * from './create-payment-run';
|
|
51
50
|
export * from './create-plan-charge';
|
|
52
51
|
export * from './create-product-custom';
|
|
52
|
+
export * from './create-product-tax-group';
|
|
53
53
|
export * from './create-revenue-rule';
|
|
54
54
|
export * from './create-site-custom';
|
|
55
55
|
export * from './create-smart-bar-prompt';
|
|
@@ -83,6 +83,7 @@ export * from './field-type';
|
|
|
83
83
|
export * from './file-uploaded';
|
|
84
84
|
export * from './filter-item';
|
|
85
85
|
export * from './filter-item-value';
|
|
86
|
+
export * from './filter-operator';
|
|
86
87
|
export * from './get-asset-categories200-response';
|
|
87
88
|
export * from './get-asset-classes200-response';
|
|
88
89
|
export * from './get-asset-features200-response';
|
|
@@ -108,11 +109,12 @@ export * from './get-payment-runs200-response';
|
|
|
108
109
|
export * from './get-payments200-response';
|
|
109
110
|
export * from './get-plans200-response';
|
|
110
111
|
export * from './get-plugins200-response';
|
|
112
|
+
export * from './get-product-tax-groups200-response';
|
|
111
113
|
export * from './get-products200-response';
|
|
112
114
|
export * from './get-revenue-rules200-response';
|
|
113
115
|
export * from './get-sites200-response';
|
|
114
116
|
export * from './get-statements200-response';
|
|
115
|
-
export * from './get-
|
|
117
|
+
export * from './get-subscriptions200-response';
|
|
116
118
|
export * from './get-subscriptions-query';
|
|
117
119
|
export * from './get-task-definitions200-response';
|
|
118
120
|
export * from './get-task-instances200-response';
|
|
@@ -151,8 +153,10 @@ export * from './plugin-extensibility-function-instance';
|
|
|
151
153
|
export * from './plugin-extensibility-function-metadata';
|
|
152
154
|
export * from './plugin-extensibility-status';
|
|
153
155
|
export * from './plugin-filter-item';
|
|
156
|
+
export * from './plugin-filter-operator';
|
|
154
157
|
export * from './plugin-version';
|
|
155
158
|
export * from './product-custom';
|
|
159
|
+
export * from './product-tax-group';
|
|
156
160
|
export * from './project';
|
|
157
161
|
export * from './project1';
|
|
158
162
|
export * from './project2';
|
|
@@ -211,7 +215,6 @@ export * from './update-subscription-charge';
|
|
|
211
215
|
export * from './update-task-instance';
|
|
212
216
|
export * from './update-user-properties';
|
|
213
217
|
export * from './update-workflow-instance-description';
|
|
214
|
-
export * from './upload-document';
|
|
215
218
|
export * from './uploaded-document';
|
|
216
219
|
export * from './user';
|
|
217
220
|
export * from './user-id';
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const NOTSTARTED = {
|
|
21
|
+
NotStarted: 'NOT_STARTED',
|
|
22
|
+
InProgress: 'IN_PROGRESS',
|
|
23
|
+
Complete: 'COMPLETE',
|
|
24
|
+
Overdue: 'OVERDUE'
|
|
25
|
+
} as const;
|
|
26
|
+
export type NOTSTARTED = typeof NOTSTARTED[keyof typeof NOTSTARTED];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfNOTSTARTED(value: any): boolean {
|
|
30
|
+
for (const key in NOTSTARTED) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(NOTSTARTED, key)) {
|
|
32
|
+
if (NOTSTARTED[key as keyof typeof NOTSTARTED] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function NOTSTARTEDFromJSON(json: any): NOTSTARTED {
|
|
41
|
+
return NOTSTARTEDFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function NOTSTARTEDFromJSONTyped(json: any, ignoreDiscriminator: boolean): NOTSTARTED {
|
|
45
|
+
return json as NOTSTARTED;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function NOTSTARTEDToJSON(value?: NOTSTARTED | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function NOTSTARTEDToJSONTyped(value: any, ignoreDiscriminator: boolean): NOTSTARTED {
|
|
53
|
+
return value as NOTSTARTED;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
FilterItemValueToJSON,
|
|
21
21
|
FilterItemValueToJSONTyped,
|
|
22
22
|
} from './filter-item-value';
|
|
23
|
-
import type {
|
|
23
|
+
import type { PluginFilterOperator } from './plugin-filter-operator';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
PluginFilterOperatorFromJSON,
|
|
26
|
+
PluginFilterOperatorFromJSONTyped,
|
|
27
|
+
PluginFilterOperatorToJSON,
|
|
28
|
+
PluginFilterOperatorToJSONTyped,
|
|
29
|
+
} from './plugin-filter-operator';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
export interface PluginFilterItem {
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {PluginFilterOperator}
|
|
40
40
|
* @memberof PluginFilterItem
|
|
41
41
|
*/
|
|
42
|
-
operator:
|
|
42
|
+
operator: PluginFilterOperator;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {FilterItemValue}
|
|
@@ -69,7 +69,7 @@ export function PluginFilterItemFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
69
69
|
}
|
|
70
70
|
return {
|
|
71
71
|
|
|
72
|
-
'operator':
|
|
72
|
+
'operator': PluginFilterOperatorFromJSON(json['operator']),
|
|
73
73
|
'value': FilterItemValueFromJSON(json['value']),
|
|
74
74
|
};
|
|
75
75
|
}
|
|
@@ -85,7 +85,7 @@ export function PluginFilterItemToJSONTyped(value?: PluginFilterItem | null, ign
|
|
|
85
85
|
|
|
86
86
|
return {
|
|
87
87
|
|
|
88
|
-
'operator':
|
|
88
|
+
'operator': PluginFilterOperatorToJSON(value['operator']),
|
|
89
89
|
'value': FilterItemValueToJSON(value['value']),
|
|
90
90
|
};
|
|
91
91
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 PluginFilterOperator = {
|
|
21
|
+
Equals: 'equals',
|
|
22
|
+
Gt: 'gt',
|
|
23
|
+
Lt: 'lt'
|
|
24
|
+
} as const;
|
|
25
|
+
export type PluginFilterOperator = typeof PluginFilterOperator[keyof typeof PluginFilterOperator];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfPluginFilterOperator(value: any): boolean {
|
|
29
|
+
for (const key in PluginFilterOperator) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(PluginFilterOperator, key)) {
|
|
31
|
+
if (PluginFilterOperator[key as keyof typeof PluginFilterOperator] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function PluginFilterOperatorFromJSON(json: any): PluginFilterOperator {
|
|
40
|
+
return PluginFilterOperatorFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PluginFilterOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): PluginFilterOperator {
|
|
44
|
+
return json as PluginFilterOperator;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PluginFilterOperatorToJSON(value?: PluginFilterOperator | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PluginFilterOperatorToJSONTyped(value: any, ignoreDiscriminator: boolean): PluginFilterOperator {
|
|
52
|
+
return value as PluginFilterOperator;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
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 ProductTaxGroup
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductTaxGroup {
|
|
22
|
+
/**
|
|
23
|
+
* name of tax group
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProductTaxGroup
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Note for tax group
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductTaxGroup
|
|
32
|
+
*/
|
|
33
|
+
notes?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Status of tax group
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProductTaxGroup
|
|
38
|
+
*/
|
|
39
|
+
status?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Product Tax Group ID
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ProductTaxGroup
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
/**
|
|
47
|
+
* The date the product tax group was created
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ProductTaxGroup
|
|
50
|
+
*/
|
|
51
|
+
createdAt: string;
|
|
52
|
+
/**
|
|
53
|
+
* The date the product tax group was updated
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ProductTaxGroup
|
|
56
|
+
*/
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ProductTaxGroup interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfProductTaxGroup(value: object): value is ProductTaxGroup {
|
|
64
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
65
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
66
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
67
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ProductTaxGroupFromJSON(json: any): ProductTaxGroup {
|
|
72
|
+
return ProductTaxGroupFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ProductTaxGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTaxGroup {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'name': json['name'],
|
|
82
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
83
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
84
|
+
'id': json['id'],
|
|
85
|
+
'createdAt': json['createdAt'],
|
|
86
|
+
'updatedAt': json['updatedAt'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ProductTaxGroupToJSON(json: any): ProductTaxGroup {
|
|
91
|
+
return ProductTaxGroupToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ProductTaxGroupToJSONTyped(value?: ProductTaxGroup | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'name': value['name'],
|
|
102
|
+
'notes': value['notes'],
|
|
103
|
+
'status': value['status'],
|
|
104
|
+
'id': value['id'],
|
|
105
|
+
'createdAt': value['createdAt'],
|
|
106
|
+
'updatedAt': value['updatedAt'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -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 ComparisonOperator = {
|
|
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 ComparisonOperator = typeof ComparisonOperator[keyof typeof ComparisonOperator];
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export function instanceOfComparisonOperator(value: any): boolean {
|
|
38
|
-
for (const key in ComparisonOperator) {
|
|
39
|
-
if (Object.prototype.hasOwnProperty.call(ComparisonOperator, key)) {
|
|
40
|
-
if (ComparisonOperator[key as keyof typeof ComparisonOperator] === value) {
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function ComparisonOperatorFromJSON(json: any): ComparisonOperator {
|
|
49
|
-
return ComparisonOperatorFromJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ComparisonOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComparisonOperator {
|
|
53
|
-
return json as ComparisonOperator;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ComparisonOperatorToJSON(value?: ComparisonOperator | null): any {
|
|
57
|
-
return value as any;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function ComparisonOperatorToJSONTyped(value: any, ignoreDiscriminator: boolean): ComparisonOperator {
|
|
61
|
-
return value as ComparisonOperator;
|
|
62
|
-
}
|
|
63
|
-
|