@managespace/sdk 0.0.1 → 0.0.2
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/.eslintrc.js +3 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/generated/.openapi-generator/FILES +192 -7
- package/src/generated/apis/default-api.ts +7116 -0
- package/src/generated/apis/index.ts +3 -0
- package/src/generated/index.ts +3 -16
- package/src/generated/models/address-response.ts +145 -0
- package/src/generated/models/admin-sign-up.ts +109 -0
- package/src/generated/models/asset-category-response.ts +124 -0
- package/src/generated/models/asset-class-response.ts +106 -0
- package/src/generated/models/asset-feature-response.ts +130 -0
- package/src/generated/models/asset-response.ts +250 -0
- package/src/generated/models/billing-run-customer-response.ts +66 -0
- package/src/generated/models/billing-run-filter-option-response.ts +73 -0
- package/src/generated/models/billing-run-response.ts +200 -0
- package/src/generated/models/calendar-response.ts +199 -0
- package/src/generated/models/cancel-subscription-billing.ts +75 -0
- package/src/generated/models/charge-response.ts +263 -0
- package/src/generated/models/chart-of-account-response.ts +165 -0
- package/src/generated/models/chart-of-accounts-response.ts +74 -0
- package/src/generated/models/checklist-recurrence-frequency.ts +55 -0
- package/src/generated/models/checklist-response.ts +276 -0
- package/src/generated/models/communication-response.ts +241 -0
- package/src/generated/models/communication-type.ts +54 -0
- package/src/generated/models/configuration-response.ts +142 -0
- package/src/generated/models/contact-id.ts +66 -0
- package/src/generated/models/contact-response.ts +244 -0
- package/src/generated/models/create-address.ts +118 -0
- package/src/generated/models/create-asset-category.ts +75 -0
- package/src/generated/models/create-asset-custom.ts +139 -0
- package/src/generated/models/create-asset-feature-custom.ts +82 -0
- package/src/generated/models/create-assets.ts +74 -0
- package/src/generated/models/create-billing-run.ts +155 -0
- package/src/generated/models/create-calendar.ts +109 -0
- package/src/generated/models/create-checklist.ts +152 -0
- package/src/generated/models/create-communication.ts +127 -0
- package/src/generated/models/create-contact.ts +144 -0
- package/src/generated/models/create-document.ts +66 -0
- package/src/generated/models/create-instances.ts +75 -0
- package/src/generated/models/create-map-feature.ts +129 -0
- package/src/generated/models/create-note.ts +90 -0
- package/src/generated/models/create-notification.ts +109 -0
- package/src/generated/models/create-org.ts +84 -0
- package/src/generated/models/create-payment-billing.ts +261 -0
- package/src/generated/models/create-payment-invoice.ts +75 -0
- package/src/generated/models/create-payment-refund.ts +75 -0
- package/src/generated/models/create-payment-run.ts +83 -0
- package/src/generated/models/create-plan-billing.ts +110 -0
- package/src/generated/models/create-plan-charge.ts +245 -0
- package/src/generated/models/create-product-billing.ts +146 -0
- package/src/generated/models/create-product.ts +101 -0
- package/src/generated/models/create-site-custom.ts +111 -0
- package/src/generated/models/create-smart-bar-prompt.ts +66 -0
- package/src/generated/models/create-subscription-billing.ts +272 -0
- package/src/generated/models/create-subscription-plan.ts +129 -0
- package/src/generated/models/create-task-template.ts +83 -0
- package/src/generated/models/create-task.ts +135 -0
- package/src/generated/models/create-template.ts +93 -0
- package/src/generated/models/custom-add-customer-contact.ts +74 -0
- package/src/generated/models/custom-chart-of-account.ts +102 -0
- package/src/generated/models/custom-chart-of-accounts.ts +74 -0
- package/src/generated/models/custom-create-contact-with-customer.ts +143 -0
- package/src/generated/models/custom-create-contact.ts +152 -0
- package/src/generated/models/custom-create-customer.ts +219 -0
- package/src/generated/models/custom-create-user.ts +134 -0
- package/src/generated/models/custom-update-customer.ts +113 -0
- package/src/generated/models/custom-update-task-template.ts +93 -0
- package/src/generated/models/customer-delivery-preferences.ts +75 -0
- package/src/generated/models/customer-id.ts +66 -0
- package/src/generated/models/customer-payment-options.ts +75 -0
- package/src/generated/models/customer-response.ts +316 -0
- package/src/generated/models/document-signed.ts +100 -0
- package/src/generated/models/document-urls-response.ts +66 -0
- package/src/generated/models/execute-by.ts +66 -0
- package/src/generated/models/extensibility-function-definition-response.ts +148 -0
- package/src/generated/models/extensibility-function-instance-response.ts +241 -0
- package/src/generated/models/extensibility-function-metadata-response.ts +172 -0
- package/src/generated/models/extensibility-repo-response.ts +120 -0
- package/src/generated/models/extensibility-status.ts +54 -0
- package/src/generated/models/file-uploaded-response.ts +100 -0
- package/src/generated/models/get-asset-categories200-response.ts +89 -0
- package/src/generated/models/get-asset-classes200-response.ts +89 -0
- package/src/generated/models/get-asset-features200-response.ts +89 -0
- package/src/generated/models/get-assets200-response.ts +89 -0
- package/src/generated/models/get-billing-runs200-response.ts +89 -0
- package/src/generated/models/get-calendar-events-query.ts +75 -0
- package/src/generated/models/get-calendars200-response.ts +89 -0
- package/src/generated/models/get-charges200-response.ts +89 -0
- package/src/generated/models/get-chart-of-accounts200-response.ts +89 -0
- package/src/generated/models/get-communications200-response.ts +89 -0
- package/src/generated/models/get-contact-response.ts +255 -0
- package/src/generated/models/get-contacts200-response.ts +89 -0
- package/src/generated/models/get-customer-response.ts +448 -0
- package/src/generated/models/get-customers-billing200-response.ts +89 -0
- package/src/generated/models/get-customers200-response.ts +89 -0
- package/src/generated/models/get-intent.ts +66 -0
- package/src/generated/models/get-invoices200-response.ts +89 -0
- package/src/generated/models/get-notes200-response.ts +89 -0
- package/src/generated/models/get-notifications200-response.ts +89 -0
- package/src/generated/models/get-payment-runs200-response.ts +89 -0
- package/src/generated/models/get-payments200-response.ts +89 -0
- package/src/generated/models/get-plans200-response.ts +89 -0
- package/src/generated/models/get-plugins200-response.ts +89 -0
- package/src/generated/models/get-products200-response.ts +89 -0
- package/src/generated/models/get-revenue-rules200-response.ts +89 -0
- package/src/generated/models/get-sites200-response.ts +89 -0
- package/src/generated/models/get-statements200-response.ts +89 -0
- package/src/generated/models/get-subscriptions200-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/get-users200-response.ts +89 -0
- package/src/generated/models/get-workflow-definitions200-response.ts +89 -0
- package/src/generated/models/get-workflow-instances200-response.ts +89 -0
- package/src/generated/models/index.ts +190 -0
- package/src/generated/models/intent-response.ts +66 -0
- package/src/generated/models/invoice-contact-response.ts +192 -0
- package/src/generated/models/invoice-response.ts +394 -0
- package/src/generated/models/line-item-response.ts +308 -0
- package/src/generated/models/link-plugin.ts +75 -0
- package/src/generated/models/login.ts +75 -0
- package/src/generated/models/manual-input.ts +66 -0
- package/src/generated/models/map-feature-response.ts +154 -0
- package/src/generated/models/note-response.ts +248 -0
- package/src/generated/models/notification-response.ts +199 -0
- package/src/generated/models/org-response.ts +442 -0
- package/src/generated/models/page-meta.ts +91 -0
- package/src/generated/models/paginated.ts +74 -0
- package/src/generated/models/password-strength-check-response.ts +66 -0
- package/src/generated/models/password.ts +66 -0
- package/src/generated/models/payment-invoice-response.ts +111 -0
- package/src/generated/models/payment-response.ts +371 -0
- package/src/generated/models/payment-run-customer-response.ts +66 -0
- package/src/generated/models/payment-run-filter-option-response.ts +73 -0
- package/src/generated/models/payment-run-response.ts +228 -0
- package/src/generated/models/plan-charge-response.ts +272 -0
- package/src/generated/models/plan-response.ts +173 -0
- package/src/generated/models/plugin-extensibility-function-definition-response.ts +124 -0
- package/src/generated/models/plugin-extensibility-function-instance-response.ts +187 -0
- package/src/generated/models/plugin-extensibility-function-metadata-response.ts +148 -0
- package/src/generated/models/plugin-extensibility-status.ts +54 -0
- package/src/generated/models/plugin-response.ts +127 -0
- package/src/generated/models/plugin-version-response.ts +157 -0
- package/src/generated/models/product-billing-response.ts +236 -0
- package/src/generated/models/product-response.ts +127 -0
- package/src/generated/models/product-status.ts +60 -0
- package/src/generated/models/product-transaction-posting-entries.ts +84 -0
- package/src/generated/models/project-response.ts +127 -0
- package/src/generated/models/project-response1.ts +127 -0
- package/src/generated/models/project-version-response.ts +190 -0
- package/src/generated/models/revenue-rule-response.ts +165 -0
- package/src/generated/models/role-response.ts +118 -0
- package/src/generated/models/role-response1.ts +118 -0
- package/src/generated/models/role-response2.ts +118 -0
- package/src/generated/models/roles.ts +59 -0
- package/src/generated/models/roles1.ts +59 -0
- package/src/generated/models/roles2.ts +59 -0
- package/src/generated/models/roles3.ts +59 -0
- package/src/generated/models/site-response.ts +340 -0
- package/src/generated/models/site-type-response.ts +91 -0
- package/src/generated/models/site-type-response1.ts +91 -0
- package/src/generated/models/site-type-response2.ts +91 -0
- package/src/generated/models/site-type-response3.ts +91 -0
- package/src/generated/models/smart-bar-prompt-response.ts +75 -0
- package/src/generated/models/statement-response.ts +156 -0
- package/src/generated/models/step-data.ts +66 -0
- package/src/generated/models/sub-total-response.ts +75 -0
- package/src/generated/models/subscription-plan-response.ts +425 -0
- package/src/generated/models/subscription-response.ts +398 -0
- package/src/generated/models/success-response.ts +66 -0
- package/src/generated/models/task-completion-status.ts +54 -0
- package/src/generated/models/task-response.ts +290 -0
- package/src/generated/models/task-template-response.ts +187 -0
- package/src/generated/models/tax-line-response.ts +75 -0
- package/src/generated/models/token-response.ts +66 -0
- package/src/generated/models/update-asset-category.ts +75 -0
- package/src/generated/models/update-asset-feature.ts +66 -0
- package/src/generated/models/update-asset.ts +99 -0
- package/src/generated/models/update-checklist-task-template.ts +66 -0
- package/src/generated/models/update-customer.ts +97 -0
- package/src/generated/models/update-extensibility-repo.ts +102 -0
- package/src/generated/models/update-map-feature.ts +129 -0
- package/src/generated/models/update-note.ts +89 -0
- package/src/generated/models/update-org.ts +81 -0
- package/src/generated/models/update-product.ts +101 -0
- package/src/generated/models/update-smart-bar-prompt.ts +66 -0
- package/src/generated/models/update-user-properties.ts +81 -0
- package/src/generated/models/user-response.ts +338 -0
- package/src/generated/models/workflow-definition-response.ts +148 -0
- package/src/generated/models/workflow-instance-response.ts +247 -0
- package/src/generated/models/workflow-instances-response.ts +74 -0
- package/src/generated/models/workflow-status.ts +57 -0
- package/src/generated/models/workflow-step-definition-response.ts +166 -0
- package/src/generated/models/workflow-step-instance-response.ts +229 -0
- package/src/generated/models/workflow-step-instances-response.ts +74 -0
- package/src/generated/models/workflow-step-metadata-response.ts +199 -0
- package/src/generated/runtime.ts +431 -0
- package/src/generated/api.ts +0 -19623
- package/src/generated/base.ts +0 -86
- package/src/generated/common.ts +0 -150
- package/src/generated/configuration.ts +0 -110
- package/src/generated/git_push.sh +0 -57
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth 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 { PluginExtensibilityFunctionMetadataResponse } from './plugin-extensibility-function-metadata-response';
|
|
17
|
+
import {
|
|
18
|
+
PluginExtensibilityFunctionMetadataResponseFromJSON,
|
|
19
|
+
PluginExtensibilityFunctionMetadataResponseFromJSONTyped,
|
|
20
|
+
PluginExtensibilityFunctionMetadataResponseToJSON,
|
|
21
|
+
PluginExtensibilityFunctionMetadataResponseToJSONTyped,
|
|
22
|
+
} from './plugin-extensibility-function-metadata-response';
|
|
23
|
+
import type { OrgResponse } from './org-response';
|
|
24
|
+
import {
|
|
25
|
+
OrgResponseFromJSON,
|
|
26
|
+
OrgResponseFromJSONTyped,
|
|
27
|
+
OrgResponseToJSON,
|
|
28
|
+
OrgResponseToJSONTyped,
|
|
29
|
+
} from './org-response';
|
|
30
|
+
import type { PluginResponse } from './plugin-response';
|
|
31
|
+
import {
|
|
32
|
+
PluginResponseFromJSON,
|
|
33
|
+
PluginResponseFromJSONTyped,
|
|
34
|
+
PluginResponseToJSON,
|
|
35
|
+
PluginResponseToJSONTyped,
|
|
36
|
+
} from './plugin-response';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface PluginVersionResponse
|
|
42
|
+
*/
|
|
43
|
+
export interface PluginVersionResponse {
|
|
44
|
+
/**
|
|
45
|
+
* Plugin version ID
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PluginVersionResponse
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* Plugin version number
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PluginVersionResponse
|
|
54
|
+
*/
|
|
55
|
+
number: string;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the plugin is publicly available
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof PluginVersionResponse
|
|
60
|
+
*/
|
|
61
|
+
isPublic: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The price of the plugin in cents
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof PluginVersionResponse
|
|
66
|
+
*/
|
|
67
|
+
price: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<OrgResponse>}
|
|
71
|
+
* @memberof PluginVersionResponse
|
|
72
|
+
*/
|
|
73
|
+
orgs?: Array<OrgResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* When the record was created
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof PluginVersionResponse
|
|
78
|
+
*/
|
|
79
|
+
createdAt: Date;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {PluginResponse}
|
|
83
|
+
* @memberof PluginVersionResponse
|
|
84
|
+
*/
|
|
85
|
+
plugin?: PluginResponse;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof PluginVersionResponse
|
|
90
|
+
*/
|
|
91
|
+
pluginId: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {Array<PluginExtensibilityFunctionMetadataResponse>}
|
|
95
|
+
* @memberof PluginVersionResponse
|
|
96
|
+
*/
|
|
97
|
+
pluginExtensibilityFunctionMetadata?: Array<PluginExtensibilityFunctionMetadataResponse>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Check if a given object implements the PluginVersionResponse interface.
|
|
102
|
+
*/
|
|
103
|
+
export function instanceOfPluginVersionResponse(value: object): value is PluginVersionResponse {
|
|
104
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
105
|
+
if (!('number' in value) || value['number'] === undefined) return false;
|
|
106
|
+
if (!('isPublic' in value) || value['isPublic'] === undefined) return false;
|
|
107
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
108
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
109
|
+
if (!('pluginId' in value) || value['pluginId'] === undefined) return false;
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function PluginVersionResponseFromJSON(json: any): PluginVersionResponse {
|
|
114
|
+
return PluginVersionResponseFromJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function PluginVersionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PluginVersionResponse {
|
|
118
|
+
if (json == null) {
|
|
119
|
+
return json;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'id': json['id'],
|
|
124
|
+
'number': json['number'],
|
|
125
|
+
'isPublic': json['isPublic'],
|
|
126
|
+
'price': json['price'],
|
|
127
|
+
'orgs': json['orgs'] == null ? undefined : ((json['orgs'] as Array<any>).map(OrgResponseFromJSON)),
|
|
128
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
129
|
+
'plugin': json['plugin'] == null ? undefined : PluginResponseFromJSON(json['plugin']),
|
|
130
|
+
'pluginId': json['pluginId'],
|
|
131
|
+
'pluginExtensibilityFunctionMetadata': json['pluginExtensibilityFunctionMetadata'] == null ? undefined : ((json['pluginExtensibilityFunctionMetadata'] as Array<any>).map(PluginExtensibilityFunctionMetadataResponseFromJSON)),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function PluginVersionResponseToJSON(json: any): PluginVersionResponse {
|
|
136
|
+
return PluginVersionResponseToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function PluginVersionResponseToJSONTyped(value?: PluginVersionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'id': value['id'],
|
|
147
|
+
'number': value['number'],
|
|
148
|
+
'isPublic': value['isPublic'],
|
|
149
|
+
'price': value['price'],
|
|
150
|
+
'orgs': value['orgs'] == null ? undefined : ((value['orgs'] as Array<any>).map(OrgResponseToJSON)),
|
|
151
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
152
|
+
'plugin': PluginResponseToJSON(value['plugin']),
|
|
153
|
+
'pluginId': value['pluginId'],
|
|
154
|
+
'pluginExtensibilityFunctionMetadata': value['pluginExtensibilityFunctionMetadata'] == null ? undefined : ((value['pluginExtensibilityFunctionMetadata'] as Array<any>).map(PluginExtensibilityFunctionMetadataResponseToJSON)),
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth 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 { ProductTransactionPostingEntries } from './product-transaction-posting-entries';
|
|
17
|
+
import {
|
|
18
|
+
ProductTransactionPostingEntriesFromJSON,
|
|
19
|
+
ProductTransactionPostingEntriesFromJSONTyped,
|
|
20
|
+
ProductTransactionPostingEntriesToJSON,
|
|
21
|
+
ProductTransactionPostingEntriesToJSONTyped,
|
|
22
|
+
} from './product-transaction-posting-entries';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductBillingResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductBillingResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Product ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductBillingResponse
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Name of product
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProductBillingResponse
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Stock keeping unit
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ProductBillingResponse
|
|
46
|
+
*/
|
|
47
|
+
sku: string;
|
|
48
|
+
/**
|
|
49
|
+
* Product status
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ProductBillingResponse
|
|
52
|
+
*/
|
|
53
|
+
status: string;
|
|
54
|
+
/**
|
|
55
|
+
* Describes whether product is taxable or not
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof ProductBillingResponse
|
|
58
|
+
*/
|
|
59
|
+
taxable: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Description of product
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ProductBillingResponse
|
|
64
|
+
*/
|
|
65
|
+
description: string;
|
|
66
|
+
/**
|
|
67
|
+
* Product price
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ProductBillingResponse
|
|
70
|
+
*/
|
|
71
|
+
price: string;
|
|
72
|
+
/**
|
|
73
|
+
* ID of revenue
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ProductBillingResponse
|
|
76
|
+
*/
|
|
77
|
+
revenueRuleId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Date revenue will begin to be recognized
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ProductBillingResponse
|
|
82
|
+
*/
|
|
83
|
+
recognitionStartDate: string;
|
|
84
|
+
/**
|
|
85
|
+
* Date revenue will end to be recognized
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof ProductBillingResponse
|
|
88
|
+
*/
|
|
89
|
+
recognitionEndDate: string;
|
|
90
|
+
/**
|
|
91
|
+
* Currency
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof ProductBillingResponse
|
|
94
|
+
*/
|
|
95
|
+
currency: string;
|
|
96
|
+
/**
|
|
97
|
+
* Product ID
|
|
98
|
+
* @type {Array<ProductTransactionPostingEntries>}
|
|
99
|
+
* @memberof ProductBillingResponse
|
|
100
|
+
*/
|
|
101
|
+
transactionPostingEntries: Array<ProductTransactionPostingEntries>;
|
|
102
|
+
/**
|
|
103
|
+
* Date of creation
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof ProductBillingResponse
|
|
106
|
+
*/
|
|
107
|
+
createdAt: string;
|
|
108
|
+
/**
|
|
109
|
+
* Date of last modification
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof ProductBillingResponse
|
|
112
|
+
*/
|
|
113
|
+
updatedAt: string;
|
|
114
|
+
/**
|
|
115
|
+
* Email of user who created this record
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof ProductBillingResponse
|
|
118
|
+
*/
|
|
119
|
+
createdBy: string;
|
|
120
|
+
/**
|
|
121
|
+
* Email of user who last modified this record
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof ProductBillingResponse
|
|
124
|
+
*/
|
|
125
|
+
updatedBy: string;
|
|
126
|
+
/**
|
|
127
|
+
* Show revenue schedules
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof ProductBillingResponse
|
|
130
|
+
*/
|
|
131
|
+
showRevenueSchedules: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* List of custom fields
|
|
134
|
+
* @type {object}
|
|
135
|
+
* @memberof ProductBillingResponse
|
|
136
|
+
*/
|
|
137
|
+
customFields: object;
|
|
138
|
+
/**
|
|
139
|
+
* Code of Chart of Account
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof ProductBillingResponse
|
|
142
|
+
*/
|
|
143
|
+
incomeAccount: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Check if a given object implements the ProductBillingResponse interface.
|
|
148
|
+
*/
|
|
149
|
+
export function instanceOfProductBillingResponse(value: object): value is ProductBillingResponse {
|
|
150
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
151
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
152
|
+
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
153
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
154
|
+
if (!('taxable' in value) || value['taxable'] === undefined) return false;
|
|
155
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
156
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
157
|
+
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined) return false;
|
|
158
|
+
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined) return false;
|
|
159
|
+
if (!('recognitionEndDate' in value) || value['recognitionEndDate'] === undefined) return false;
|
|
160
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
161
|
+
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined) return false;
|
|
162
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
163
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
164
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
165
|
+
if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
|
|
166
|
+
if (!('showRevenueSchedules' in value) || value['showRevenueSchedules'] === undefined) return false;
|
|
167
|
+
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
168
|
+
if (!('incomeAccount' in value) || value['incomeAccount'] === undefined) return false;
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function ProductBillingResponseFromJSON(json: any): ProductBillingResponse {
|
|
173
|
+
return ProductBillingResponseFromJSONTyped(json, false);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function ProductBillingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductBillingResponse {
|
|
177
|
+
if (json == null) {
|
|
178
|
+
return json;
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
|
|
182
|
+
'id': json['id'],
|
|
183
|
+
'name': json['name'],
|
|
184
|
+
'sku': json['sku'],
|
|
185
|
+
'status': json['status'],
|
|
186
|
+
'taxable': json['taxable'],
|
|
187
|
+
'description': json['description'],
|
|
188
|
+
'price': json['price'],
|
|
189
|
+
'revenueRuleId': json['revenueRuleId'],
|
|
190
|
+
'recognitionStartDate': json['recognitionStartDate'],
|
|
191
|
+
'recognitionEndDate': json['recognitionEndDate'],
|
|
192
|
+
'currency': json['currency'],
|
|
193
|
+
'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesFromJSON)),
|
|
194
|
+
'createdAt': json['createdAt'],
|
|
195
|
+
'updatedAt': json['updatedAt'],
|
|
196
|
+
'createdBy': json['createdBy'],
|
|
197
|
+
'updatedBy': json['updatedBy'],
|
|
198
|
+
'showRevenueSchedules': json['showRevenueSchedules'],
|
|
199
|
+
'customFields': json['customFields'],
|
|
200
|
+
'incomeAccount': json['incomeAccount'],
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function ProductBillingResponseToJSON(json: any): ProductBillingResponse {
|
|
205
|
+
return ProductBillingResponseToJSONTyped(json, false);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function ProductBillingResponseToJSONTyped(value?: ProductBillingResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
209
|
+
if (value == null) {
|
|
210
|
+
return value;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return {
|
|
214
|
+
|
|
215
|
+
'id': value['id'],
|
|
216
|
+
'name': value['name'],
|
|
217
|
+
'sku': value['sku'],
|
|
218
|
+
'status': value['status'],
|
|
219
|
+
'taxable': value['taxable'],
|
|
220
|
+
'description': value['description'],
|
|
221
|
+
'price': value['price'],
|
|
222
|
+
'revenueRuleId': value['revenueRuleId'],
|
|
223
|
+
'recognitionStartDate': value['recognitionStartDate'],
|
|
224
|
+
'recognitionEndDate': value['recognitionEndDate'],
|
|
225
|
+
'currency': value['currency'],
|
|
226
|
+
'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(ProductTransactionPostingEntriesToJSON)),
|
|
227
|
+
'createdAt': value['createdAt'],
|
|
228
|
+
'updatedAt': value['updatedAt'],
|
|
229
|
+
'createdBy': value['createdBy'],
|
|
230
|
+
'updatedBy': value['updatedBy'],
|
|
231
|
+
'showRevenueSchedules': value['showRevenueSchedules'],
|
|
232
|
+
'customFields': value['customFields'],
|
|
233
|
+
'incomeAccount': value['incomeAccount'],
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth 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 { ProductStatus } from './product-status';
|
|
17
|
+
import {
|
|
18
|
+
ProductStatusFromJSON,
|
|
19
|
+
ProductStatusFromJSONTyped,
|
|
20
|
+
ProductStatusToJSON,
|
|
21
|
+
ProductStatusToJSONTyped,
|
|
22
|
+
} from './product-status';
|
|
23
|
+
import type { AssetResponse } from './asset-response';
|
|
24
|
+
import {
|
|
25
|
+
AssetResponseFromJSON,
|
|
26
|
+
AssetResponseFromJSONTyped,
|
|
27
|
+
AssetResponseToJSON,
|
|
28
|
+
AssetResponseToJSONTyped,
|
|
29
|
+
} from './asset-response';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ProductResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface ProductResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Asset ID
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ProductResponse
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The product name the asset is associated with
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ProductResponse
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
* The product id stored in the external sytem
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ProductResponse
|
|
53
|
+
*/
|
|
54
|
+
externalId: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {ProductStatus}
|
|
58
|
+
* @memberof ProductResponse
|
|
59
|
+
*/
|
|
60
|
+
status: ProductStatus;
|
|
61
|
+
/**
|
|
62
|
+
* The stock count of the asset
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof ProductResponse
|
|
65
|
+
*/
|
|
66
|
+
stockCount: number | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {AssetResponse}
|
|
70
|
+
* @memberof ProductResponse
|
|
71
|
+
*/
|
|
72
|
+
asset?: AssetResponse;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the ProductResponse interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfProductResponse(value: object): value is ProductResponse {
|
|
81
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
82
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
83
|
+
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
84
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
85
|
+
if (!('stockCount' in value) || value['stockCount'] === undefined) return false;
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function ProductResponseFromJSON(json: any): ProductResponse {
|
|
90
|
+
return ProductResponseFromJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function ProductResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductResponse {
|
|
94
|
+
if (json == null) {
|
|
95
|
+
return json;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'id': json['id'],
|
|
100
|
+
'name': json['name'],
|
|
101
|
+
'externalId': json['externalId'],
|
|
102
|
+
'status': ProductStatusFromJSON(json['status']),
|
|
103
|
+
'stockCount': json['stockCount'],
|
|
104
|
+
'asset': json['asset'] == null ? undefined : AssetResponseFromJSON(json['asset']),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function ProductResponseToJSON(json: any): ProductResponse {
|
|
109
|
+
return ProductResponseToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function ProductResponseToJSONTyped(value?: ProductResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'id': value['id'],
|
|
120
|
+
'name': value['name'],
|
|
121
|
+
'externalId': value['externalId'],
|
|
122
|
+
'status': ProductStatusToJSON(value['status']),
|
|
123
|
+
'stockCount': value['stockCount'],
|
|
124
|
+
'asset': AssetResponseToJSON(value['asset']),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth 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 status of the asset
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ProductStatus = {
|
|
21
|
+
Available: 'AVAILABLE',
|
|
22
|
+
Reserved: 'RESERVED',
|
|
23
|
+
Occupied: 'OCCUPIED',
|
|
24
|
+
UnderMaintenance: 'UNDER_MAINTENANCE',
|
|
25
|
+
Delinquent: 'DELINQUENT',
|
|
26
|
+
Auction: 'AUCTION',
|
|
27
|
+
Lien: 'LIEN',
|
|
28
|
+
FutureBooked: 'FUTURE_BOOKED',
|
|
29
|
+
MoveOutIntended: 'MOVE_OUT_INTENDED'
|
|
30
|
+
} as const;
|
|
31
|
+
export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export function instanceOfProductStatus(value: any): boolean {
|
|
35
|
+
for (const key in ProductStatus) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(ProductStatus, key)) {
|
|
37
|
+
if (ProductStatus[key as keyof typeof ProductStatus] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductStatusFromJSON(json: any): ProductStatus {
|
|
46
|
+
return ProductStatusFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
50
|
+
return json as ProductStatus;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ProductStatusToJSON(value?: ProductStatus | null): any {
|
|
54
|
+
return value as any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
58
|
+
return value as ProductStatus;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace V2 Auth API
|
|
5
|
+
* ManageSpace Auth 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 ProductTransactionPostingEntries
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductTransactionPostingEntries {
|
|
22
|
+
/**
|
|
23
|
+
* Type of transaction
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProductTransactionPostingEntries
|
|
26
|
+
*/
|
|
27
|
+
transactionType: string;
|
|
28
|
+
/**
|
|
29
|
+
* Account ID of Debit Account
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductTransactionPostingEntries
|
|
32
|
+
*/
|
|
33
|
+
debitAccount: string;
|
|
34
|
+
/**
|
|
35
|
+
* Account ID of Credit Account
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProductTransactionPostingEntries
|
|
38
|
+
*/
|
|
39
|
+
creditAccount: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ProductTransactionPostingEntries interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfProductTransactionPostingEntries(value: object): value is ProductTransactionPostingEntries {
|
|
46
|
+
if (!('transactionType' in value) || value['transactionType'] === undefined) return false;
|
|
47
|
+
if (!('debitAccount' in value) || value['debitAccount'] === undefined) return false;
|
|
48
|
+
if (!('creditAccount' in value) || value['creditAccount'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ProductTransactionPostingEntriesFromJSON(json: any): ProductTransactionPostingEntries {
|
|
53
|
+
return ProductTransactionPostingEntriesFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ProductTransactionPostingEntriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTransactionPostingEntries {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'transactionType': json['transactionType'],
|
|
63
|
+
'debitAccount': json['debitAccount'],
|
|
64
|
+
'creditAccount': json['creditAccount'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ProductTransactionPostingEntriesToJSON(json: any): ProductTransactionPostingEntries {
|
|
69
|
+
return ProductTransactionPostingEntriesToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ProductTransactionPostingEntriesToJSONTyped(value?: ProductTransactionPostingEntries | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'transactionType': value['transactionType'],
|
|
80
|
+
'debitAccount': value['debitAccount'],
|
|
81
|
+
'creditAccount': value['creditAccount'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|