@managespace/sdk 0.0.209 → 0.0.211
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 +25 -14
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +10 -0
- package/dist/extensibility/functions/project/communication-method.d.ts +1 -1
- package/dist/extensibility/functions/project/communication-method.d.ts.map +1 -1
- package/dist/extensibility/functions/project/managespace.d.ts +6 -0
- package/dist/extensibility/functions/project/managespace.d.ts.map +1 -1
- package/dist/extensibility/functions/project/managespace.js +5 -0
- package/dist/extensibility/functions/project/topics.enum.d.ts +2 -1
- package/dist/extensibility/functions/project/topics.enum.d.ts.map +1 -1
- package/dist/extensibility/functions/project/topics.enum.js +1 -0
- package/dist/generated/apis/default-api.d.ts +77 -38
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +813 -730
- package/dist/generated/models/assets.d.ts +34 -0
- package/dist/generated/models/assets.d.ts.map +1 -0
- package/dist/generated/models/assets.js +52 -0
- package/dist/generated/models/base-pagination-query.d.ts +39 -0
- package/dist/generated/models/base-pagination-query.d.ts.map +1 -0
- package/dist/generated/models/base-pagination-query.js +51 -0
- package/dist/generated/models/complex-query.d.ts +48 -0
- package/dist/generated/models/complex-query.d.ts.map +1 -0
- package/dist/generated/models/complex-query.js +56 -0
- package/dist/generated/models/create-journal-entry.d.ts +58 -0
- package/dist/generated/models/create-journal-entry.d.ts.map +1 -0
- package/dist/generated/models/create-journal-entry.js +64 -0
- package/dist/generated/models/create-notes.d.ts +34 -0
- package/dist/generated/models/create-notes.d.ts.map +1 -0
- package/dist/generated/models/create-notes.js +52 -0
- 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-value.d.ts +27 -0
- package/dist/generated/models/filter-item-value.d.ts.map +1 -0
- package/dist/generated/models/filter-item-value.js +39 -0
- package/dist/generated/models/filter-item.d.ts +47 -0
- package/dist/generated/models/filter-item.d.ts.map +1 -0
- package/dist/generated/models/filter-item.js +61 -0
- 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/get-customers-query.d.ts +48 -0
- package/dist/generated/models/get-customers-query.d.ts.map +1 -0
- package/dist/generated/models/get-customers-query.js +56 -0
- package/dist/generated/models/get-invoices-query.d.ts +60 -0
- package/dist/generated/models/get-invoices-query.d.ts.map +1 -0
- package/dist/generated/models/get-invoices-query.js +60 -0
- package/dist/generated/models/get-subscriptions-query.d.ts +66 -0
- package/dist/generated/models/get-subscriptions-query.d.ts.map +1 -0
- package/dist/generated/models/get-subscriptions-query.js +62 -0
- package/dist/generated/models/index.d.ts +16 -3
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +16 -3
- package/dist/generated/models/journal-entry-entries.d.ts +75 -0
- package/dist/generated/models/journal-entry-entries.d.ts.map +1 -0
- package/dist/generated/models/journal-entry-entries.js +73 -0
- package/dist/generated/models/journal-entry.d.ts +106 -0
- package/dist/generated/models/journal-entry.d.ts.map +1 -0
- package/dist/generated/models/journal-entry.js +96 -0
- package/dist/generated/models/order-operator.d.ts +26 -0
- package/dist/generated/models/order-operator.d.ts.map +1 -0
- package/dist/generated/models/order-operator.js +51 -0
- package/dist/generated/models/plugin-filter-item.d.ts +41 -0
- package/dist/generated/models/plugin-filter-item.d.ts.map +1 -0
- package/dist/generated/models/plugin-filter-item.js +57 -0
- 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/dist/generated/models/sort-order.d.ts +40 -0
- package/dist/generated/models/sort-order.d.ts.map +1 -0
- package/dist/generated/models/sort-order.js +52 -0
- package/dist/generated/models/update-customer200-response.d.ts +41 -0
- package/dist/generated/models/update-customer200-response.d.ts.map +1 -0
- package/dist/generated/models/update-customer200-response.js +55 -0
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +25 -15
- package/src/extensibility/functions/project/communication-method.ts +1 -1
- package/src/extensibility/functions/project/managespace.ts +5 -0
- package/src/extensibility/functions/project/topics.enum.ts +1 -0
- package/src/generated/.openapi-generator/FILES +16 -1
- package/src/generated/apis/default-api.ts +341 -167
- package/src/generated/models/assets.ts +74 -0
- package/src/generated/models/base-pagination-query.ts +73 -0
- package/src/generated/models/complex-query.ts +103 -0
- package/src/generated/models/create-journal-entry.ts +108 -0
- package/src/generated/models/create-notes.ts +74 -0
- package/src/generated/models/filter-item-value.ts +46 -0
- package/src/generated/models/filter-item.ts +101 -0
- package/src/generated/models/filter-operator.ts +63 -0
- package/src/generated/models/get-customers-query.ts +103 -0
- package/src/generated/models/get-invoices-query.ts +119 -0
- package/src/generated/models/get-subscriptions-query.ts +127 -0
- package/src/generated/models/index.ts +16 -1
- package/src/generated/models/journal-entry-entries.ts +126 -0
- package/src/generated/models/journal-entry.ts +180 -0
- package/src/generated/models/order-operator.ts +53 -0
- package/src/generated/models/plugin-filter-item.ts +92 -0
- package/src/generated/models/plugin-filter-operator.ts +54 -0
- package/src/generated/models/sort-order.ts +83 -0
- package/src/generated/models/update-customer200-response.ts +89 -0
- package/src/generated/models/change-active-site.ts +0 -66
- package/src/generated/models/create-checklist.ts +0 -135
- package/src/generated/models/create-task-template.ts +0 -83
- package/src/generated/models/create-task.ts +0 -135
- package/src/generated/models/custom-update-task-template.ts +0 -93
- package/src/generated/models/document-signed.ts +0 -115
- package/src/generated/models/get-payments1200-response.ts +0 -89
- package/src/generated/models/get-task-templates200-response.ts +0 -89
- package/src/generated/models/get-tasks200-response.ts +0 -89
- package/src/generated/models/task-template.ts +0 -187
- package/src/generated/models/task.ts +0 -290
- package/src/generated/models/update-checklist-task-template.ts +0 -66
|
@@ -0,0 +1,180 @@
|
|
|
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 { JournalEntryEntries } from './journal-entry-entries';
|
|
17
|
+
import {
|
|
18
|
+
JournalEntryEntriesFromJSON,
|
|
19
|
+
JournalEntryEntriesFromJSONTyped,
|
|
20
|
+
JournalEntryEntriesToJSON,
|
|
21
|
+
JournalEntryEntriesToJSONTyped,
|
|
22
|
+
} from './journal-entry-entries';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface JournalEntry
|
|
28
|
+
*/
|
|
29
|
+
export interface JournalEntry {
|
|
30
|
+
/**
|
|
31
|
+
* Journal Entry Date
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof JournalEntry
|
|
34
|
+
*/
|
|
35
|
+
date: string;
|
|
36
|
+
/**
|
|
37
|
+
* Journal Entry description
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof JournalEntry
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Journal entries
|
|
44
|
+
* @type {Array<JournalEntryEntries>}
|
|
45
|
+
* @memberof JournalEntry
|
|
46
|
+
*/
|
|
47
|
+
entries: Array<JournalEntryEntries>;
|
|
48
|
+
/**
|
|
49
|
+
* Custom fields on the invoice
|
|
50
|
+
* @type {object}
|
|
51
|
+
* @memberof JournalEntry
|
|
52
|
+
*/
|
|
53
|
+
customFields?: object;
|
|
54
|
+
/**
|
|
55
|
+
* Currency id used in this journal entry
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof JournalEntry
|
|
58
|
+
*/
|
|
59
|
+
currencyId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Journal Entry ID
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof JournalEntry
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
66
|
+
/**
|
|
67
|
+
* Origin of journal entry
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof JournalEntry
|
|
70
|
+
*/
|
|
71
|
+
sourceType: string;
|
|
72
|
+
/**
|
|
73
|
+
* Source of journal entry
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof JournalEntry
|
|
76
|
+
*/
|
|
77
|
+
sourceId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Currency code of the transaction
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof JournalEntry
|
|
82
|
+
*/
|
|
83
|
+
transactionCurrency: string;
|
|
84
|
+
/**
|
|
85
|
+
* Transaction Conversion Rate
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof JournalEntry
|
|
88
|
+
*/
|
|
89
|
+
transactionConversionRate: number;
|
|
90
|
+
/**
|
|
91
|
+
* Transaction amount
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof JournalEntry
|
|
94
|
+
*/
|
|
95
|
+
transactionAmount: string;
|
|
96
|
+
/**
|
|
97
|
+
* The date the journal entry was created
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof JournalEntry
|
|
100
|
+
*/
|
|
101
|
+
createdAt: string;
|
|
102
|
+
/**
|
|
103
|
+
* The date the journal entry was updated
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof JournalEntry
|
|
106
|
+
*/
|
|
107
|
+
updatedAt: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Check if a given object implements the JournalEntry interface.
|
|
112
|
+
*/
|
|
113
|
+
export function instanceOfJournalEntry(value: object): value is JournalEntry {
|
|
114
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
115
|
+
if (!('entries' in value) || value['entries'] === undefined) return false;
|
|
116
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined) return false;
|
|
117
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
118
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined) return false;
|
|
119
|
+
if (!('sourceId' in value) || value['sourceId'] === undefined) return false;
|
|
120
|
+
if (!('transactionCurrency' in value) || value['transactionCurrency'] === undefined) return false;
|
|
121
|
+
if (!('transactionConversionRate' in value) || value['transactionConversionRate'] === undefined) return false;
|
|
122
|
+
if (!('transactionAmount' in value) || value['transactionAmount'] === undefined) return false;
|
|
123
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
124
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function JournalEntryFromJSON(json: any): JournalEntry {
|
|
129
|
+
return JournalEntryFromJSONTyped(json, false);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function JournalEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): JournalEntry {
|
|
133
|
+
if (json == null) {
|
|
134
|
+
return json;
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
|
|
138
|
+
'date': json['date'],
|
|
139
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
140
|
+
'entries': ((json['entries'] as Array<any>).map(JournalEntryEntriesFromJSON)),
|
|
141
|
+
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
142
|
+
'currencyId': json['currencyId'],
|
|
143
|
+
'id': json['id'],
|
|
144
|
+
'sourceType': json['sourceType'],
|
|
145
|
+
'sourceId': json['sourceId'],
|
|
146
|
+
'transactionCurrency': json['transactionCurrency'],
|
|
147
|
+
'transactionConversionRate': json['transactionConversionRate'],
|
|
148
|
+
'transactionAmount': json['transactionAmount'],
|
|
149
|
+
'createdAt': json['createdAt'],
|
|
150
|
+
'updatedAt': json['updatedAt'],
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function JournalEntryToJSON(json: any): JournalEntry {
|
|
155
|
+
return JournalEntryToJSONTyped(json, false);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function JournalEntryToJSONTyped(value?: JournalEntry | null, ignoreDiscriminator: boolean = false): any {
|
|
159
|
+
if (value == null) {
|
|
160
|
+
return value;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return {
|
|
164
|
+
|
|
165
|
+
'date': value['date'],
|
|
166
|
+
'description': value['description'],
|
|
167
|
+
'entries': ((value['entries'] as Array<any>).map(JournalEntryEntriesToJSON)),
|
|
168
|
+
'customFields': value['customFields'],
|
|
169
|
+
'currencyId': value['currencyId'],
|
|
170
|
+
'id': value['id'],
|
|
171
|
+
'sourceType': value['sourceType'],
|
|
172
|
+
'sourceId': value['sourceId'],
|
|
173
|
+
'transactionCurrency': value['transactionCurrency'],
|
|
174
|
+
'transactionConversionRate': value['transactionConversionRate'],
|
|
175
|
+
'transactionAmount': value['transactionAmount'],
|
|
176
|
+
'createdAt': value['createdAt'],
|
|
177
|
+
'updatedAt': value['updatedAt'],
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
|
|
@@ -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,83 @@
|
|
|
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 { OrderOperator } from './order-operator';
|
|
17
|
+
import {
|
|
18
|
+
OrderOperatorFromJSON,
|
|
19
|
+
OrderOperatorFromJSONTyped,
|
|
20
|
+
OrderOperatorToJSON,
|
|
21
|
+
OrderOperatorToJSONTyped,
|
|
22
|
+
} from './order-operator';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SortOrder
|
|
28
|
+
*/
|
|
29
|
+
export interface SortOrder {
|
|
30
|
+
/**
|
|
31
|
+
* Field to sort by
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SortOrder
|
|
34
|
+
*/
|
|
35
|
+
field?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {OrderOperator}
|
|
39
|
+
* @memberof SortOrder
|
|
40
|
+
*/
|
|
41
|
+
operator?: OrderOperator;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the SortOrder interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfSortOrder(value: object): value is SortOrder {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function SortOrderFromJSON(json: any): SortOrder {
|
|
54
|
+
return SortOrderFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function SortOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SortOrder {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'field': json['field'] == null ? undefined : json['field'],
|
|
64
|
+
'operator': json['operator'] == null ? undefined : OrderOperatorFromJSON(json['operator']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SortOrderToJSON(json: any): SortOrder {
|
|
69
|
+
return SortOrderToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SortOrderToJSONTyped(value?: SortOrder | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'field': value['field'],
|
|
80
|
+
'operator': OrderOperatorToJSON(value['operator']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 { Customer } from './customer';
|
|
17
|
+
import {
|
|
18
|
+
CustomerFromJSON,
|
|
19
|
+
CustomerFromJSONTyped,
|
|
20
|
+
CustomerToJSON,
|
|
21
|
+
CustomerToJSONTyped,
|
|
22
|
+
} from './customer';
|
|
23
|
+
import type { PageMeta } from './page-meta';
|
|
24
|
+
import {
|
|
25
|
+
PageMetaFromJSON,
|
|
26
|
+
PageMetaFromJSONTyped,
|
|
27
|
+
PageMetaToJSON,
|
|
28
|
+
PageMetaToJSONTyped,
|
|
29
|
+
} from './page-meta';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface UpdateCustomer200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface UpdateCustomer200Response {
|
|
37
|
+
/**
|
|
38
|
+
* The pagination metadata
|
|
39
|
+
* @type {PageMeta}
|
|
40
|
+
* @memberof UpdateCustomer200Response
|
|
41
|
+
*/
|
|
42
|
+
pageMeta: PageMeta;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<Customer>}
|
|
46
|
+
* @memberof UpdateCustomer200Response
|
|
47
|
+
*/
|
|
48
|
+
results?: Array<Customer>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the UpdateCustomer200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfUpdateCustomer200Response(value: object): value is UpdateCustomer200Response {
|
|
55
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UpdateCustomer200ResponseFromJSON(json: any): UpdateCustomer200Response {
|
|
60
|
+
return UpdateCustomer200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UpdateCustomer200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCustomer200Response {
|
|
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(CustomerFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function UpdateCustomer200ResponseToJSON(json: any): UpdateCustomer200Response {
|
|
75
|
+
return UpdateCustomer200ResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function UpdateCustomer200ResponseToJSONTyped(value?: UpdateCustomer200Response | 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(CustomerToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -1,66 +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 ChangeActiveSite
|
|
20
|
-
*/
|
|
21
|
-
export interface ChangeActiveSite {
|
|
22
|
-
/**
|
|
23
|
-
* The ID of the site the user is currently active on.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ChangeActiveSite
|
|
26
|
-
*/
|
|
27
|
-
activeSiteId: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the ChangeActiveSite interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfChangeActiveSite(value: object): value is ChangeActiveSite {
|
|
34
|
-
if (!('activeSiteId' in value) || value['activeSiteId'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function ChangeActiveSiteFromJSON(json: any): ChangeActiveSite {
|
|
39
|
-
return ChangeActiveSiteFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function ChangeActiveSiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeActiveSite {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'activeSiteId': json['activeSiteId'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ChangeActiveSiteToJSON(json: any): ChangeActiveSite {
|
|
53
|
-
return ChangeActiveSiteToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ChangeActiveSiteToJSONTyped(value?: ChangeActiveSite | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'activeSiteId': value['activeSiteId'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|