@arrowsphere/api-client 2.5.0 → 2.8.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 (45) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/build/abstractClient.js +2 -2
  3. package/build/abstractGraphQLClient.d.ts +27 -0
  4. package/build/abstractGraphQLClient.js +57 -0
  5. package/build/catalog/catalogGraphQLClient.d.ts +17 -0
  6. package/build/catalog/catalogGraphQLClient.js +28 -0
  7. package/build/catalog/index.d.ts +2 -0
  8. package/build/catalog/index.js +15 -0
  9. package/build/catalog/types/catalogGraphQLTypes.d.ts +224 -0
  10. package/build/catalog/types/catalogGraphQLTypes.js +3 -0
  11. package/build/customers/customersClient.d.ts +10 -0
  12. package/build/customers/customersClient.js +21 -0
  13. package/build/customers/entities/customers/contact/contact.d.ts +28 -0
  14. package/build/customers/entities/customers/contact/contact.js +77 -0
  15. package/build/customers/entities/customers/customer.d.ts +72 -0
  16. package/build/customers/entities/customers/customer.js +175 -0
  17. package/build/customers/entities/customers/details/details.d.ts +28 -0
  18. package/build/customers/entities/customers/details/details.js +75 -0
  19. package/build/customers/entities/dataCustomers.d.ts +14 -0
  20. package/build/customers/entities/dataCustomers.js +41 -0
  21. package/build/customers/index.d.ts +5 -0
  22. package/build/customers/index.js +18 -0
  23. package/build/exception/entityValidationException.d.ts +3 -1
  24. package/build/exception/entityValidationException.js +3 -1
  25. package/build/exception/notFoundException.d.ts +3 -1
  26. package/build/exception/notFoundException.js +3 -1
  27. package/build/exception/publicApiClientException.d.ts +3 -1
  28. package/build/exception/publicApiClientException.js +3 -1
  29. package/build/{licenses/entities/getResult.d.ts → getResult.d.ts} +7 -3
  30. package/build/{licenses/entities/getResult.js → getResult.js} +16 -5
  31. package/build/index.d.ts +5 -0
  32. package/build/index.js +5 -0
  33. package/build/licenses/entities/getLicense/licenseGetResult.d.ts +12 -0
  34. package/build/licenses/entities/getLicense/licenseGetResult.js +30 -2
  35. package/build/licenses/index.d.ts +0 -1
  36. package/build/licenses/index.js +0 -1
  37. package/build/licenses/licensesClient.d.ts +9 -1
  38. package/build/licenses/licensesClient.js +9 -1
  39. package/build/pagination.d.ts +28 -0
  40. package/build/pagination.js +75 -0
  41. package/build/publicApiClient.d.ts +6 -0
  42. package/build/publicApiClient.js +10 -0
  43. package/build/publicGraphQLClient.d.ts +5 -0
  44. package/build/publicGraphQLClient.js +12 -0
  45. package/package.json +3 -1
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
3
+ if (!privateMap.has(receiver)) {
4
+ throw new TypeError("attempted to set private field on non-instance");
5
+ }
6
+ privateMap.set(receiver, value);
7
+ return value;
8
+ };
9
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
10
+ if (!privateMap.has(receiver)) {
11
+ throw new TypeError("attempted to get private field on non-instance");
12
+ }
13
+ return privateMap.get(receiver);
14
+ };
15
+ var _reference, _companyName, _partnerCompanyId, _addressLine1, _addressLine2, _zip, _city, _countryCode, _state, _receptionPhone, _websiteUrl, _emailContact, _headcount, _taxNumber, _ref, _billingId, _internalReference, _contact, _details, _deletedAt;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Customer = exports.CustomerFields = void 0;
18
+ const abstractEntity_1 = require("../../../abstractEntity");
19
+ const contact_1 = require("./contact/contact");
20
+ const details_1 = require("./details/details");
21
+ var CustomerFields;
22
+ (function (CustomerFields) {
23
+ CustomerFields["COLUMN_REFERENCE"] = "Reference";
24
+ CustomerFields["COLUMN_COMPANY_NAME"] = "CompanyName";
25
+ CustomerFields["COLUMN_PARTNER_COMPANY_ID"] = "PartnerCompanyId";
26
+ CustomerFields["COLUMN_ADDRESS_LINE_1"] = "AddressLine1";
27
+ CustomerFields["COLUMN_ADDRESS_LINE_2"] = "AddressLine2";
28
+ CustomerFields["COLUMN_ZIP"] = "Zip";
29
+ CustomerFields["COLUMN_CITY"] = "City";
30
+ CustomerFields["COLUMN_COUNTRY_CODE"] = "CountryCode";
31
+ CustomerFields["COLUMN_STATE"] = "State";
32
+ CustomerFields["COLUMN_RECEPTION_PHONE"] = "ReceptionPhone";
33
+ CustomerFields["COLUMN_WEBSITE_URL"] = "WebsiteUrl";
34
+ CustomerFields["COLUMN_EMAIL_CONTACT"] = "EmailContact";
35
+ CustomerFields["COLUMN_HEADCOUNT"] = "Headcount";
36
+ CustomerFields["COLUMN_TAX_NUMBER"] = "TaxNumber";
37
+ CustomerFields["COLUMN_REF"] = "Ref";
38
+ CustomerFields["COLUMN_BILLING_ID"] = "BillingId";
39
+ CustomerFields["COLUMN_INTERNAL_REFERENCE"] = "InternalReference";
40
+ CustomerFields["COLUMN_CONTACT"] = "Contact";
41
+ CustomerFields["COLUMN_DETAILS"] = "Details";
42
+ CustomerFields["COLUMN_DELETED_AT"] = "DeletedAt";
43
+ })(CustomerFields = exports.CustomerFields || (exports.CustomerFields = {}));
44
+ class Customer extends abstractEntity_1.AbstractEntity {
45
+ constructor(getCustomersDataInput) {
46
+ super(getCustomersDataInput);
47
+ _reference.set(this, void 0);
48
+ _companyName.set(this, void 0);
49
+ _partnerCompanyId.set(this, void 0);
50
+ _addressLine1.set(this, void 0);
51
+ _addressLine2.set(this, void 0);
52
+ _zip.set(this, void 0);
53
+ _city.set(this, void 0);
54
+ _countryCode.set(this, void 0);
55
+ _state.set(this, void 0);
56
+ _receptionPhone.set(this, void 0);
57
+ _websiteUrl.set(this, void 0);
58
+ _emailContact.set(this, void 0);
59
+ _headcount.set(this, void 0);
60
+ _taxNumber.set(this, void 0);
61
+ _ref.set(this, void 0);
62
+ _billingId.set(this, void 0);
63
+ _internalReference.set(this, void 0);
64
+ _contact.set(this, void 0);
65
+ _details.set(this, void 0);
66
+ _deletedAt.set(this, void 0);
67
+ __classPrivateFieldSet(this, _reference, getCustomersDataInput[CustomerFields.COLUMN_REFERENCE]);
68
+ __classPrivateFieldSet(this, _companyName, getCustomersDataInput[CustomerFields.COLUMN_COMPANY_NAME]);
69
+ __classPrivateFieldSet(this, _partnerCompanyId, getCustomersDataInput[CustomerFields.COLUMN_PARTNER_COMPANY_ID]);
70
+ __classPrivateFieldSet(this, _addressLine1, getCustomersDataInput[CustomerFields.COLUMN_ADDRESS_LINE_1]);
71
+ __classPrivateFieldSet(this, _addressLine2, getCustomersDataInput[CustomerFields.COLUMN_ADDRESS_LINE_2]);
72
+ __classPrivateFieldSet(this, _zip, getCustomersDataInput[CustomerFields.COLUMN_ZIP]);
73
+ __classPrivateFieldSet(this, _city, getCustomersDataInput[CustomerFields.COLUMN_CITY]);
74
+ __classPrivateFieldSet(this, _countryCode, getCustomersDataInput[CustomerFields.COLUMN_COUNTRY_CODE]);
75
+ __classPrivateFieldSet(this, _state, getCustomersDataInput[CustomerFields.COLUMN_STATE]);
76
+ __classPrivateFieldSet(this, _receptionPhone, getCustomersDataInput[CustomerFields.COLUMN_RECEPTION_PHONE]);
77
+ __classPrivateFieldSet(this, _websiteUrl, getCustomersDataInput[CustomerFields.COLUMN_WEBSITE_URL]);
78
+ __classPrivateFieldSet(this, _emailContact, getCustomersDataInput[CustomerFields.COLUMN_EMAIL_CONTACT]);
79
+ __classPrivateFieldSet(this, _headcount, getCustomersDataInput[CustomerFields.COLUMN_HEADCOUNT]);
80
+ __classPrivateFieldSet(this, _taxNumber, getCustomersDataInput[CustomerFields.COLUMN_TAX_NUMBER]);
81
+ __classPrivateFieldSet(this, _ref, getCustomersDataInput[CustomerFields.COLUMN_REF]);
82
+ __classPrivateFieldSet(this, _billingId, getCustomersDataInput[CustomerFields.COLUMN_BILLING_ID]);
83
+ __classPrivateFieldSet(this, _internalReference, getCustomersDataInput[CustomerFields.COLUMN_INTERNAL_REFERENCE]);
84
+ __classPrivateFieldSet(this, _contact, new contact_1.Contact(getCustomersDataInput[CustomerFields.COLUMN_CONTACT]));
85
+ __classPrivateFieldSet(this, _details, new details_1.Details(getCustomersDataInput[CustomerFields.COLUMN_DETAILS]));
86
+ __classPrivateFieldSet(this, _deletedAt, getCustomersDataInput[CustomerFields.COLUMN_DELETED_AT]);
87
+ }
88
+ get Reference() {
89
+ return __classPrivateFieldGet(this, _reference);
90
+ }
91
+ get CompanyName() {
92
+ return __classPrivateFieldGet(this, _companyName);
93
+ }
94
+ get PartnerCompanyId() {
95
+ return __classPrivateFieldGet(this, _partnerCompanyId);
96
+ }
97
+ get AddressLine1() {
98
+ return __classPrivateFieldGet(this, _addressLine1);
99
+ }
100
+ get AddressLine2() {
101
+ return __classPrivateFieldGet(this, _addressLine2);
102
+ }
103
+ get Zip() {
104
+ return __classPrivateFieldGet(this, _zip);
105
+ }
106
+ get City() {
107
+ return __classPrivateFieldGet(this, _city);
108
+ }
109
+ get CountryCode() {
110
+ return __classPrivateFieldGet(this, _countryCode);
111
+ }
112
+ get State() {
113
+ return __classPrivateFieldGet(this, _state);
114
+ }
115
+ get ReceptionPhone() {
116
+ return __classPrivateFieldGet(this, _receptionPhone);
117
+ }
118
+ get WebsiteUrl() {
119
+ return __classPrivateFieldGet(this, _websiteUrl);
120
+ }
121
+ get EmailContact() {
122
+ return __classPrivateFieldGet(this, _emailContact);
123
+ }
124
+ get Headcount() {
125
+ return __classPrivateFieldGet(this, _headcount);
126
+ }
127
+ get TaxNumber() {
128
+ return __classPrivateFieldGet(this, _taxNumber);
129
+ }
130
+ get Ref() {
131
+ return __classPrivateFieldGet(this, _ref);
132
+ }
133
+ get BillingId() {
134
+ return __classPrivateFieldGet(this, _billingId);
135
+ }
136
+ get InternalReference() {
137
+ return __classPrivateFieldGet(this, _internalReference);
138
+ }
139
+ get Contact() {
140
+ return __classPrivateFieldGet(this, _contact);
141
+ }
142
+ get Details() {
143
+ return __classPrivateFieldGet(this, _details);
144
+ }
145
+ get DeletedAt() {
146
+ return __classPrivateFieldGet(this, _deletedAt);
147
+ }
148
+ toJSON() {
149
+ return {
150
+ [CustomerFields.COLUMN_REFERENCE]: this.Reference,
151
+ [CustomerFields.COLUMN_COMPANY_NAME]: this.CompanyName,
152
+ [CustomerFields.COLUMN_PARTNER_COMPANY_ID]: this.PartnerCompanyId,
153
+ [CustomerFields.COLUMN_ADDRESS_LINE_1]: this.AddressLine1,
154
+ [CustomerFields.COLUMN_ADDRESS_LINE_2]: this.AddressLine2,
155
+ [CustomerFields.COLUMN_ZIP]: this.Zip,
156
+ [CustomerFields.COLUMN_CITY]: this.City,
157
+ [CustomerFields.COLUMN_COUNTRY_CODE]: this.CountryCode,
158
+ [CustomerFields.COLUMN_STATE]: this.State,
159
+ [CustomerFields.COLUMN_RECEPTION_PHONE]: this.ReceptionPhone,
160
+ [CustomerFields.COLUMN_WEBSITE_URL]: this.WebsiteUrl,
161
+ [CustomerFields.COLUMN_EMAIL_CONTACT]: this.EmailContact,
162
+ [CustomerFields.COLUMN_HEADCOUNT]: this.Headcount,
163
+ [CustomerFields.COLUMN_TAX_NUMBER]: this.TaxNumber,
164
+ [CustomerFields.COLUMN_REF]: this.Ref,
165
+ [CustomerFields.COLUMN_BILLING_ID]: this.BillingId,
166
+ [CustomerFields.COLUMN_INTERNAL_REFERENCE]: this.InternalReference,
167
+ [CustomerFields.COLUMN_CONTACT]: this.Contact.toJSON(),
168
+ [CustomerFields.COLUMN_DETAILS]: this.Details.toJSON(),
169
+ [CustomerFields.COLUMN_DELETED_AT]: this.DeletedAt,
170
+ };
171
+ }
172
+ }
173
+ exports.Customer = Customer;
174
+ _reference = new WeakMap(), _companyName = new WeakMap(), _partnerCompanyId = new WeakMap(), _addressLine1 = new WeakMap(), _addressLine2 = new WeakMap(), _zip = new WeakMap(), _city = new WeakMap(), _countryCode = new WeakMap(), _state = new WeakMap(), _receptionPhone = new WeakMap(), _websiteUrl = new WeakMap(), _emailContact = new WeakMap(), _headcount = new WeakMap(), _taxNumber = new WeakMap(), _ref = new WeakMap(), _billingId = new WeakMap(), _internalReference = new WeakMap(), _contact = new WeakMap(), _details = new WeakMap(), _deletedAt = new WeakMap();
175
+ //# sourceMappingURL=customer.js.map
@@ -0,0 +1,28 @@
1
+ import { AbstractEntity } from '../../../../abstractEntity';
2
+ export declare enum DetailsFields {
3
+ COLUMN_MIGRATION = "Migration",
4
+ COLUMN_DOMAIN_NAME = "DomainName",
5
+ COLUMN_ORACLE_ONLINE_KEY = "OracleOnlineKey",
6
+ COLUMN_IBM_CE_ID = "IBMCeId",
7
+ COLUMN_MASS_360_RESELLER_ID = "Maas360ResellerId",
8
+ COLUMN_TENANT_ID = "TenantId"
9
+ }
10
+ export declare type DetailsType = {
11
+ [DetailsFields.COLUMN_MIGRATION]?: boolean;
12
+ [DetailsFields.COLUMN_DOMAIN_NAME]?: string;
13
+ [DetailsFields.COLUMN_ORACLE_ONLINE_KEY]?: string;
14
+ [DetailsFields.COLUMN_IBM_CE_ID]?: string;
15
+ [DetailsFields.COLUMN_MASS_360_RESELLER_ID]?: string;
16
+ [DetailsFields.COLUMN_TENANT_ID]?: string;
17
+ };
18
+ export declare class Details extends AbstractEntity<DetailsType> {
19
+ #private;
20
+ constructor(getCustomersDetailsDataInput: DetailsType);
21
+ get Migration(): boolean | undefined;
22
+ get DomainName(): string | undefined;
23
+ get OracleOnlineKey(): string | undefined;
24
+ get IBMCeId(): string | undefined;
25
+ get Maas360ResellerId(): string | undefined;
26
+ get TenantId(): string | undefined;
27
+ toJSON(): DetailsType;
28
+ }
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
3
+ if (!privateMap.has(receiver)) {
4
+ throw new TypeError("attempted to set private field on non-instance");
5
+ }
6
+ privateMap.set(receiver, value);
7
+ return value;
8
+ };
9
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
10
+ if (!privateMap.has(receiver)) {
11
+ throw new TypeError("attempted to get private field on non-instance");
12
+ }
13
+ return privateMap.get(receiver);
14
+ };
15
+ var _migration, _domainName, _oracleOnlineKey, _iBMCeId, _maas360ResellerId, _tenantId;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Details = exports.DetailsFields = void 0;
18
+ const abstractEntity_1 = require("../../../../abstractEntity");
19
+ var DetailsFields;
20
+ (function (DetailsFields) {
21
+ DetailsFields["COLUMN_MIGRATION"] = "Migration";
22
+ DetailsFields["COLUMN_DOMAIN_NAME"] = "DomainName";
23
+ DetailsFields["COLUMN_ORACLE_ONLINE_KEY"] = "OracleOnlineKey";
24
+ DetailsFields["COLUMN_IBM_CE_ID"] = "IBMCeId";
25
+ DetailsFields["COLUMN_MASS_360_RESELLER_ID"] = "Maas360ResellerId";
26
+ DetailsFields["COLUMN_TENANT_ID"] = "TenantId";
27
+ })(DetailsFields = exports.DetailsFields || (exports.DetailsFields = {}));
28
+ class Details extends abstractEntity_1.AbstractEntity {
29
+ constructor(getCustomersDetailsDataInput) {
30
+ super(getCustomersDetailsDataInput);
31
+ _migration.set(this, void 0);
32
+ _domainName.set(this, void 0);
33
+ _oracleOnlineKey.set(this, void 0);
34
+ _iBMCeId.set(this, void 0);
35
+ _maas360ResellerId.set(this, void 0);
36
+ _tenantId.set(this, void 0);
37
+ __classPrivateFieldSet(this, _migration, getCustomersDetailsDataInput[DetailsFields.COLUMN_MIGRATION]);
38
+ __classPrivateFieldSet(this, _domainName, getCustomersDetailsDataInput[DetailsFields.COLUMN_DOMAIN_NAME]);
39
+ __classPrivateFieldSet(this, _oracleOnlineKey, getCustomersDetailsDataInput[DetailsFields.COLUMN_ORACLE_ONLINE_KEY]);
40
+ __classPrivateFieldSet(this, _iBMCeId, getCustomersDetailsDataInput[DetailsFields.COLUMN_IBM_CE_ID]);
41
+ __classPrivateFieldSet(this, _maas360ResellerId, getCustomersDetailsDataInput[DetailsFields.COLUMN_MASS_360_RESELLER_ID]);
42
+ __classPrivateFieldSet(this, _tenantId, getCustomersDetailsDataInput[DetailsFields.COLUMN_TENANT_ID]);
43
+ }
44
+ get Migration() {
45
+ return __classPrivateFieldGet(this, _migration);
46
+ }
47
+ get DomainName() {
48
+ return __classPrivateFieldGet(this, _domainName);
49
+ }
50
+ get OracleOnlineKey() {
51
+ return __classPrivateFieldGet(this, _oracleOnlineKey);
52
+ }
53
+ get IBMCeId() {
54
+ return __classPrivateFieldGet(this, _iBMCeId);
55
+ }
56
+ get Maas360ResellerId() {
57
+ return __classPrivateFieldGet(this, _maas360ResellerId);
58
+ }
59
+ get TenantId() {
60
+ return __classPrivateFieldGet(this, _tenantId);
61
+ }
62
+ toJSON() {
63
+ return {
64
+ [DetailsFields.COLUMN_MIGRATION]: this.Migration,
65
+ [DetailsFields.COLUMN_DOMAIN_NAME]: this.DomainName,
66
+ [DetailsFields.COLUMN_ORACLE_ONLINE_KEY]: this.OracleOnlineKey,
67
+ [DetailsFields.COLUMN_IBM_CE_ID]: this.IBMCeId,
68
+ [DetailsFields.COLUMN_MASS_360_RESELLER_ID]: this.Maas360ResellerId,
69
+ [DetailsFields.COLUMN_TENANT_ID]: this.TenantId,
70
+ };
71
+ }
72
+ }
73
+ exports.Details = Details;
74
+ _migration = new WeakMap(), _domainName = new WeakMap(), _oracleOnlineKey = new WeakMap(), _iBMCeId = new WeakMap(), _maas360ResellerId = new WeakMap(), _tenantId = new WeakMap();
75
+ //# sourceMappingURL=details.js.map
@@ -0,0 +1,14 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { Customer, CustomerType } from './customers/customer';
3
+ export declare enum DataCustomersFields {
4
+ COLUMN_CUSTOMERS = "customers"
5
+ }
6
+ export declare type DataCustomersType = {
7
+ [DataCustomersFields.COLUMN_CUSTOMERS]: Array<CustomerType>;
8
+ };
9
+ export declare class DataCustomers extends AbstractEntity<DataCustomersType> {
10
+ #private;
11
+ constructor(customersDataInput: DataCustomersType);
12
+ get customers(): Array<Customer>;
13
+ toJSON(): DataCustomersType;
14
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
3
+ if (!privateMap.has(receiver)) {
4
+ throw new TypeError("attempted to set private field on non-instance");
5
+ }
6
+ privateMap.set(receiver, value);
7
+ return value;
8
+ };
9
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
10
+ if (!privateMap.has(receiver)) {
11
+ throw new TypeError("attempted to get private field on non-instance");
12
+ }
13
+ return privateMap.get(receiver);
14
+ };
15
+ var _customers;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.DataCustomers = exports.DataCustomersFields = void 0;
18
+ const abstractEntity_1 = require("../../abstractEntity");
19
+ const customer_1 = require("./customers/customer");
20
+ var DataCustomersFields;
21
+ (function (DataCustomersFields) {
22
+ DataCustomersFields["COLUMN_CUSTOMERS"] = "customers";
23
+ })(DataCustomersFields = exports.DataCustomersFields || (exports.DataCustomersFields = {}));
24
+ class DataCustomers extends abstractEntity_1.AbstractEntity {
25
+ constructor(customersDataInput) {
26
+ super(customersDataInput);
27
+ _customers.set(this, void 0);
28
+ __classPrivateFieldSet(this, _customers, customersDataInput[DataCustomersFields.COLUMN_CUSTOMERS].map((result) => new customer_1.Customer(result)));
29
+ }
30
+ get customers() {
31
+ return __classPrivateFieldGet(this, _customers);
32
+ }
33
+ toJSON() {
34
+ return {
35
+ [DataCustomersFields.COLUMN_CUSTOMERS]: this.customers.map((result) => result.toJSON()),
36
+ };
37
+ }
38
+ }
39
+ exports.DataCustomers = DataCustomers;
40
+ _customers = new WeakMap();
41
+ //# sourceMappingURL=dataCustomers.js.map
@@ -0,0 +1,5 @@
1
+ export * from './entities/customers/contact/contact';
2
+ export * from './entities/customers/details/details';
3
+ export * from './entities/customers/customer';
4
+ export * from './entities/dataCustomers';
5
+ export * from './customersClient';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./entities/customers/contact/contact"), exports);
14
+ __exportStar(require("./entities/customers/details/details"), exports);
15
+ __exportStar(require("./entities/customers/customer"), exports);
16
+ __exportStar(require("./entities/dataCustomers"), exports);
17
+ __exportStar(require("./customersClient"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -1,3 +1,5 @@
1
1
  export declare class EntityValidationException extends Error {
2
- constructor(message: string);
2
+ httpCode: number;
3
+ httpError: string;
4
+ constructor(message: string, httpError?: string, httpCode?: number);
3
5
  }
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EntityValidationException = void 0;
4
4
  class EntityValidationException extends Error {
5
- constructor(message) {
5
+ constructor(message, httpError = '', httpCode = 0) {
6
6
  super(message);
7
+ this.httpCode = httpCode;
8
+ this.httpError = httpError;
7
9
  }
8
10
  }
9
11
  exports.EntityValidationException = EntityValidationException;
@@ -1,3 +1,5 @@
1
1
  export declare class NotFoundException extends Error {
2
- constructor(message: string);
2
+ httpCode: number;
3
+ httpError: string;
4
+ constructor(message: string, httpError?: string, httpCode?: number);
3
5
  }
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotFoundException = void 0;
4
4
  class NotFoundException extends Error {
5
- constructor(message) {
5
+ constructor(message, httpError = '', httpCode = 0) {
6
6
  super(message);
7
+ this.httpCode = httpCode;
8
+ this.httpError = httpError;
7
9
  }
8
10
  }
9
11
  exports.NotFoundException = NotFoundException;
@@ -1,3 +1,5 @@
1
1
  export declare class PublicApiClientException extends Error {
2
- constructor(message: string);
2
+ httpCode: number;
3
+ httpError: string;
4
+ constructor(message: string, httpError?: string, httpCode?: number);
3
5
  }
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PublicApiClientException = void 0;
4
4
  class PublicApiClientException extends Error {
5
- constructor(message) {
5
+ constructor(message, httpError = '', httpCode = 0) {
6
6
  super(message);
7
+ this.httpCode = httpCode;
8
+ this.httpError = httpError;
7
9
  }
8
10
  }
9
11
  exports.PublicApiClientException = PublicApiClientException;
@@ -1,8 +1,10 @@
1
- import { LicenseGetData } from './getLicense/licenseGetResult';
2
- import { AbstractEntity } from '../../abstractEntity';
1
+ import { LicenseGetData } from './licenses';
2
+ import { AbstractEntity } from './abstractEntity';
3
+ import { Pagination, PaginationData } from './pagination';
3
4
  export declare enum GetResultFields {
4
5
  COLUMN_STATUS = "status",
5
- COLUMN_DATA = "data"
6
+ COLUMN_DATA = "data",
7
+ COLUMN_PAGINATION = "pagination"
6
8
  }
7
9
  /**
8
10
  * @deprecated please use GetLicenseResultData for license
@@ -13,6 +15,7 @@ export declare type LicenseGet = {
13
15
  export declare type GetData<Entity> = {
14
16
  [GetResultFields.COLUMN_STATUS]: number;
15
17
  [GetResultFields.COLUMN_DATA]: Entity;
18
+ [GetResultFields.COLUMN_PAGINATION]?: PaginationData;
16
19
  };
17
20
  /**
18
21
  * This interface is use toJSON function in objects (data properties) you want to use
@@ -29,6 +32,7 @@ export declare class GetResult<Entity extends AbstractEntityGet<Entity>> extends
29
32
  constructor(cls: new (data: Entity['entityDataInput']) => Entity, getResultDataInput: GetData<Entity['entityDataInput']>);
30
33
  get status(): number;
31
34
  get data(): Entity;
35
+ get pagination(): Pagination | undefined;
32
36
  toJSON(): GetData<Entity['entityDataInput']>;
33
37
  }
34
38
  export {};
@@ -12,14 +12,16 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  }
13
13
  return privateMap.get(receiver);
14
14
  };
15
- var _status, _data;
15
+ var _status, _data, _pagination;
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.GetResult = exports.GetResultFields = void 0;
18
- const abstractEntity_1 = require("../../abstractEntity");
18
+ const abstractEntity_1 = require("./abstractEntity");
19
+ const pagination_1 = require("./pagination");
19
20
  var GetResultFields;
20
21
  (function (GetResultFields) {
21
22
  GetResultFields["COLUMN_STATUS"] = "status";
22
23
  GetResultFields["COLUMN_DATA"] = "data";
24
+ GetResultFields["COLUMN_PAGINATION"] = "pagination";
23
25
  })(GetResultFields = exports.GetResultFields || (exports.GetResultFields = {}));
24
26
  /**
25
27
  * WARNING: use this class only when the Entity in data properties is an object not an array or other type
@@ -30,8 +32,12 @@ class GetResult extends abstractEntity_1.AbstractEntity {
30
32
  super(getResultDataInput);
31
33
  _status.set(this, void 0);
32
34
  _data.set(this, void 0);
33
- __classPrivateFieldSet(this, _status, getResultDataInput.status);
34
- __classPrivateFieldSet(this, _data, new cls(getResultDataInput.data));
35
+ _pagination.set(this, void 0);
36
+ __classPrivateFieldSet(this, _status, getResultDataInput[GetResultFields.COLUMN_STATUS]);
37
+ __classPrivateFieldSet(this, _data, new cls(getResultDataInput[GetResultFields.COLUMN_DATA]));
38
+ __classPrivateFieldSet(this, _pagination, getResultDataInput[GetResultFields.COLUMN_PAGINATION]
39
+ ? new pagination_1.Pagination(getResultDataInput[GetResultFields.COLUMN_PAGINATION])
40
+ : undefined);
35
41
  }
36
42
  get status() {
37
43
  return __classPrivateFieldGet(this, _status);
@@ -39,13 +45,18 @@ class GetResult extends abstractEntity_1.AbstractEntity {
39
45
  get data() {
40
46
  return __classPrivateFieldGet(this, _data);
41
47
  }
48
+ get pagination() {
49
+ return __classPrivateFieldGet(this, _pagination);
50
+ }
42
51
  toJSON() {
52
+ var _a;
43
53
  return JSON.parse(JSON.stringify({
44
54
  [GetResultFields.COLUMN_STATUS]: this.status,
45
55
  [GetResultFields.COLUMN_DATA]: this.data.toJSON(),
56
+ [GetResultFields.COLUMN_PAGINATION]: (_a = this.pagination) === null || _a === void 0 ? void 0 : _a.toJSON(),
46
57
  }));
47
58
  }
48
59
  }
49
60
  exports.GetResult = GetResult;
50
- _status = new WeakMap(), _data = new WeakMap();
61
+ _status = new WeakMap(), _data = new WeakMap(), _pagination = new WeakMap();
51
62
  //# sourceMappingURL=getResult.js.map
package/build/index.d.ts CHANGED
@@ -1,6 +1,11 @@
1
1
  export * from './publicApiClient';
2
+ export * from './publicGraphQLClient';
2
3
  export * from './abstractEntity';
3
4
  export * from './abstractClient';
5
+ export * from './abstractGraphQLClient';
6
+ export * from './catalog/';
4
7
  export * from './licenses/';
5
8
  export * from './general/';
6
9
  export * from './subscriptions/';
10
+ export * from './customers/';
11
+ export * from './getResult';
package/build/index.js CHANGED
@@ -11,9 +11,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./publicApiClient"), exports);
14
+ __exportStar(require("./publicGraphQLClient"), exports);
14
15
  __exportStar(require("./abstractEntity"), exports);
15
16
  __exportStar(require("./abstractClient"), exports);
17
+ __exportStar(require("./abstractGraphQLClient"), exports);
18
+ __exportStar(require("./catalog/"), exports);
16
19
  __exportStar(require("./licenses/"), exports);
17
20
  __exportStar(require("./general/"), exports);
18
21
  __exportStar(require("./subscriptions/"), exports);
22
+ __exportStar(require("./customers/"), exports);
23
+ __exportStar(require("./getResult"), exports);
19
24
  //# sourceMappingURL=index.js.map
@@ -10,6 +10,10 @@ export declare enum LicenseGetFields {
10
10
  COLUMN_FRIENDLY_NAME = "friendlyName",
11
11
  COLUMN_CUSTOMER_REF = "customer_ref",
12
12
  COLUMN_STATE = "state",
13
+ COLUMN_STATUS_CODE = "statusCode",
14
+ COLUMN_IS_TRIAL = "isTrial",
15
+ COLUMN_IS_ADDON = "isAddon",
16
+ COLUMN_CURRENCY = "currency",
13
17
  COLUMN_SERVICE_REF = "service_ref",
14
18
  COLUMN_SKU = "sku",
15
19
  COLUMN_NAME = "name",
@@ -38,6 +42,10 @@ export declare type LicenseGetData = {
38
42
  [LicenseGetFields.COLUMN_FRIENDLY_NAME]: string | null;
39
43
  [LicenseGetFields.COLUMN_CUSTOMER_REF]: string;
40
44
  [LicenseGetFields.COLUMN_STATE]: string;
45
+ [LicenseGetFields.COLUMN_STATUS_CODE]: number;
46
+ [LicenseGetFields.COLUMN_IS_TRIAL]: boolean;
47
+ [LicenseGetFields.COLUMN_IS_ADDON]: boolean;
48
+ [LicenseGetFields.COLUMN_CURRENCY]: string;
41
49
  [LicenseGetFields.COLUMN_SERVICE_REF]: string;
42
50
  [LicenseGetFields.COLUMN_SKU]: string;
43
51
  [LicenseGetFields.COLUMN_NAME]: string;
@@ -68,6 +76,10 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
68
76
  get friendlyName(): string | null;
69
77
  get customerRef(): string;
70
78
  get state(): string;
79
+ get statusCode(): number;
80
+ get isTrial(): boolean;
81
+ get isAddon(): boolean;
82
+ get currency(): string;
71
83
  get serviceRef(): string;
72
84
  get sku(): string;
73
85
  get name(): string;
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  }
13
13
  return privateMap.get(receiver);
14
14
  };
15
- var _license_id, _parent_license_id, _friendlyName, _customer_ref, _state, _service_ref, _sku, _name, _seats, _activeSeats, _activation_datetime, _expiry_datetime, _autoRenew, _message, _actions, _actionMessages, _order_reference, _order, _vendor_license_id, _periodicity, _term, _category, _program, _associatedSubscriptionProgram, _price, _arrowSubCategories;
15
+ var _license_id, _parent_license_id, _friendlyName, _customer_ref, _state, _statusCode, _isTrial, _isAddon, _currency, _service_ref, _sku, _name, _seats, _activeSeats, _activation_datetime, _expiry_datetime, _autoRenew, _message, _actions, _actionMessages, _order_reference, _order, _vendor_license_id, _periodicity, _term, _category, _program, _associatedSubscriptionProgram, _price, _arrowSubCategories;
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.LicenseGetResult = exports.LicenseGetFields = void 0;
18
18
  const actionsGetResult_1 = require("./actionsGetResult");
@@ -28,6 +28,10 @@ var LicenseGetFields;
28
28
  LicenseGetFields["COLUMN_FRIENDLY_NAME"] = "friendlyName";
29
29
  LicenseGetFields["COLUMN_CUSTOMER_REF"] = "customer_ref";
30
30
  LicenseGetFields["COLUMN_STATE"] = "state";
31
+ LicenseGetFields["COLUMN_STATUS_CODE"] = "statusCode";
32
+ LicenseGetFields["COLUMN_IS_TRIAL"] = "isTrial";
33
+ LicenseGetFields["COLUMN_IS_ADDON"] = "isAddon";
34
+ LicenseGetFields["COLUMN_CURRENCY"] = "currency";
31
35
  LicenseGetFields["COLUMN_SERVICE_REF"] = "service_ref";
32
36
  LicenseGetFields["COLUMN_SKU"] = "sku";
33
37
  LicenseGetFields["COLUMN_NAME"] = "name";
@@ -59,6 +63,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
59
63
  _friendlyName.set(this, void 0);
60
64
  _customer_ref.set(this, void 0);
61
65
  _state.set(this, void 0);
66
+ _statusCode.set(this, void 0);
67
+ _isTrial.set(this, void 0);
68
+ _isAddon.set(this, void 0);
69
+ _currency.set(this, void 0);
62
70
  _service_ref.set(this, void 0);
63
71
  _sku.set(this, void 0);
64
72
  _name.set(this, void 0);
@@ -85,6 +93,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
85
93
  __classPrivateFieldSet(this, _friendlyName, licenseGetDataInput[LicenseGetFields.COLUMN_FRIENDLY_NAME]);
86
94
  __classPrivateFieldSet(this, _customer_ref, licenseGetDataInput[LicenseGetFields.COLUMN_CUSTOMER_REF]);
87
95
  __classPrivateFieldSet(this, _state, licenseGetDataInput[LicenseGetFields.COLUMN_STATE]);
96
+ __classPrivateFieldSet(this, _statusCode, licenseGetDataInput[LicenseGetFields.COLUMN_STATUS_CODE]);
97
+ __classPrivateFieldSet(this, _isTrial, licenseGetDataInput[LicenseGetFields.COLUMN_IS_TRIAL]);
98
+ __classPrivateFieldSet(this, _isAddon, licenseGetDataInput[LicenseGetFields.COLUMN_IS_ADDON]);
99
+ __classPrivateFieldSet(this, _currency, licenseGetDataInput[LicenseGetFields.COLUMN_CURRENCY]);
88
100
  __classPrivateFieldSet(this, _service_ref, licenseGetDataInput[LicenseGetFields.COLUMN_SERVICE_REF]);
89
101
  __classPrivateFieldSet(this, _sku, licenseGetDataInput[LicenseGetFields.COLUMN_SKU]);
90
102
  __classPrivateFieldSet(this, _name, licenseGetDataInput[LicenseGetFields.COLUMN_NAME]);
@@ -124,6 +136,18 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
124
136
  get state() {
125
137
  return __classPrivateFieldGet(this, _state);
126
138
  }
139
+ get statusCode() {
140
+ return __classPrivateFieldGet(this, _statusCode);
141
+ }
142
+ get isTrial() {
143
+ return __classPrivateFieldGet(this, _isTrial);
144
+ }
145
+ get isAddon() {
146
+ return __classPrivateFieldGet(this, _isAddon);
147
+ }
148
+ get currency() {
149
+ return __classPrivateFieldGet(this, _currency);
150
+ }
127
151
  get serviceRef() {
128
152
  return __classPrivateFieldGet(this, _service_ref);
129
153
  }
@@ -195,6 +219,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
195
219
  [LicenseGetFields.COLUMN_FRIENDLY_NAME]: this.friendlyName,
196
220
  [LicenseGetFields.COLUMN_CUSTOMER_REF]: this.customerRef,
197
221
  [LicenseGetFields.COLUMN_STATE]: this.state,
222
+ [LicenseGetFields.COLUMN_STATUS_CODE]: this.statusCode,
223
+ [LicenseGetFields.COLUMN_IS_TRIAL]: this.isTrial,
224
+ [LicenseGetFields.COLUMN_IS_ADDON]: this.isAddon,
225
+ [LicenseGetFields.COLUMN_CURRENCY]: this.currency,
198
226
  [LicenseGetFields.COLUMN_SERVICE_REF]: this.serviceRef,
199
227
  [LicenseGetFields.COLUMN_SKU]: this.sku,
200
228
  [LicenseGetFields.COLUMN_NAME]: this.name,
@@ -221,5 +249,5 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
221
249
  }
222
250
  }
223
251
  exports.LicenseGetResult = LicenseGetResult;
224
- _license_id = new WeakMap(), _parent_license_id = new WeakMap(), _friendlyName = new WeakMap(), _customer_ref = new WeakMap(), _state = new WeakMap(), _service_ref = new WeakMap(), _sku = new WeakMap(), _name = new WeakMap(), _seats = new WeakMap(), _activeSeats = new WeakMap(), _activation_datetime = new WeakMap(), _expiry_datetime = new WeakMap(), _autoRenew = new WeakMap(), _message = new WeakMap(), _actions = new WeakMap(), _actionMessages = new WeakMap(), _order_reference = new WeakMap(), _order = new WeakMap(), _vendor_license_id = new WeakMap(), _periodicity = new WeakMap(), _term = new WeakMap(), _category = new WeakMap(), _program = new WeakMap(), _associatedSubscriptionProgram = new WeakMap(), _price = new WeakMap(), _arrowSubCategories = new WeakMap();
252
+ _license_id = new WeakMap(), _parent_license_id = new WeakMap(), _friendlyName = new WeakMap(), _customer_ref = new WeakMap(), _state = new WeakMap(), _statusCode = new WeakMap(), _isTrial = new WeakMap(), _isAddon = new WeakMap(), _currency = new WeakMap(), _service_ref = new WeakMap(), _sku = new WeakMap(), _name = new WeakMap(), _seats = new WeakMap(), _activeSeats = new WeakMap(), _activation_datetime = new WeakMap(), _expiry_datetime = new WeakMap(), _autoRenew = new WeakMap(), _message = new WeakMap(), _actions = new WeakMap(), _actionMessages = new WeakMap(), _order_reference = new WeakMap(), _order = new WeakMap(), _vendor_license_id = new WeakMap(), _periodicity = new WeakMap(), _term = new WeakMap(), _category = new WeakMap(), _program = new WeakMap(), _associatedSubscriptionProgram = new WeakMap(), _price = new WeakMap(), _arrowSubCategories = new WeakMap();
225
253
  //# sourceMappingURL=licenseGetResult.js.map