@vantage-sh/vantage-client 0.1.0-beta7 → 2.0.0

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.
Files changed (62) hide show
  1. package/README.md +201 -80
  2. package/dist/index.d.mts +20895 -0
  3. package/dist/index.d.ts +20895 -0
  4. package/dist/index.js +2 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.mjs +2 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +38 -43
  9. package/.swagger-codegen/VERSION +0 -1
  10. package/.swagger-codegen-ignore +0 -23
  11. package/.travis.yml +0 -4
  12. package/babel.config.json +0 -10
  13. package/docs/Cost.md +0 -11
  14. package/docs/Costs.md +0 -11
  15. package/docs/CostsApi.md +0 -168
  16. package/docs/PingApi.md +0 -51
  17. package/docs/Price.md +0 -14
  18. package/docs/Prices.md +0 -9
  19. package/docs/PricesApi.md +0 -328
  20. package/docs/Product.md +0 -13
  21. package/docs/Products.md +0 -9
  22. package/docs/Provider.md +0 -10
  23. package/docs/Providers.md +0 -9
  24. package/docs/Report.md +0 -13
  25. package/docs/Reports.md +0 -9
  26. package/docs/Service.md +0 -11
  27. package/docs/Services.md +0 -9
  28. package/lib/Vantage/ApiClient.js +0 -645
  29. package/lib/Vantage/Vantage/CostsApi.js +0 -183
  30. package/lib/Vantage/Vantage/PingApi.js +0 -71
  31. package/lib/Vantage/Vantage/PricesApi.js +0 -325
  32. package/lib/Vantage/index.js +0 -133
  33. package/lib/Vantage/model/Cost.js +0 -81
  34. package/lib/Vantage/model/Costs.js +0 -82
  35. package/lib/Vantage/model/Price.js +0 -102
  36. package/lib/Vantage/model/Prices.js +0 -68
  37. package/lib/Vantage/model/Product.js +0 -95
  38. package/lib/Vantage/model/Products.js +0 -68
  39. package/lib/Vantage/model/Provider.js +0 -73
  40. package/lib/Vantage/model/Providers.js +0 -68
  41. package/lib/Vantage/model/Report.js +0 -95
  42. package/lib/Vantage/model/Reports.js +0 -68
  43. package/lib/Vantage/model/Service.js +0 -80
  44. package/lib/Vantage/model/Services.js +0 -68
  45. package/mocha.opts +0 -1
  46. package/test/Vantage/Vantage/CostsApi.spec.js +0 -164
  47. package/test/Vantage/Vantage/PingApi.spec.js +0 -61
  48. package/test/Vantage/Vantage/PricesApi.spec.js +0 -280
  49. package/test/Vantage/model/Cost.spec.js +0 -71
  50. package/test/Vantage/model/Costs.spec.js +0 -71
  51. package/test/Vantage/model/Price.spec.js +0 -89
  52. package/test/Vantage/model/Prices.spec.js +0 -59
  53. package/test/Vantage/model/Product.spec.js +0 -83
  54. package/test/Vantage/model/Products.spec.js +0 -59
  55. package/test/Vantage/model/Provider.spec.js +0 -65
  56. package/test/Vantage/model/Providers.spec.js +0 -59
  57. package/test/Vantage/model/Report.spec.js +0 -83
  58. package/test/Vantage/model/Reports.spec.js +0 -59
  59. package/test/Vantage/model/Service.spec.js +0 -71
  60. package/test/Vantage/model/Services.spec.js +0 -59
  61. package/test/assert-equals.js +0 -81
  62. package/vantage-sh-vantage-client-0.1.0-beta6.tgz +0 -0
@@ -1,133 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "ApiClient", {
7
- enumerable: true,
8
- get: function get() {
9
- return _ApiClient.ApiClient;
10
- }
11
- });
12
- Object.defineProperty(exports, "Cost", {
13
- enumerable: true,
14
- get: function get() {
15
- return _Cost.Cost;
16
- }
17
- });
18
- Object.defineProperty(exports, "Costs", {
19
- enumerable: true,
20
- get: function get() {
21
- return _Costs.Costs;
22
- }
23
- });
24
- Object.defineProperty(exports, "Price", {
25
- enumerable: true,
26
- get: function get() {
27
- return _Price.Price;
28
- }
29
- });
30
- Object.defineProperty(exports, "Prices", {
31
- enumerable: true,
32
- get: function get() {
33
- return _Prices.Prices;
34
- }
35
- });
36
- Object.defineProperty(exports, "Product", {
37
- enumerable: true,
38
- get: function get() {
39
- return _Product.Product;
40
- }
41
- });
42
- Object.defineProperty(exports, "Products", {
43
- enumerable: true,
44
- get: function get() {
45
- return _Products.Products;
46
- }
47
- });
48
- Object.defineProperty(exports, "Provider", {
49
- enumerable: true,
50
- get: function get() {
51
- return _Provider.Provider;
52
- }
53
- });
54
- Object.defineProperty(exports, "Providers", {
55
- enumerable: true,
56
- get: function get() {
57
- return _Providers.Providers;
58
- }
59
- });
60
- Object.defineProperty(exports, "Report", {
61
- enumerable: true,
62
- get: function get() {
63
- return _Report.Report;
64
- }
65
- });
66
- Object.defineProperty(exports, "Reports", {
67
- enumerable: true,
68
- get: function get() {
69
- return _Reports.Reports;
70
- }
71
- });
72
- Object.defineProperty(exports, "Service", {
73
- enumerable: true,
74
- get: function get() {
75
- return _Service.Service;
76
- }
77
- });
78
- Object.defineProperty(exports, "Services", {
79
- enumerable: true,
80
- get: function get() {
81
- return _Services.Services;
82
- }
83
- });
84
- Object.defineProperty(exports, "CostsApi", {
85
- enumerable: true,
86
- get: function get() {
87
- return _CostsApi.CostsApi;
88
- }
89
- });
90
- Object.defineProperty(exports, "PingApi", {
91
- enumerable: true,
92
- get: function get() {
93
- return _PingApi.PingApi;
94
- }
95
- });
96
- Object.defineProperty(exports, "PricesApi", {
97
- enumerable: true,
98
- get: function get() {
99
- return _PricesApi.PricesApi;
100
- }
101
- });
102
-
103
- var _ApiClient = require("./ApiClient");
104
-
105
- var _Cost = require("./model/Cost");
106
-
107
- var _Costs = require("./model/Costs");
108
-
109
- var _Price = require("./model/Price");
110
-
111
- var _Prices = require("./model/Prices");
112
-
113
- var _Product = require("./model/Product");
114
-
115
- var _Products = require("./model/Products");
116
-
117
- var _Provider = require("./model/Provider");
118
-
119
- var _Providers = require("./model/Providers");
120
-
121
- var _Report = require("./model/Report");
122
-
123
- var _Reports = require("./model/Reports");
124
-
125
- var _Service = require("./model/Service");
126
-
127
- var _Services = require("./model/Services");
128
-
129
- var _CostsApi = require("./Vantage/CostsApi");
130
-
131
- var _PingApi = require("./Vantage/PingApi");
132
-
133
- var _PricesApi = require("./Vantage/PricesApi");
@@ -1,81 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Cost = void 0;
7
-
8
- var _ApiClient = require("../ApiClient");
9
-
10
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
-
12
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
13
-
14
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
15
-
16
- /**
17
- * The Cost model module.
18
- * @module Vantage/model/Cost
19
- * @version 1.0.0
20
- */
21
- var Cost = /*#__PURE__*/function () {
22
- /**
23
- * Constructs a new <code>Cost</code>.
24
- * @alias module:Vantage/model/Cost
25
- * @class
26
- */
27
- function Cost() {
28
- _classCallCheck(this, Cost);
29
- }
30
- /**
31
- * Constructs a <code>Cost</code> from a plain JavaScript object, optionally creating a new instance.
32
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
33
- * @param {Object} data The plain JavaScript object bearing properties of interest.
34
- * @param {module:Vantage/model/Cost} obj Optional instance to populate.
35
- * @return {module:Vantage/model/Cost} The populated <code>Cost</code> instance.
36
- */
37
-
38
-
39
- _createClass(Cost, null, [{
40
- key: "constructFromObject",
41
- value: function constructFromObject(data, obj) {
42
- if (data) {
43
- obj = obj || new Cost();
44
- if (data.hasOwnProperty('accrued_at')) obj.accruedAt = _ApiClient.ApiClient.convertToType(data['accrued_at'], 'String');
45
- if (data.hasOwnProperty('amount')) obj.amount = _ApiClient.ApiClient.convertToType(data['amount'], 'String');
46
- if (data.hasOwnProperty('provider')) obj.provider = _ApiClient.ApiClient.convertToType(data['provider'], 'String');
47
- if (data.hasOwnProperty('service')) obj.service = _ApiClient.ApiClient.convertToType(data['service'], 'String');
48
- }
49
-
50
- return obj;
51
- }
52
- }]);
53
-
54
- return Cost;
55
- }();
56
- /**
57
- * The date the cost was accrued. ISO 8601 Formatted - 2021-07-15 or 2021-07-15T19:20:48+00:00.
58
- * @member {String} accruedAt
59
- */
60
-
61
-
62
- exports.Cost = Cost;
63
- Cost.prototype.accruedAt = undefined;
64
- /**
65
- * The amount of the cost.
66
- * @member {String} amount
67
- */
68
-
69
- Cost.prototype.amount = undefined;
70
- /**
71
- * The service provider where the cost was incurred. e.g. AWS
72
- * @member {String} provider
73
- */
74
-
75
- Cost.prototype.provider = undefined;
76
- /**
77
- * The service which incurred the cost. e.g. Amazon ElastiCache
78
- * @member {String} service
79
- */
80
-
81
- Cost.prototype.service = undefined;
@@ -1,82 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Costs = void 0;
7
-
8
- var _ApiClient = require("../ApiClient");
9
-
10
- var _Cost = require("./Cost");
11
-
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
15
-
16
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
17
-
18
- /**
19
- * The Costs model module.
20
- * @module Vantage/model/Costs
21
- * @version 1.0.0
22
- */
23
- var Costs = /*#__PURE__*/function () {
24
- /**
25
- * Constructs a new <code>Costs</code>.
26
- * Costs model
27
- * @alias module:Vantage/model/Costs
28
- * @class
29
- */
30
- function Costs() {
31
- _classCallCheck(this, Costs);
32
- }
33
- /**
34
- * Constructs a <code>Costs</code> from a plain JavaScript object, optionally creating a new instance.
35
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
36
- * @param {Object} data The plain JavaScript object bearing properties of interest.
37
- * @param {module:Vantage/model/Costs} obj Optional instance to populate.
38
- * @return {module:Vantage/model/Costs} The populated <code>Costs</code> instance.
39
- */
40
-
41
-
42
- _createClass(Costs, null, [{
43
- key: "constructFromObject",
44
- value: function constructFromObject(data, obj) {
45
- if (data) {
46
- obj = obj || new Costs();
47
- if (data.hasOwnProperty('links')) obj.links = _ApiClient.ApiClient.convertToType(data['links'], Object);
48
- if (data.hasOwnProperty('total')) obj.total = _ApiClient.ApiClient.convertToType(data['total'], 'String');
49
- if (data.hasOwnProperty('currency')) obj.currency = _ApiClient.ApiClient.convertToType(data['currency'], 'String');
50
- if (data.hasOwnProperty('costs')) obj.costs = _ApiClient.ApiClient.convertToType(data['costs'], [_Cost.Cost]);
51
- }
52
-
53
- return obj;
54
- }
55
- }]);
56
-
57
- return Costs;
58
- }();
59
- /**
60
- * @member {Object} links
61
- */
62
-
63
-
64
- exports.Costs = Costs;
65
- Costs.prototype.links = undefined;
66
- /**
67
- * The sum of all amounts of costs for the entire report for the requested period.
68
- * @member {String} total
69
- */
70
-
71
- Costs.prototype.total = undefined;
72
- /**
73
- * The currency both the total and cost amount values are represented in. e.g. USD
74
- * @member {String} currency
75
- */
76
-
77
- Costs.prototype.currency = undefined;
78
- /**
79
- * @member {Array.<module:Vantage/model/Cost>} costs
80
- */
81
-
82
- Costs.prototype.costs = undefined;
@@ -1,102 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Price = void 0;
7
-
8
- var _ApiClient = require("../ApiClient");
9
-
10
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
-
12
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
13
-
14
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
15
-
16
- /**
17
- * The Price model module.
18
- * @module Vantage/model/Price
19
- * @version 1.0.0
20
- */
21
- var Price = /*#__PURE__*/function () {
22
- /**
23
- * Constructs a new <code>Price</code>.
24
- * Price model
25
- * @alias module:Vantage/model/Price
26
- * @class
27
- */
28
- function Price() {
29
- _classCallCheck(this, Price);
30
- }
31
- /**
32
- * Constructs a <code>Price</code> from a plain JavaScript object, optionally creating a new instance.
33
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
- * @param {Object} data The plain JavaScript object bearing properties of interest.
35
- * @param {module:Vantage/model/Price} obj Optional instance to populate.
36
- * @return {module:Vantage/model/Price} The populated <code>Price</code> instance.
37
- */
38
-
39
-
40
- _createClass(Price, null, [{
41
- key: "constructFromObject",
42
- value: function constructFromObject(data, obj) {
43
- if (data) {
44
- obj = obj || new Price();
45
- if (data.hasOwnProperty('id')) obj.id = _ApiClient.ApiClient.convertToType(data['id'], 'String');
46
- if (data.hasOwnProperty('unit')) obj.unit = _ApiClient.ApiClient.convertToType(data['unit'], 'String');
47
- if (data.hasOwnProperty('region')) obj.region = _ApiClient.ApiClient.convertToType(data['region'], 'String');
48
- if (data.hasOwnProperty('rate_type')) obj.rateType = _ApiClient.ApiClient.convertToType(data['rate_type'], 'String');
49
- if (data.hasOwnProperty('currency')) obj.currency = _ApiClient.ApiClient.convertToType(data['currency'], 'String');
50
- if (data.hasOwnProperty('amount')) obj.amount = _ApiClient.ApiClient.convertToType(data['amount'], 'Number');
51
- if (data.hasOwnProperty('details')) obj.details = _ApiClient.ApiClient.convertToType(data['details'], Object);
52
- }
53
-
54
- return obj;
55
- }
56
- }]);
57
-
58
- return Price;
59
- }();
60
- /**
61
- * @member {String} id
62
- */
63
-
64
-
65
- exports.Price = Price;
66
- Price.prototype.id = undefined;
67
- /**
68
- * The unit in which the amount is billed.
69
- * @member {String} unit
70
- */
71
-
72
- Price.prototype.unit = undefined;
73
- /**
74
- * The region the price is specific to.
75
- * @member {String} region
76
- */
77
-
78
- Price.prototype.region = undefined;
79
- /**
80
- * The part of the product the price applies to. (compute, transfer, etc..)
81
- * @member {String} rateType
82
- */
83
-
84
- Price.prototype.rateType = undefined;
85
- /**
86
- * The currency of the amount.
87
- * @member {String} currency
88
- */
89
-
90
- Price.prototype.currency = undefined;
91
- /**
92
- * The amount of money this specific product price costs.
93
- * @member {Number} amount
94
- */
95
-
96
- Price.prototype.amount = undefined;
97
- /**
98
- * Service specific metadata.
99
- * @member {Object} details
100
- */
101
-
102
- Price.prototype.details = undefined;
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Prices = void 0;
7
-
8
- var _ApiClient = require("../ApiClient");
9
-
10
- var _Price = require("./Price");
11
-
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
15
-
16
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
17
-
18
- /**
19
- * The Prices model module.
20
- * @module Vantage/model/Prices
21
- * @version 1.0.0
22
- */
23
- var Prices = /*#__PURE__*/function () {
24
- /**
25
- * Constructs a new <code>Prices</code>.
26
- * Prices model
27
- * @alias module:Vantage/model/Prices
28
- * @class
29
- */
30
- function Prices() {
31
- _classCallCheck(this, Prices);
32
- }
33
- /**
34
- * Constructs a <code>Prices</code> from a plain JavaScript object, optionally creating a new instance.
35
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
36
- * @param {Object} data The plain JavaScript object bearing properties of interest.
37
- * @param {module:Vantage/model/Prices} obj Optional instance to populate.
38
- * @return {module:Vantage/model/Prices} The populated <code>Prices</code> instance.
39
- */
40
-
41
-
42
- _createClass(Prices, null, [{
43
- key: "constructFromObject",
44
- value: function constructFromObject(data, obj) {
45
- if (data) {
46
- obj = obj || new Prices();
47
- if (data.hasOwnProperty('links')) obj.links = _ApiClient.ApiClient.convertToType(data['links'], Object);
48
- if (data.hasOwnProperty('prices')) obj.prices = _ApiClient.ApiClient.convertToType(data['prices'], [_Price.Price]);
49
- }
50
-
51
- return obj;
52
- }
53
- }]);
54
-
55
- return Prices;
56
- }();
57
- /**
58
- * @member {Object} links
59
- */
60
-
61
-
62
- exports.Prices = Prices;
63
- Prices.prototype.links = undefined;
64
- /**
65
- * @member {Array.<module:Vantage/model/Price>} prices
66
- */
67
-
68
- Prices.prototype.prices = undefined;
@@ -1,95 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Product = void 0;
7
-
8
- var _ApiClient = require("../ApiClient");
9
-
10
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
-
12
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
13
-
14
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
15
-
16
- /**
17
- * The Product model module.
18
- * @module Vantage/model/Product
19
- * @version 1.0.0
20
- */
21
- var Product = /*#__PURE__*/function () {
22
- /**
23
- * Constructs a new <code>Product</code>.
24
- * Product model
25
- * @alias module:Vantage/model/Product
26
- * @class
27
- */
28
- function Product() {
29
- _classCallCheck(this, Product);
30
- }
31
- /**
32
- * Constructs a <code>Product</code> from a plain JavaScript object, optionally creating a new instance.
33
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
34
- * @param {Object} data The plain JavaScript object bearing properties of interest.
35
- * @param {module:Vantage/model/Product} obj Optional instance to populate.
36
- * @return {module:Vantage/model/Product} The populated <code>Product</code> instance.
37
- */
38
-
39
-
40
- _createClass(Product, null, [{
41
- key: "constructFromObject",
42
- value: function constructFromObject(data, obj) {
43
- if (data) {
44
- obj = obj || new Product();
45
- if (data.hasOwnProperty('id')) obj.id = _ApiClient.ApiClient.convertToType(data['id'], 'String');
46
- if (data.hasOwnProperty('category')) obj.category = _ApiClient.ApiClient.convertToType(data['category'], 'String');
47
- if (data.hasOwnProperty('name')) obj.name = _ApiClient.ApiClient.convertToType(data['name'], 'String');
48
- if (data.hasOwnProperty('service_id')) obj.serviceId = _ApiClient.ApiClient.convertToType(data['service_id'], 'String');
49
- if (data.hasOwnProperty('provider_id')) obj.providerId = _ApiClient.ApiClient.convertToType(data['provider_id'], 'String');
50
- if (data.hasOwnProperty('details')) obj.details = _ApiClient.ApiClient.convertToType(data['details'], Object);
51
- }
52
-
53
- return obj;
54
- }
55
- }]);
56
-
57
- return Product;
58
- }();
59
- /**
60
- * @member {String} id
61
- */
62
-
63
-
64
- exports.Product = Product;
65
- Product.prototype.id = undefined;
66
- /**
67
- * The category of the cloud product
68
- * @member {String} category
69
- */
70
-
71
- Product.prototype.category = undefined;
72
- /**
73
- * The common name of the product.
74
- * @member {String} name
75
- */
76
-
77
- Product.prototype.name = undefined;
78
- /**
79
- * A unique slug for the service the product belongs to.
80
- * @member {String} serviceId
81
- */
82
-
83
- Product.prototype.serviceId = undefined;
84
- /**
85
- * A unique slug for the provider the product belongs to.
86
- * @member {String} providerId
87
- */
88
-
89
- Product.prototype.providerId = undefined;
90
- /**
91
- * An object of metadata about the product.
92
- * @member {Object} details
93
- */
94
-
95
- Product.prototype.details = undefined;
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Products = void 0;
7
-
8
- var _ApiClient = require("../ApiClient");
9
-
10
- var _Product = require("./Product");
11
-
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
15
-
16
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
17
-
18
- /**
19
- * The Products model module.
20
- * @module Vantage/model/Products
21
- * @version 1.0.0
22
- */
23
- var Products = /*#__PURE__*/function () {
24
- /**
25
- * Constructs a new <code>Products</code>.
26
- * Products model
27
- * @alias module:Vantage/model/Products
28
- * @class
29
- */
30
- function Products() {
31
- _classCallCheck(this, Products);
32
- }
33
- /**
34
- * Constructs a <code>Products</code> from a plain JavaScript object, optionally creating a new instance.
35
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
36
- * @param {Object} data The plain JavaScript object bearing properties of interest.
37
- * @param {module:Vantage/model/Products} obj Optional instance to populate.
38
- * @return {module:Vantage/model/Products} The populated <code>Products</code> instance.
39
- */
40
-
41
-
42
- _createClass(Products, null, [{
43
- key: "constructFromObject",
44
- value: function constructFromObject(data, obj) {
45
- if (data) {
46
- obj = obj || new Products();
47
- if (data.hasOwnProperty('links')) obj.links = _ApiClient.ApiClient.convertToType(data['links'], Object);
48
- if (data.hasOwnProperty('products')) obj.products = _ApiClient.ApiClient.convertToType(data['products'], [_Product.Product]);
49
- }
50
-
51
- return obj;
52
- }
53
- }]);
54
-
55
- return Products;
56
- }();
57
- /**
58
- * @member {Object} links
59
- */
60
-
61
-
62
- exports.Products = Products;
63
- Products.prototype.links = undefined;
64
- /**
65
- * @member {Array.<module:Vantage/model/Product>} products
66
- */
67
-
68
- Products.prototype.products = undefined;