@managespace/sdk 0.1.65 → 0.1.66
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 +3 -2
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/generated/apis/default-api.d.ts +46 -45
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +145 -144
- package/dist/generated/models/asset-reservation-detail.d.ts +218 -0
- package/dist/generated/models/asset-reservation-detail.d.ts.map +1 -0
- package/dist/generated/models/asset-reservation-detail.js +158 -0
- package/dist/generated/models/asset-reservation-details.d.ts +34 -0
- package/dist/generated/models/asset-reservation-details.d.ts.map +1 -0
- package/dist/generated/models/asset-reservation-details.js +52 -0
- package/dist/generated/models/asset-reservation.d.ts +94 -0
- package/dist/generated/models/asset-reservation.d.ts.map +1 -0
- package/dist/generated/models/asset-reservation.js +90 -0
- package/dist/generated/models/asset-reservations.d.ts +34 -0
- package/dist/generated/models/asset-reservations.d.ts.map +1 -0
- package/dist/generated/models/asset-reservations.js +52 -0
- package/dist/generated/models/asset.d.ts +3 -3
- package/dist/generated/models/asset.d.ts.map +1 -1
- package/dist/generated/models/asset.js +3 -3
- package/dist/generated/models/create-asset-reservation.d.ts +45 -0
- package/dist/generated/models/create-asset-reservation.d.ts.map +1 -0
- package/dist/generated/models/create-asset-reservation.js +59 -0
- package/dist/generated/models/create-product-custom.d.ts +6 -0
- package/dist/generated/models/create-product-custom.d.ts.map +1 -1
- package/dist/generated/models/create-product-custom.js +2 -0
- package/dist/generated/models/index.d.ts +7 -8
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +7 -8
- package/dist/generated/models/product-custom.d.ts +6 -0
- package/dist/generated/models/product-custom.d.ts.map +1 -1
- package/dist/generated/models/product-custom.js +2 -0
- package/dist/generated/models/reserve-asset.d.ts +45 -0
- package/dist/generated/models/reserve-asset.d.ts.map +1 -0
- package/dist/generated/models/reserve-asset.js +59 -0
- package/dist/generated/models/reserved-asset-detail.d.ts +218 -0
- package/dist/generated/models/reserved-asset-detail.d.ts.map +1 -0
- package/dist/generated/models/reserved-asset-detail.js +158 -0
- package/dist/generated/models/reserved-asset-details.d.ts +34 -0
- package/dist/generated/models/reserved-asset-details.d.ts.map +1 -0
- package/dist/generated/models/reserved-asset-details.js +52 -0
- package/dist/generated/models/reserved-asset.d.ts +94 -0
- package/dist/generated/models/reserved-asset.d.ts.map +1 -0
- package/dist/generated/models/reserved-asset.js +90 -0
- package/dist/generated/models/reserved-assets.d.ts +34 -0
- package/dist/generated/models/reserved-assets.d.ts.map +1 -0
- package/dist/generated/models/reserved-assets.js +52 -0
- package/dist/generated/models/update-asset-reservation.d.ts +75 -0
- package/dist/generated/models/update-asset-reservation.d.ts.map +1 -0
- package/dist/generated/models/update-asset-reservation.js +63 -0
- package/dist/generated/models/update-asset-reservations.d.ts +34 -0
- package/dist/generated/models/update-asset-reservations.d.ts.map +1 -0
- package/dist/generated/models/update-asset-reservations.js +52 -0
- package/dist/generated/models/update-product.d.ts +6 -0
- package/dist/generated/models/update-product.d.ts.map +1 -1
- package/dist/generated/models/update-product.js +2 -0
- package/dist/generated/models/update-reserved-asset.d.ts +69 -0
- package/dist/generated/models/update-reserved-asset.d.ts.map +1 -0
- package/dist/generated/models/update-reserved-asset.js +61 -0
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +1 -2
- package/src/generated/.openapi-generator/FILES +7 -8
- package/src/generated/apis/default-api.ts +252 -250
- package/src/generated/models/asset-reservation-detail.ts +397 -0
- package/src/generated/models/asset-reservation-details.ts +74 -0
- package/src/generated/models/asset-reservation.ts +163 -0
- package/src/generated/models/asset-reservations.ts +74 -0
- package/src/generated/models/asset.ts +11 -11
- package/src/generated/models/create-asset-reservation.ts +84 -0
- package/src/generated/models/create-product-custom.ts +8 -0
- package/src/generated/models/index.ts +7 -8
- package/src/generated/models/product-custom.ts +8 -0
- package/src/generated/models/reserve-asset.ts +84 -0
- package/src/generated/models/reserved-asset-detail.ts +397 -0
- package/src/generated/models/reserved-asset-details.ts +74 -0
- package/src/generated/models/reserved-asset.ts +163 -0
- package/src/generated/models/reserved-assets.ts +74 -0
- package/src/generated/models/update-asset-reservation.ts +121 -0
- package/src/generated/models/update-asset-reservations.ts +74 -0
- package/src/generated/models/update-product.ts +8 -0
- package/src/generated/models/update-reserved-asset.ts +113 -0
- package/package.deploy.json +0 -33
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AssetReservationDetailToJSONTyped = exports.AssetReservationDetailToJSON = exports.AssetReservationDetailFromJSONTyped = exports.AssetReservationDetailFromJSON = exports.instanceOfAssetReservationDetail = void 0;
|
|
17
|
+
const lease_status_1 = require("./lease-status");
|
|
18
|
+
const product_custom_1 = require("./product-custom");
|
|
19
|
+
const site_1 = require("./site");
|
|
20
|
+
const user_1 = require("./user");
|
|
21
|
+
const org_1 = require("./org");
|
|
22
|
+
const asset_reservation_1 = require("./asset-reservation");
|
|
23
|
+
const note_1 = require("./note");
|
|
24
|
+
const asset_category_1 = require("./asset-category");
|
|
25
|
+
const map_feature_1 = require("./map-feature");
|
|
26
|
+
const asset_class_1 = require("./asset-class");
|
|
27
|
+
const asset_feature_1 = require("./asset-feature");
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AssetReservationDetail interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfAssetReservationDetail(value) {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('orgId' in value) || value['orgId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('leaseStatus' in value) || value['leaseStatus'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('assetCategoryId' in value) || value['assetCategoryId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('externalProductId' in value) || value['externalProductId'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('assetClassId' in value) || value['assetClassId'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('createdById' in value) || value['createdById'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('updatedById' in value) || value['updatedById'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('totalStock' in value) || value['totalStock'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('reservedStock' in value) || value['reservedStock'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('availableStock' in value) || value['availableStock'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('currentPrice' in value) || value['currentPrice'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('productDetails' in value) || value['productDetails'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
exports.instanceOfAssetReservationDetail = instanceOfAssetReservationDetail;
|
|
75
|
+
function AssetReservationDetailFromJSON(json) {
|
|
76
|
+
return AssetReservationDetailFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
exports.AssetReservationDetailFromJSON = AssetReservationDetailFromJSON;
|
|
79
|
+
function AssetReservationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
80
|
+
if (json == null) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'id': json['id'],
|
|
85
|
+
'name': json['name'],
|
|
86
|
+
'description': json['description'],
|
|
87
|
+
'org': json['org'] == null ? undefined : (0, org_1.OrgFromJSON)(json['org']),
|
|
88
|
+
'orgId': json['orgId'],
|
|
89
|
+
'site': json['site'] == null ? undefined : (0, site_1.SiteFromJSON)(json['site']),
|
|
90
|
+
'siteId': json['siteId'],
|
|
91
|
+
'mapFeature': json['mapFeature'] == null ? undefined : (0, map_feature_1.MapFeatureFromJSON)(json['mapFeature']),
|
|
92
|
+
'leaseStatus': (0, lease_status_1.LeaseStatusFromJSON)(json['leaseStatus']),
|
|
93
|
+
'assetCategory': json['assetCategory'] == null ? undefined : (0, asset_category_1.AssetCategoryFromJSON)(json['assetCategory']),
|
|
94
|
+
'assetCategoryId': json['assetCategoryId'],
|
|
95
|
+
'externalProductId': json['externalProductId'],
|
|
96
|
+
'assetClass': json['assetClass'] == null ? undefined : (0, asset_class_1.AssetClassFromJSON)(json['assetClass']),
|
|
97
|
+
'assetClassId': json['assetClassId'],
|
|
98
|
+
'assetFeatures': json['assetFeatures'] == null ? undefined : (json['assetFeatures'].map(asset_feature_1.AssetFeatureFromJSON)),
|
|
99
|
+
'metadata': json['metadata'],
|
|
100
|
+
'note': json['note'] == null ? undefined : (json['note'].map(note_1.NoteFromJSON)),
|
|
101
|
+
'deleted': json['deleted'],
|
|
102
|
+
'createdBy': json['createdBy'] == null ? undefined : (0, user_1.UserFromJSON)(json['createdBy']),
|
|
103
|
+
'createdById': json['createdById'],
|
|
104
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
105
|
+
'updatedBy': json['updatedBy'] == null ? undefined : (0, user_1.UserFromJSON)(json['updatedBy']),
|
|
106
|
+
'updatedById': json['updatedById'],
|
|
107
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
108
|
+
'assetReservation': json['assetReservation'] == null ? undefined : (json['assetReservation'].map(asset_reservation_1.AssetReservationFromJSON)),
|
|
109
|
+
'totalStock': json['totalStock'],
|
|
110
|
+
'reservedStock': json['reservedStock'],
|
|
111
|
+
'availableStock': json['availableStock'],
|
|
112
|
+
'currentPrice': json['currentPrice'],
|
|
113
|
+
'productDetails': (0, product_custom_1.ProductCustomFromJSON)(json['productDetails']),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
exports.AssetReservationDetailFromJSONTyped = AssetReservationDetailFromJSONTyped;
|
|
117
|
+
function AssetReservationDetailToJSON(json) {
|
|
118
|
+
return AssetReservationDetailToJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
exports.AssetReservationDetailToJSON = AssetReservationDetailToJSON;
|
|
121
|
+
function AssetReservationDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
122
|
+
if (value == null) {
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
'id': value['id'],
|
|
127
|
+
'name': value['name'],
|
|
128
|
+
'description': value['description'],
|
|
129
|
+
'org': (0, org_1.OrgToJSON)(value['org']),
|
|
130
|
+
'orgId': value['orgId'],
|
|
131
|
+
'site': (0, site_1.SiteToJSON)(value['site']),
|
|
132
|
+
'siteId': value['siteId'],
|
|
133
|
+
'mapFeature': (0, map_feature_1.MapFeatureToJSON)(value['mapFeature']),
|
|
134
|
+
'leaseStatus': (0, lease_status_1.LeaseStatusToJSON)(value['leaseStatus']),
|
|
135
|
+
'assetCategory': (0, asset_category_1.AssetCategoryToJSON)(value['assetCategory']),
|
|
136
|
+
'assetCategoryId': value['assetCategoryId'],
|
|
137
|
+
'externalProductId': value['externalProductId'],
|
|
138
|
+
'assetClass': (0, asset_class_1.AssetClassToJSON)(value['assetClass']),
|
|
139
|
+
'assetClassId': value['assetClassId'],
|
|
140
|
+
'assetFeatures': value['assetFeatures'] == null ? undefined : (value['assetFeatures'].map(asset_feature_1.AssetFeatureToJSON)),
|
|
141
|
+
'metadata': value['metadata'],
|
|
142
|
+
'note': value['note'] == null ? undefined : (value['note'].map(note_1.NoteToJSON)),
|
|
143
|
+
'deleted': value['deleted'],
|
|
144
|
+
'createdBy': (0, user_1.UserToJSON)(value['createdBy']),
|
|
145
|
+
'createdById': value['createdById'],
|
|
146
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
147
|
+
'updatedBy': (0, user_1.UserToJSON)(value['updatedBy']),
|
|
148
|
+
'updatedById': value['updatedById'],
|
|
149
|
+
'updatedAt': (value['updatedAt'] == null ? null : value['updatedAt'].toISOString()),
|
|
150
|
+
'assetReservation': value['assetReservation'] == null ? undefined : (value['assetReservation'].map(asset_reservation_1.AssetReservationToJSON)),
|
|
151
|
+
'totalStock': value['totalStock'],
|
|
152
|
+
'reservedStock': value['reservedStock'],
|
|
153
|
+
'availableStock': value['availableStock'],
|
|
154
|
+
'currentPrice': value['currentPrice'],
|
|
155
|
+
'productDetails': (0, product_custom_1.ProductCustomToJSON)(value['productDetails']),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
exports.AssetReservationDetailToJSONTyped = AssetReservationDetailToJSONTyped;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace API
|
|
3
|
+
* ManageSpace API Documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AssetReservationDetail } from './asset-reservation-detail';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssetReservationDetails
|
|
17
|
+
*/
|
|
18
|
+
export interface AssetReservationDetails {
|
|
19
|
+
/**
|
|
20
|
+
* Asset Detials.
|
|
21
|
+
* @type {Array<AssetReservationDetail>}
|
|
22
|
+
* @memberof AssetReservationDetails
|
|
23
|
+
*/
|
|
24
|
+
merchandiseDetails: Array<AssetReservationDetail>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AssetReservationDetails interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAssetReservationDetails(value: object): value is AssetReservationDetails;
|
|
30
|
+
export declare function AssetReservationDetailsFromJSON(json: any): AssetReservationDetails;
|
|
31
|
+
export declare function AssetReservationDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetReservationDetails;
|
|
32
|
+
export declare function AssetReservationDetailsToJSON(json: any): AssetReservationDetails;
|
|
33
|
+
export declare function AssetReservationDetailsToJSONTyped(value?: AssetReservationDetails | null, ignoreDiscriminator?: boolean): any;
|
|
34
|
+
//# sourceMappingURL=asset-reservation-details.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-reservation-details.d.ts","sourceRoot":"","sources":["../../../src/generated/models/asset-reservation-details.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAQzE;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,kBAAkB,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACrD;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAGjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAQrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpI"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AssetReservationDetailsToJSONTyped = exports.AssetReservationDetailsToJSON = exports.AssetReservationDetailsFromJSONTyped = exports.AssetReservationDetailsFromJSON = exports.instanceOfAssetReservationDetails = void 0;
|
|
17
|
+
const asset_reservation_detail_1 = require("./asset-reservation-detail");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the AssetReservationDetails interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfAssetReservationDetails(value) {
|
|
22
|
+
if (!('merchandiseDetails' in value) || value['merchandiseDetails'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfAssetReservationDetails = instanceOfAssetReservationDetails;
|
|
27
|
+
function AssetReservationDetailsFromJSON(json) {
|
|
28
|
+
return AssetReservationDetailsFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.AssetReservationDetailsFromJSON = AssetReservationDetailsFromJSON;
|
|
31
|
+
function AssetReservationDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'merchandiseDetails': (json['merchandiseDetails'].map(asset_reservation_detail_1.AssetReservationDetailFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.AssetReservationDetailsFromJSONTyped = AssetReservationDetailsFromJSONTyped;
|
|
40
|
+
function AssetReservationDetailsToJSON(json) {
|
|
41
|
+
return AssetReservationDetailsToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
exports.AssetReservationDetailsToJSON = AssetReservationDetailsToJSON;
|
|
44
|
+
function AssetReservationDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'merchandiseDetails': (value['merchandiseDetails'].map(asset_reservation_detail_1.AssetReservationDetailToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.AssetReservationDetailsToJSONTyped = AssetReservationDetailsToJSONTyped;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace API
|
|
3
|
+
* ManageSpace API Documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Asset } from './asset';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssetReservation
|
|
17
|
+
*/
|
|
18
|
+
export interface AssetReservation {
|
|
19
|
+
/**
|
|
20
|
+
* Basket Item ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AssetReservation
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Customer ID who owns this basket item
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AssetReservation
|
|
29
|
+
*/
|
|
30
|
+
customerId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Site ID where the product is located
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AssetReservation
|
|
35
|
+
*/
|
|
36
|
+
siteId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Reference to the asset this item reserves from
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AssetReservation
|
|
41
|
+
*/
|
|
42
|
+
assetId: string;
|
|
43
|
+
/**
|
|
44
|
+
* Quantity of the product reserved
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof AssetReservation
|
|
47
|
+
*/
|
|
48
|
+
quantity: number;
|
|
49
|
+
/**
|
|
50
|
+
* Unit price of the product at time of reservation
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AssetReservation
|
|
53
|
+
*/
|
|
54
|
+
unitPrice: string;
|
|
55
|
+
/**
|
|
56
|
+
* When the item was reserved
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof AssetReservation
|
|
59
|
+
*/
|
|
60
|
+
reservedAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
* When the reservation expires (typically 15 minutes after reservedAt)
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof AssetReservation
|
|
65
|
+
*/
|
|
66
|
+
expiresAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the reservation has been fulfilled (checked out)
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof AssetReservation
|
|
71
|
+
*/
|
|
72
|
+
fulfilled: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the reservation has been cancelled
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof AssetReservation
|
|
77
|
+
*/
|
|
78
|
+
cancelled: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Asset}
|
|
82
|
+
* @memberof AssetReservation
|
|
83
|
+
*/
|
|
84
|
+
asset?: Asset;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the AssetReservation interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfAssetReservation(value: object): value is AssetReservation;
|
|
90
|
+
export declare function AssetReservationFromJSON(json: any): AssetReservation;
|
|
91
|
+
export declare function AssetReservationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetReservation;
|
|
92
|
+
export declare function AssetReservationToJSON(json: any): AssetReservation;
|
|
93
|
+
export declare function AssetReservationToJSONTyped(value?: AssetReservation | null, ignoreDiscriminator?: boolean): any;
|
|
94
|
+
//# sourceMappingURL=asset-reservation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-reservation.d.ts","sourceRoot":"","sources":["../../../src/generated/models/asset-reservation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,IAAI,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAYnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAkBvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBtH"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AssetReservationToJSONTyped = exports.AssetReservationToJSON = exports.AssetReservationFromJSONTyped = exports.AssetReservationFromJSON = exports.instanceOfAssetReservation = void 0;
|
|
17
|
+
const asset_1 = require("./asset");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the AssetReservation interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfAssetReservation(value) {
|
|
22
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('customerId' in value) || value['customerId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('unitPrice' in value) || value['unitPrice'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('reservedAt' in value) || value['reservedAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('fulfilled' in value) || value['fulfilled'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('cancelled' in value) || value['cancelled'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
exports.instanceOfAssetReservation = instanceOfAssetReservation;
|
|
45
|
+
function AssetReservationFromJSON(json) {
|
|
46
|
+
return AssetReservationFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
exports.AssetReservationFromJSON = AssetReservationFromJSON;
|
|
49
|
+
function AssetReservationFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'customerId': json['customerId'],
|
|
56
|
+
'siteId': json['siteId'],
|
|
57
|
+
'assetId': json['assetId'],
|
|
58
|
+
'quantity': json['quantity'],
|
|
59
|
+
'unitPrice': json['unitPrice'],
|
|
60
|
+
'reservedAt': (new Date(json['reservedAt'])),
|
|
61
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
62
|
+
'fulfilled': json['fulfilled'],
|
|
63
|
+
'cancelled': json['cancelled'],
|
|
64
|
+
'asset': json['asset'] == null ? undefined : (0, asset_1.AssetFromJSON)(json['asset']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.AssetReservationFromJSONTyped = AssetReservationFromJSONTyped;
|
|
68
|
+
function AssetReservationToJSON(json) {
|
|
69
|
+
return AssetReservationToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
exports.AssetReservationToJSON = AssetReservationToJSON;
|
|
72
|
+
function AssetReservationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'id': value['id'],
|
|
78
|
+
'customerId': value['customerId'],
|
|
79
|
+
'siteId': value['siteId'],
|
|
80
|
+
'assetId': value['assetId'],
|
|
81
|
+
'quantity': value['quantity'],
|
|
82
|
+
'unitPrice': value['unitPrice'],
|
|
83
|
+
'reservedAt': ((value['reservedAt']).toISOString()),
|
|
84
|
+
'expiresAt': ((value['expiresAt']).toISOString()),
|
|
85
|
+
'fulfilled': value['fulfilled'],
|
|
86
|
+
'cancelled': value['cancelled'],
|
|
87
|
+
'asset': (0, asset_1.AssetToJSON)(value['asset']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
exports.AssetReservationToJSONTyped = AssetReservationToJSONTyped;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace API
|
|
3
|
+
* ManageSpace API Documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AssetReservation } from './asset-reservation';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssetReservations
|
|
17
|
+
*/
|
|
18
|
+
export interface AssetReservations {
|
|
19
|
+
/**
|
|
20
|
+
* Reserved merchandise details.
|
|
21
|
+
* @type {Array<AssetReservation>}
|
|
22
|
+
* @memberof AssetReservations
|
|
23
|
+
*/
|
|
24
|
+
assetReservations: Array<AssetReservation>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AssetReservations interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAssetReservations(value: object): value is AssetReservations;
|
|
30
|
+
export declare function AssetReservationsFromJSON(json: any): AssetReservations;
|
|
31
|
+
export declare function AssetReservationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetReservations;
|
|
32
|
+
export declare function AssetReservationsToJSON(json: any): AssetReservations;
|
|
33
|
+
export declare function AssetReservationsToJSONTyped(value?: AssetReservations | null, ignoreDiscriminator?: boolean): any;
|
|
34
|
+
//# sourceMappingURL=asset-reservations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-reservations.d.ts","sourceRoot":"","sources":["../../../src/generated/models/asset-reservations.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAQ5D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAQzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxH"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AssetReservationsToJSONTyped = exports.AssetReservationsToJSON = exports.AssetReservationsFromJSONTyped = exports.AssetReservationsFromJSON = exports.instanceOfAssetReservations = void 0;
|
|
17
|
+
const asset_reservation_1 = require("./asset-reservation");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the AssetReservations interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfAssetReservations(value) {
|
|
22
|
+
if (!('assetReservations' in value) || value['assetReservations'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfAssetReservations = instanceOfAssetReservations;
|
|
27
|
+
function AssetReservationsFromJSON(json) {
|
|
28
|
+
return AssetReservationsFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.AssetReservationsFromJSON = AssetReservationsFromJSON;
|
|
31
|
+
function AssetReservationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'assetReservations': (json['assetReservations'].map(asset_reservation_1.AssetReservationFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.AssetReservationsFromJSONTyped = AssetReservationsFromJSONTyped;
|
|
40
|
+
function AssetReservationsToJSON(json) {
|
|
41
|
+
return AssetReservationsToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
exports.AssetReservationsToJSON = AssetReservationsToJSON;
|
|
44
|
+
function AssetReservationsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'assetReservations': (value['assetReservations'].map(asset_reservation_1.AssetReservationToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.AssetReservationsToJSONTyped = AssetReservationsToJSONTyped;
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import type { LeaseStatus } from './lease-status';
|
|
13
13
|
import type { Site } from './site';
|
|
14
14
|
import type { User } from './user';
|
|
15
|
-
import type { ReservedMerchandise } from './reserved-merchandise';
|
|
16
15
|
import type { Org } from './org';
|
|
16
|
+
import type { AssetReservation } from './asset-reservation';
|
|
17
17
|
import type { Note } from './note';
|
|
18
18
|
import type { AssetCategory } from './asset-category';
|
|
19
19
|
import type { MapFeature } from './map-feature';
|
|
@@ -171,10 +171,10 @@ export interface Asset {
|
|
|
171
171
|
updatedAt: Date | null;
|
|
172
172
|
/**
|
|
173
173
|
*
|
|
174
|
-
* @type {Array<
|
|
174
|
+
* @type {Array<AssetReservation>}
|
|
175
175
|
* @memberof Asset
|
|
176
176
|
*/
|
|
177
|
-
|
|
177
|
+
assetReservation?: Array<AssetReservation>;
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
180
|
* Check if a given object implements the Asset interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/generated/models/asset.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAOlD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/generated/models/asset.ts"],"names":[],"mappings":"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"}
|
|
@@ -17,8 +17,8 @@ exports.AssetToJSONTyped = exports.AssetToJSON = exports.AssetFromJSONTyped = ex
|
|
|
17
17
|
const lease_status_1 = require("./lease-status");
|
|
18
18
|
const site_1 = require("./site");
|
|
19
19
|
const user_1 = require("./user");
|
|
20
|
-
const reserved_merchandise_1 = require("./reserved-merchandise");
|
|
21
20
|
const org_1 = require("./org");
|
|
21
|
+
const asset_reservation_1 = require("./asset-reservation");
|
|
22
22
|
const note_1 = require("./note");
|
|
23
23
|
const asset_category_1 = require("./asset-category");
|
|
24
24
|
const map_feature_1 = require("./map-feature");
|
|
@@ -94,7 +94,7 @@ function AssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
94
|
'updatedBy': json['updatedBy'] == null ? undefined : (0, user_1.UserFromJSON)(json['updatedBy']),
|
|
95
95
|
'updatedById': json['updatedById'],
|
|
96
96
|
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
97
|
-
'
|
|
97
|
+
'assetReservation': json['assetReservation'] == null ? undefined : (json['assetReservation'].map(asset_reservation_1.AssetReservationFromJSON)),
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
exports.AssetFromJSONTyped = AssetFromJSONTyped;
|
|
@@ -131,7 +131,7 @@ function AssetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
131
131
|
'updatedBy': (0, user_1.UserToJSON)(value['updatedBy']),
|
|
132
132
|
'updatedById': value['updatedById'],
|
|
133
133
|
'updatedAt': (value['updatedAt'] == null ? null : value['updatedAt'].toISOString()),
|
|
134
|
-
'
|
|
134
|
+
'assetReservation': value['assetReservation'] == null ? undefined : (value['assetReservation'].map(asset_reservation_1.AssetReservationToJSON)),
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
exports.AssetToJSONTyped = AssetToJSONTyped;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace API
|
|
3
|
+
* ManageSpace API Documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateAssetReservation
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateAssetReservation {
|
|
18
|
+
/**
|
|
19
|
+
* Customer ID who owns this basket item
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateAssetReservation
|
|
22
|
+
*/
|
|
23
|
+
customerId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Reference to the asset this item reserves from
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateAssetReservation
|
|
28
|
+
*/
|
|
29
|
+
assetId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Quantity of the product reserved
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreateAssetReservation
|
|
34
|
+
*/
|
|
35
|
+
quantity: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateAssetReservation interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCreateAssetReservation(value: object): value is CreateAssetReservation;
|
|
41
|
+
export declare function CreateAssetReservationFromJSON(json: any): CreateAssetReservation;
|
|
42
|
+
export declare function CreateAssetReservationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAssetReservation;
|
|
43
|
+
export declare function CreateAssetReservationToJSON(json: any): CreateAssetReservation;
|
|
44
|
+
export declare function CreateAssetReservationToJSONTyped(value?: CreateAssetReservation | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
//# sourceMappingURL=create-asset-reservation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-asset-reservation.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-asset-reservation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAK/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAUnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWlI"}
|