@arrowsphere/api-client 3.421.0-rc-cpe-2 → 3.421.1

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 (39) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/abstractGraphQLClient.js +1 -1
  3. package/build/licenses/entities/company/companyFindResult.d.ts +25 -0
  4. package/build/licenses/entities/company/companyFindResult.js +11 -0
  5. package/build/licenses/index.d.ts +1 -0
  6. package/build/licenses/index.js +1 -0
  7. package/build/licenses/licensesClient.d.ts +42 -12
  8. package/build/licenses/licensesClient.js +9 -8
  9. package/build/quotes/index.d.ts +0 -13
  10. package/build/quotes/index.js +0 -13
  11. package/build/quotes/quotesClient.d.ts +0 -4
  12. package/build/quotes/quotesClient.js +0 -12
  13. package/package.json +1 -1
  14. package/build/quotes/entities/Quote.d.ts +0 -50
  15. package/build/quotes/entities/Quote.js +0 -125
  16. package/build/quotes/entities/QuoteLastVersion.d.ts +0 -16
  17. package/build/quotes/entities/QuoteLastVersion.js +0 -45
  18. package/build/quotes/entities/QuoteList.d.ts +0 -9
  19. package/build/quotes/entities/QuoteList.js +0 -33
  20. package/build/quotes/entities/QuoteProduct.d.ts +0 -58
  21. package/build/quotes/entities/QuoteProduct.js +0 -135
  22. package/build/quotes/entities/QuoteProductAssets.d.ts +0 -16
  23. package/build/quotes/entities/QuoteProductAssets.js +0 -45
  24. package/build/quotes/entities/QuoteProductPriceBand.d.ts +0 -14
  25. package/build/quotes/entities/QuoteProductPriceBand.js +0 -39
  26. package/build/quotes/entities/QuoteProductPriceBandArrowsphereIdentifier.d.ts +0 -13
  27. package/build/quotes/entities/QuoteProductPriceBandArrowsphereIdentifier.js +0 -38
  28. package/build/quotes/entities/QuoteProductPriceBandErpIdentifier.d.ts +0 -13
  29. package/build/quotes/entities/QuoteProductPriceBandErpIdentifier.js +0 -38
  30. package/build/quotes/entities/QuoteProductPriceBandIdentifiers.d.ts +0 -22
  31. package/build/quotes/entities/QuoteProductPriceBandIdentifiers.js +0 -55
  32. package/build/quotes/entities/QuoteProductPriceBandVendorIdentifier.d.ts +0 -13
  33. package/build/quotes/entities/QuoteProductPriceBandVendorIdentifier.js +0 -38
  34. package/build/quotes/entities/QuoteProductPrices.d.ts +0 -31
  35. package/build/quotes/entities/QuoteProductPrices.js +0 -80
  36. package/build/quotes/entities/QuoteProductProgram.d.ts +0 -16
  37. package/build/quotes/entities/QuoteProductProgram.js +0 -45
  38. package/build/quotes/entities/QuoteProductVendor.d.ts +0 -13
  39. package/build/quotes/entities/QuoteProductVendor.js +0 -38
package/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.421.1] - 2026.11.05
7
+ ### Fixed
8
+ - [graphql] Do not send an empty `authorization` header when no token is set, so that the public-api custom domain authenticates the request with the `apikey` header
9
+
10
+ ## [3.421.0] - 2026.11.04
11
+ ### Added
12
+ - [licenses] Add `resellerCompany` and `endCustomerCompany` filters, exclusion filters, keywords and sort to the `find` endpoint
13
+ - [licenses] `rates` keywords are now sent by `find`
14
+
6
15
  ## [3.420.0] - 2026.11.03
7
16
  ### Added
8
17
  - [licenses] Add `LETSCOPILOT_TENANT_ID` to `CompanyDetailKeyEnum`
@@ -58,7 +58,7 @@ class AbstractGraphQLClient extends AbstractHttpClient_1.AbstractHttpClient {
58
58
  }
59
59
  applyHeaders() {
60
60
  const headers = {
61
- authorization: this.token,
61
+ ...(this.token.length > 0 && { authorization: this.token }),
62
62
  ...this.headers,
63
63
  };
64
64
  this.getClientInstance().setHeaders(headers);
@@ -0,0 +1,25 @@
1
+ import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
2
+ export declare enum CompanyFindResultFields {
3
+ COMPANY_REF = "companyRef",
4
+ COMPANY_NAME = "companyName",
5
+ ACRONYM = "acronym",
6
+ ERP_ID = "erpId"
7
+ }
8
+ export declare type CompanyFiltersParameters = {
9
+ [CompanyFindResultFields.COMPANY_REF]?: FiltersParameters;
10
+ [CompanyFindResultFields.COMPANY_NAME]?: FiltersParameters;
11
+ [CompanyFindResultFields.ACRONYM]?: FiltersParameters;
12
+ [CompanyFindResultFields.ERP_ID]?: FiltersParameters;
13
+ };
14
+ export declare type CompanyDataKeywords = {
15
+ [CompanyFindResultFields.COMPANY_REF]?: DataKeywords;
16
+ [CompanyFindResultFields.COMPANY_NAME]?: DataKeywords;
17
+ [CompanyFindResultFields.ACRONYM]?: DataKeywords;
18
+ [CompanyFindResultFields.ERP_ID]?: DataKeywords;
19
+ };
20
+ export declare type CompanySortParameters = {
21
+ [CompanyFindResultFields.COMPANY_REF]?: SortParameters;
22
+ [CompanyFindResultFields.COMPANY_NAME]?: SortParameters;
23
+ [CompanyFindResultFields.ACRONYM]?: SortParameters;
24
+ [CompanyFindResultFields.ERP_ID]?: SortParameters;
25
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CompanyFindResultFields = void 0;
4
+ var CompanyFindResultFields;
5
+ (function (CompanyFindResultFields) {
6
+ CompanyFindResultFields["COMPANY_REF"] = "companyRef";
7
+ CompanyFindResultFields["COMPANY_NAME"] = "companyName";
8
+ CompanyFindResultFields["ACRONYM"] = "acronym";
9
+ CompanyFindResultFields["ERP_ID"] = "erpId";
10
+ })(CompanyFindResultFields = exports.CompanyFindResultFields || (exports.CompanyFindResultFields = {}));
11
+ //# sourceMappingURL=companyFindResult.js.map
@@ -1,3 +1,4 @@
1
+ export * from './entities/company/companyFindResult';
1
2
  export * from './entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult';
2
3
  export * from './entities/event/licenseEvent';
3
4
  export * from './entities/event/licenseEventGraphQL';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities/company/companyFindResult"), exports);
17
18
  __exportStar(require("./entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult"), exports);
18
19
  __exportStar(require("./entities/event/licenseEvent"), exports);
19
20
  __exportStar(require("./entities/event/licenseEventGraphQL"), exports);
@@ -24,7 +24,7 @@ import { CompanyTypeEnum, RateTypeEnum } from './entities/pricingRate/getPricing
24
24
  import { PartialResponse } from '../partialResponse';
25
25
  import { BulkBodyArgument, SpecialPriceRateActive } from './types/bulkArguments';
26
26
  import { EndCustomerOrganisationUnitDataKeywords, EndCustomerOrganizationUnitFiltersParameters, EndCustomerOrganizationUnitSortParameters } from './entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult';
27
- import { RatesDataKeywords, RatesFiltersParameters, RatesSortParameters } from './entities/rates/rateFindResult';
27
+ import { RatesDataKeywords, RatesFiltersParameters, RatesSortParameters, RateFindResultDataSortParameters, RateFindResultDataKeywords } from './entities/rates/rateFindResult';
28
28
  import { GetLicensePricingRateParameters, GetLicensePricingRateResponse } from './types/pricingRate';
29
29
  import { ConsumptionDailyPrediction } from '../consumption';
30
30
  import { GetScheduledTasksResult } from './entities/schedule/getScheduledTasksResult';
@@ -35,6 +35,7 @@ import { PostLicenseAttachmentResult } from './entities/attachment/PostLicenseAt
35
35
  import { DynamicAttributesMappingResult } from './entities/license/dynamicMappingResult';
36
36
  import { GetLateRenewableLicensesResult } from './entities/lateRenewalLicense/getLateRenewableLicensesResult';
37
37
  import { ExecuteLateRenewPayload } from './entities/lateRenewalLicense/executeLateRenewPayload';
38
+ import { CompanyDataKeywords, CompanyFiltersParameters, CompanySortParameters } from './entities/company/companyFindResult';
38
39
  /**
39
40
  * Parameters passable to the request for refining search.
40
41
  */
@@ -140,21 +141,23 @@ export declare enum LicenseFindParameters {
140
141
  */
141
142
  FILTERS_LTE = "lte"
142
143
  }
143
- export declare type BaseParameters<LicenseType, OfferType, endCustomerOrganizationUnitType, RatesType> = {
144
+ export declare type BaseParameters<LicenseType, OfferType, endCustomerOrganizationUnitType, RatesType, resellerCompanyType, endCustomerCompanyType> = {
144
145
  license?: LicenseType;
145
146
  offer?: OfferType;
146
147
  endCustomerOrganizationUnit?: endCustomerOrganizationUnitType;
147
148
  rates?: RatesType;
149
+ resellerCompany?: resellerCompanyType;
150
+ endCustomerCompany?: endCustomerCompanyType;
148
151
  };
149
152
  export declare type AttachFileToLicenseParameters = {
150
153
  name: string;
151
154
  fileEncoded: string;
152
155
  };
153
- export declare type LicenseSortParameters = BaseParameters<LicenceFindDataSortParameters, OfferFindResultDataSortParameters, EndCustomerOrganizationUnitSortParameters, RatesSortParameters>;
156
+ export declare type LicenseSortParameters = BaseParameters<LicenceFindDataSortParameters, OfferFindResultDataSortParameters, EndCustomerOrganizationUnitSortParameters, RatesSortParameters, CompanySortParameters, CompanySortParameters>;
154
157
  export declare type LicenseCompareParameters = {
155
158
  [field: string]: unknown;
156
159
  };
157
- export declare type LicenseFiltersParameters = BaseParameters<LicenceFindDataFiltersParameters, OfferFindResultDataFiltersParameters, EndCustomerOrganizationUnitFiltersParameters, RatesFiltersParameters>;
160
+ export declare type LicenseFiltersParameters = BaseParameters<LicenceFindDataFiltersParameters, OfferFindResultDataFiltersParameters, EndCustomerOrganizationUnitFiltersParameters, RatesFiltersParameters, CompanyFiltersParameters, CompanyFiltersParameters>;
158
161
  /**
159
162
  * List of keywords to search with.
160
163
  */
@@ -170,6 +173,8 @@ export declare type LicenseKeywordsParameters = {
170
173
  offer?: OfferFindResultDataKeywords;
171
174
  endCustomerOrganizationUnit?: EndCustomerOrganisationUnitDataKeywords;
172
175
  rates?: RatesDataKeywords;
176
+ resellerCompany?: CompanyDataKeywords;
177
+ endCustomerCompany?: CompanyDataKeywords;
173
178
  };
174
179
  export declare type LicenseRawKeywordsParametersLicence = {
175
180
  [field: string]: DataKeywords | ActiveSeatsFindResultDataKeywords | ConfigFindResultDataKeywords | WarningFindResultDataKeywords | PriceFindResultDataKeywords | SecurityFindResultDataKeywords | undefined;
@@ -177,6 +182,23 @@ export declare type LicenseRawKeywordsParametersLicence = {
177
182
  export declare type LicenseRawKeywordsParametersOffer = {
178
183
  [field: string]: DataKeywords | ActionFlagsFindResultDataKeywords | PriceBandFindResultDataKeywords | undefined;
179
184
  };
185
+ export declare type LicenseRawKeywordsParametersEndCustomerOrganizationUnit = {
186
+ [field: string]: DataKeywords | undefined;
187
+ };
188
+ export declare type LicenseRawKeywordsParametersRates = {
189
+ [field: string]: DataKeywords | RateFindResultDataKeywords | undefined;
190
+ };
191
+ export declare type LicenseRawKeywordsParametersCompany = {
192
+ [field: string]: DataKeywords | undefined;
193
+ };
194
+ export declare type LicenseRawKeywordsParameters = {
195
+ license?: LicenseRawKeywordsParametersLicence;
196
+ offer?: LicenseRawKeywordsParametersOffer;
197
+ endCustomerOrganizationUnit?: LicenseRawKeywordsParametersEndCustomerOrganizationUnit;
198
+ rates?: LicenseRawKeywordsParametersRates;
199
+ resellerCompany?: LicenseRawKeywordsParametersCompany;
200
+ endCustomerCompany?: LicenseRawKeywordsParametersCompany;
201
+ };
180
202
  export declare type SortParameters = LicenseFindParameters.SORT_ASCENDING | LicenseFindParameters.SORT_DESCENDING;
181
203
  export declare type LicenseRawSortParametersLicense = {
182
204
  [field: string]: SortParameters | ActiveSeatsFindResultDataSortParameters | ConfigFindResultDataSortParameters | WarningFindResultDataSortParameters | PriceFindResutDataSortParameters | SecurityFindResultDataSortParameters | undefined;
@@ -187,6 +209,20 @@ export declare type LicenseRawSortParametersOffer = {
187
209
  export declare type LicenseRawSortParametersEndCustomerOrganizationUnit = {
188
210
  [field: string]: SortParameters | undefined;
189
211
  };
212
+ export declare type LicenseRawSortParametersRates = {
213
+ [field: string]: SortParameters | RateFindResultDataSortParameters | undefined;
214
+ };
215
+ export declare type LicenseRawSortParametersCompany = {
216
+ [field: string]: SortParameters | undefined;
217
+ };
218
+ export declare type LicenseRawSortParameters = {
219
+ license?: LicenseRawSortParametersLicense;
220
+ offer?: LicenseRawSortParametersOffer;
221
+ endCustomerOrganizationUnit?: LicenseRawSortParametersEndCustomerOrganizationUnit;
222
+ rates?: LicenseRawSortParametersRates;
223
+ resellerCompany?: LicenseRawSortParametersCompany;
224
+ endCustomerCompany?: LicenseRawSortParametersCompany;
225
+ };
190
226
  export declare type FiltersCompareValue = {
191
227
  [LicenseFindParameters.FILTERS_GT]?: string | number;
192
228
  [LicenseFindParameters.FILTERS_GTE]?: string | number;
@@ -217,16 +253,10 @@ export declare type LicenseFindRawPayload = {
217
253
  [LicenseFindParameters.DATA_AGGREGATION]?: string[];
218
254
  [LicenseFindParameters.DATA_COMPARE]?: LicenseRawCompareParameters;
219
255
  [LicenseFindParameters.DATA_KEYWORD]?: string;
220
- [LicenseFindParameters.DATA_KEYWORDS]?: {
221
- license?: LicenseRawKeywordsParametersLicence;
222
- offer?: LicenseRawKeywordsParametersOffer;
223
- };
256
+ [LicenseFindParameters.DATA_KEYWORDS]?: LicenseRawKeywordsParameters;
224
257
  [LicenseFindParameters.DATA_FILTERS]?: LicenseRawFiltersParameters;
225
258
  [LicenseFindParameters.DATA_EXCLUSION_FILTERS]?: LicenseRawFiltersParameters;
226
- [LicenseFindParameters.DATA_SORT]?: {
227
- license?: LicenseRawSortParametersLicense;
228
- offer?: LicenseRawSortParametersOffer;
229
- };
259
+ [LicenseFindParameters.DATA_SORT]?: LicenseRawSortParameters;
230
260
  [LicenseFindParameters.DATA_HIGHLIGHT]?: boolean;
231
261
  };
232
262
  export declare type UpdateLicenseData = {
@@ -296,14 +296,9 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
296
296
  ...this.createKeywords(postData.keywords, 'license'),
297
297
  ...this.createKeywords(postData.keywords, 'offer'),
298
298
  ...this.createKeywords(postData.keywords, 'endCustomerOrganizationUnit'),
299
- };
300
- }
301
- if (postData.keywords) {
302
- // Flatten with prefix for each type of keyword (license and offer)
303
- rawLicensePayload.keywords = {
304
- ...this.createKeywords(postData.keywords, 'license'),
305
- ...this.createKeywords(postData.keywords, 'offer'),
306
- ...this.createKeywords(postData.keywords, 'endCustomerOrganizationUnit'),
299
+ ...this.createKeywords(postData.keywords, 'rates'),
300
+ ...this.createKeywords(postData.keywords, 'resellerCompany'),
301
+ ...this.createKeywords(postData.keywords, 'endCustomerCompany'),
307
302
  };
308
303
  }
309
304
  if (postData.filters) {
@@ -313,6 +308,8 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
313
308
  ...this.createFilters(postData.filters, 'offer'),
314
309
  ...this.createFilters(postData.filters, 'endCustomerOrganizationUnit'),
315
310
  ...this.createFilters(postData.filters, 'rates'),
311
+ ...this.createFilters(postData.filters, 'resellerCompany'),
312
+ ...this.createFilters(postData.filters, 'endCustomerCompany'),
316
313
  };
317
314
  }
318
315
  if (postData.exclusionFilters) {
@@ -322,6 +319,8 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
322
319
  ...this.createFilters(postData.exclusionFilters, 'offer'),
323
320
  ...this.createFilters(postData.exclusionFilters, 'endCustomerOrganizationUnit'),
324
321
  ...this.createFilters(postData.exclusionFilters, 'rates'),
322
+ ...this.createFilters(postData.exclusionFilters, 'resellerCompany'),
323
+ ...this.createFilters(postData.exclusionFilters, 'endCustomerCompany'),
325
324
  };
326
325
  }
327
326
  if (postData.sort) {
@@ -331,6 +330,8 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
331
330
  ...this.createFilters(postData.sort, 'offer'),
332
331
  ...this.createFilters(postData.sort, 'endCustomerOrganizationUnit'),
333
332
  ...this.createFilters(postData.sort, 'rates'),
333
+ ...this.createFilters(postData.sort, 'resellerCompany'),
334
+ ...this.createFilters(postData.sort, 'endCustomerCompany'),
334
335
  };
335
336
  }
336
337
  const response = await this.findRaw(rawLicensePayload, parameters);
@@ -1,14 +1 @@
1
1
  export * from './quotesClient';
2
- export * from './entities/Quote';
3
- export * from './entities/QuoteLastVersion';
4
- export * from './entities/QuoteProduct';
5
- export * from './entities/QuoteProductAssets';
6
- export * from './entities/QuoteProductPriceBand';
7
- export * from './entities/QuoteProductPriceBandArrowsphereIdentifier';
8
- export * from './entities/QuoteProductPriceBandErpIdentifier';
9
- export * from './entities/QuoteProductPriceBandIdentifiers';
10
- export * from './entities/QuoteProductPriceBandVendorIdentifier';
11
- export * from './entities/QuoteProductProgram';
12
- export * from './entities/QuoteProductPrices';
13
- export * from './entities/QuoteProductVendor';
14
- export * from './entities/QuoteList';
@@ -15,17 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./quotesClient"), exports);
18
- __exportStar(require("./entities/Quote"), exports);
19
- __exportStar(require("./entities/QuoteLastVersion"), exports);
20
- __exportStar(require("./entities/QuoteProduct"), exports);
21
- __exportStar(require("./entities/QuoteProductAssets"), exports);
22
- __exportStar(require("./entities/QuoteProductPriceBand"), exports);
23
- __exportStar(require("./entities/QuoteProductPriceBandArrowsphereIdentifier"), exports);
24
- __exportStar(require("./entities/QuoteProductPriceBandErpIdentifier"), exports);
25
- __exportStar(require("./entities/QuoteProductPriceBandIdentifiers"), exports);
26
- __exportStar(require("./entities/QuoteProductPriceBandVendorIdentifier"), exports);
27
- __exportStar(require("./entities/QuoteProductProgram"), exports);
28
- __exportStar(require("./entities/QuoteProductPrices"), exports);
29
- __exportStar(require("./entities/QuoteProductVendor"), exports);
30
- __exportStar(require("./entities/QuoteList"), exports);
31
18
  //# sourceMappingURL=index.js.map
@@ -3,8 +3,6 @@ import { GetResult } from '../getResult';
3
3
  import { QuoteRequest } from './entities/QuoteRequest';
4
4
  import { PutQuoteResult } from './entities/PutQuoteResult';
5
5
  import { QuoteComments } from './entities/QuoteComments';
6
- import { Quote } from './entities/Quote';
7
- import { QuoteList } from './entities/QuoteList';
8
6
  export declare type RequestQuoteRequestType = {
9
7
  agreeToReceiveCommunications: boolean;
10
8
  agreeSharingInformation: boolean;
@@ -67,8 +65,6 @@ export declare type CreateCommentType = {
67
65
  };
68
66
  export declare class QuotesClient extends AbstractRestfulClient {
69
67
  protected basePath: string;
70
- listQuotes(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<QuoteList>>;
71
- getQuote(reference: string): Promise<GetResult<Quote>>;
72
68
  requestQuote(postData: RequestQuoteRequestType, parameters?: Parameters): Promise<GetResult<QuoteRequest>>;
73
69
  requestQuoteForVendor(vendor: string, postData: RequestQuoteIbmRequestType, parameters?: Parameters): Promise<void>;
74
70
  deleteQuote(quoteReference: string, parameters?: Parameters): Promise<void>;
@@ -6,23 +6,11 @@ const getResult_1 = require("../getResult");
6
6
  const QuoteRequest_1 = require("./entities/QuoteRequest");
7
7
  const PutQuoteResult_1 = require("./entities/PutQuoteResult");
8
8
  const QuoteComments_1 = require("./entities/QuoteComments");
9
- const Quote_1 = require("./entities/Quote");
10
- const QuoteList_1 = require("./entities/QuoteList");
11
9
  class QuotesClient extends abstractRestfulClient_1.AbstractRestfulClient {
12
10
  constructor() {
13
11
  super(...arguments);
14
12
  this.basePath = '/quotes';
15
13
  }
16
- async listQuotes(perPage = 25, page = 1, parameters = {}) {
17
- this.path = '';
18
- this.setPerPage(perPage);
19
- this.setPage(page);
20
- return new getResult_1.GetResult(QuoteList_1.QuoteList, await this.get(parameters));
21
- }
22
- async getQuote(reference) {
23
- this.path = `/${reference}`;
24
- return new getResult_1.GetResult(Quote_1.Quote, await this.get());
25
- }
26
14
  async requestQuote(postData, parameters = {}) {
27
15
  this.path = '/request';
28
16
  return new getResult_1.GetResult(QuoteRequest_1.QuoteRequest, await this.post(postData, parameters));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.421.0-rc-cpe-2",
7
+ "version": "3.421.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",
@@ -1,50 +0,0 @@
1
- import { AbstractEntity } from '../../abstractEntity';
2
- import { OrderPartner, OrderPartnerType } from '../../orders/entities/orders/partner/partner';
3
- import { ReferenceLink, ReferenceLinkType } from '../../orders/entities/referenceLink';
4
- import { QuoteLastVersion, QuoteLastVersionData } from './QuoteLastVersion';
5
- import { QuoteProduct, QuoteProductData } from './QuoteProduct';
6
- export declare enum QuoteFields {
7
- CUSTOMER = "customer",
8
- DATE_CREATION = "dateCreation",
9
- DATE_END = "dateEnd",
10
- DATE_UPDATE = "dateUpdate",
11
- END_CUSTOMER_PO_NUMBER = "endCustomerPONumber",
12
- LAST_VERSION = "lastVersion",
13
- PARTNER = "partner",
14
- PO_NUMBER = "ponumber",
15
- PRODUCTS = "products",
16
- QUOTE_REFERENCE = "quoteReference",
17
- REFERENCE = "reference",
18
- STATUS = "status"
19
- }
20
- export declare type QuoteData = {
21
- [QuoteFields.CUSTOMER]?: ReferenceLinkType;
22
- [QuoteFields.DATE_CREATION]: string;
23
- [QuoteFields.DATE_END]?: string;
24
- [QuoteFields.DATE_UPDATE]: string;
25
- [QuoteFields.END_CUSTOMER_PO_NUMBER]?: string;
26
- [QuoteFields.LAST_VERSION]?: QuoteLastVersionData;
27
- [QuoteFields.PARTNER]?: OrderPartnerType;
28
- [QuoteFields.PO_NUMBER]?: string;
29
- [QuoteFields.PRODUCTS]: QuoteProductData[];
30
- [QuoteFields.QUOTE_REFERENCE]: string;
31
- [QuoteFields.REFERENCE]: string;
32
- [QuoteFields.STATUS]: string;
33
- };
34
- export declare class Quote extends AbstractEntity<QuoteData> {
35
- #private;
36
- constructor(data: QuoteData);
37
- get customer(): ReferenceLink | undefined;
38
- get dateCreation(): string;
39
- get dateEnd(): string | undefined;
40
- get dateUpdate(): string;
41
- get endCustomerPONumber(): string | undefined;
42
- get lastVersion(): QuoteLastVersion | undefined;
43
- get partner(): OrderPartner | undefined;
44
- get ponumber(): string | undefined;
45
- get products(): QuoteProduct[];
46
- get quoteReference(): string;
47
- get reference(): string;
48
- get status(): string;
49
- toJSON(): QuoteData;
50
- }
@@ -1,125 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _Quote_customer, _Quote_dateCreation, _Quote_dateEnd, _Quote_dateUpdate, _Quote_endCustomerPONumber, _Quote_lastVersion, _Quote_partner, _Quote_ponumber, _Quote_products, _Quote_quoteReference, _Quote_reference, _Quote_status;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.Quote = exports.QuoteFields = void 0;
16
- const abstractEntity_1 = require("../../abstractEntity");
17
- const partner_1 = require("../../orders/entities/orders/partner/partner");
18
- const referenceLink_1 = require("../../orders/entities/referenceLink");
19
- const QuoteLastVersion_1 = require("./QuoteLastVersion");
20
- const QuoteProduct_1 = require("./QuoteProduct");
21
- var QuoteFields;
22
- (function (QuoteFields) {
23
- QuoteFields["CUSTOMER"] = "customer";
24
- QuoteFields["DATE_CREATION"] = "dateCreation";
25
- QuoteFields["DATE_END"] = "dateEnd";
26
- QuoteFields["DATE_UPDATE"] = "dateUpdate";
27
- QuoteFields["END_CUSTOMER_PO_NUMBER"] = "endCustomerPONumber";
28
- QuoteFields["LAST_VERSION"] = "lastVersion";
29
- QuoteFields["PARTNER"] = "partner";
30
- QuoteFields["PO_NUMBER"] = "ponumber";
31
- QuoteFields["PRODUCTS"] = "products";
32
- QuoteFields["QUOTE_REFERENCE"] = "quoteReference";
33
- QuoteFields["REFERENCE"] = "reference";
34
- QuoteFields["STATUS"] = "status";
35
- })(QuoteFields = exports.QuoteFields || (exports.QuoteFields = {}));
36
- class Quote extends abstractEntity_1.AbstractEntity {
37
- constructor(data) {
38
- super(data);
39
- _Quote_customer.set(this, void 0);
40
- _Quote_dateCreation.set(this, void 0);
41
- _Quote_dateEnd.set(this, void 0);
42
- _Quote_dateUpdate.set(this, void 0);
43
- _Quote_endCustomerPONumber.set(this, void 0);
44
- _Quote_lastVersion.set(this, void 0);
45
- _Quote_partner.set(this, void 0);
46
- _Quote_ponumber.set(this, void 0);
47
- _Quote_products.set(this, void 0);
48
- _Quote_quoteReference.set(this, void 0);
49
- _Quote_reference.set(this, void 0);
50
- _Quote_status.set(this, void 0);
51
- const customer = data[QuoteFields.CUSTOMER];
52
- __classPrivateFieldSet(this, _Quote_customer, customer ? new referenceLink_1.ReferenceLink(customer) : undefined, "f");
53
- __classPrivateFieldSet(this, _Quote_dateCreation, data[QuoteFields.DATE_CREATION], "f");
54
- __classPrivateFieldSet(this, _Quote_dateEnd, data[QuoteFields.DATE_END], "f");
55
- __classPrivateFieldSet(this, _Quote_dateUpdate, data[QuoteFields.DATE_UPDATE], "f");
56
- __classPrivateFieldSet(this, _Quote_endCustomerPONumber, data[QuoteFields.END_CUSTOMER_PO_NUMBER], "f");
57
- const lastVersion = data[QuoteFields.LAST_VERSION];
58
- __classPrivateFieldSet(this, _Quote_lastVersion, lastVersion
59
- ? new QuoteLastVersion_1.QuoteLastVersion(lastVersion)
60
- : undefined, "f");
61
- const partner = data[QuoteFields.PARTNER];
62
- __classPrivateFieldSet(this, _Quote_partner, partner ? new partner_1.OrderPartner(partner) : undefined, "f");
63
- __classPrivateFieldSet(this, _Quote_ponumber, data[QuoteFields.PO_NUMBER], "f");
64
- __classPrivateFieldSet(this, _Quote_products, data[QuoteFields.PRODUCTS].map((product) => new QuoteProduct_1.QuoteProduct(product)), "f");
65
- __classPrivateFieldSet(this, _Quote_quoteReference, data[QuoteFields.QUOTE_REFERENCE], "f");
66
- __classPrivateFieldSet(this, _Quote_reference, data[QuoteFields.REFERENCE], "f");
67
- __classPrivateFieldSet(this, _Quote_status, data[QuoteFields.STATUS], "f");
68
- }
69
- get customer() {
70
- return __classPrivateFieldGet(this, _Quote_customer, "f");
71
- }
72
- get dateCreation() {
73
- return __classPrivateFieldGet(this, _Quote_dateCreation, "f");
74
- }
75
- get dateEnd() {
76
- return __classPrivateFieldGet(this, _Quote_dateEnd, "f");
77
- }
78
- get dateUpdate() {
79
- return __classPrivateFieldGet(this, _Quote_dateUpdate, "f");
80
- }
81
- get endCustomerPONumber() {
82
- return __classPrivateFieldGet(this, _Quote_endCustomerPONumber, "f");
83
- }
84
- get lastVersion() {
85
- return __classPrivateFieldGet(this, _Quote_lastVersion, "f");
86
- }
87
- get partner() {
88
- return __classPrivateFieldGet(this, _Quote_partner, "f");
89
- }
90
- get ponumber() {
91
- return __classPrivateFieldGet(this, _Quote_ponumber, "f");
92
- }
93
- get products() {
94
- return __classPrivateFieldGet(this, _Quote_products, "f");
95
- }
96
- get quoteReference() {
97
- return __classPrivateFieldGet(this, _Quote_quoteReference, "f");
98
- }
99
- get reference() {
100
- return __classPrivateFieldGet(this, _Quote_reference, "f");
101
- }
102
- get status() {
103
- return __classPrivateFieldGet(this, _Quote_status, "f");
104
- }
105
- toJSON() {
106
- var _a, _b, _c;
107
- return {
108
- [QuoteFields.CUSTOMER]: (_a = this.customer) === null || _a === void 0 ? void 0 : _a.toJSON(),
109
- [QuoteFields.DATE_CREATION]: this.dateCreation,
110
- [QuoteFields.DATE_END]: this.dateEnd,
111
- [QuoteFields.DATE_UPDATE]: this.dateUpdate,
112
- [QuoteFields.END_CUSTOMER_PO_NUMBER]: this.endCustomerPONumber,
113
- [QuoteFields.LAST_VERSION]: (_b = this.lastVersion) === null || _b === void 0 ? void 0 : _b.toJSON(),
114
- [QuoteFields.PARTNER]: (_c = this.partner) === null || _c === void 0 ? void 0 : _c.toJSON(),
115
- [QuoteFields.PO_NUMBER]: this.ponumber,
116
- [QuoteFields.PRODUCTS]: this.products.map((product) => product.toJSON()),
117
- [QuoteFields.QUOTE_REFERENCE]: this.quoteReference,
118
- [QuoteFields.REFERENCE]: this.reference,
119
- [QuoteFields.STATUS]: this.status,
120
- };
121
- }
122
- }
123
- exports.Quote = Quote;
124
- _Quote_customer = new WeakMap(), _Quote_dateCreation = new WeakMap(), _Quote_dateEnd = new WeakMap(), _Quote_dateUpdate = new WeakMap(), _Quote_endCustomerPONumber = new WeakMap(), _Quote_lastVersion = new WeakMap(), _Quote_partner = new WeakMap(), _Quote_ponumber = new WeakMap(), _Quote_products = new WeakMap(), _Quote_quoteReference = new WeakMap(), _Quote_reference = new WeakMap(), _Quote_status = new WeakMap();
125
- //# sourceMappingURL=Quote.js.map
@@ -1,16 +0,0 @@
1
- import { AbstractEntity } from '../../abstractEntity';
2
- export declare enum QuoteLastVersionFields {
3
- DATE_UPDATE = "dateUpdate",
4
- VERSION = "version"
5
- }
6
- export declare type QuoteLastVersionData = {
7
- [QuoteLastVersionFields.DATE_UPDATE]?: string;
8
- [QuoteLastVersionFields.VERSION]?: number;
9
- };
10
- export declare class QuoteLastVersion extends AbstractEntity<QuoteLastVersionData> {
11
- #private;
12
- constructor(data: QuoteLastVersionData);
13
- get dateUpdate(): string | undefined;
14
- get version(): number | undefined;
15
- toJSON(): QuoteLastVersionData;
16
- }
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _QuoteLastVersion_dateUpdate, _QuoteLastVersion_version;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.QuoteLastVersion = exports.QuoteLastVersionFields = void 0;
16
- const abstractEntity_1 = require("../../abstractEntity");
17
- var QuoteLastVersionFields;
18
- (function (QuoteLastVersionFields) {
19
- QuoteLastVersionFields["DATE_UPDATE"] = "dateUpdate";
20
- QuoteLastVersionFields["VERSION"] = "version";
21
- })(QuoteLastVersionFields = exports.QuoteLastVersionFields || (exports.QuoteLastVersionFields = {}));
22
- class QuoteLastVersion extends abstractEntity_1.AbstractEntity {
23
- constructor(data) {
24
- super(data);
25
- _QuoteLastVersion_dateUpdate.set(this, void 0);
26
- _QuoteLastVersion_version.set(this, void 0);
27
- __classPrivateFieldSet(this, _QuoteLastVersion_dateUpdate, data[QuoteLastVersionFields.DATE_UPDATE], "f");
28
- __classPrivateFieldSet(this, _QuoteLastVersion_version, data[QuoteLastVersionFields.VERSION], "f");
29
- }
30
- get dateUpdate() {
31
- return __classPrivateFieldGet(this, _QuoteLastVersion_dateUpdate, "f");
32
- }
33
- get version() {
34
- return __classPrivateFieldGet(this, _QuoteLastVersion_version, "f");
35
- }
36
- toJSON() {
37
- return {
38
- [QuoteLastVersionFields.DATE_UPDATE]: this.dateUpdate,
39
- [QuoteLastVersionFields.VERSION]: this.version,
40
- };
41
- }
42
- }
43
- exports.QuoteLastVersion = QuoteLastVersion;
44
- _QuoteLastVersion_dateUpdate = new WeakMap(), _QuoteLastVersion_version = new WeakMap();
45
- //# sourceMappingURL=QuoteLastVersion.js.map
@@ -1,9 +0,0 @@
1
- import { AbstractEntity } from '../../abstractEntity';
2
- import { Quote, QuoteData } from './Quote';
3
- export declare type QuoteListData = Array<QuoteData>;
4
- export declare class QuoteList extends AbstractEntity<QuoteListData> {
5
- #private;
6
- constructor(data: QuoteListData);
7
- get quotes(): Array<Quote>;
8
- toJSON(): QuoteListData;
9
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _QuoteList_quotes;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.QuoteList = void 0;
16
- const abstractEntity_1 = require("../../abstractEntity");
17
- const Quote_1 = require("./Quote");
18
- class QuoteList extends abstractEntity_1.AbstractEntity {
19
- constructor(data) {
20
- super(data);
21
- _QuoteList_quotes.set(this, void 0);
22
- __classPrivateFieldSet(this, _QuoteList_quotes, data.map((quote) => new Quote_1.Quote(quote)), "f");
23
- }
24
- get quotes() {
25
- return __classPrivateFieldGet(this, _QuoteList_quotes, "f");
26
- }
27
- toJSON() {
28
- return this.quotes.map((quote) => quote.toJSON());
29
- }
30
- }
31
- exports.QuoteList = QuoteList;
32
- _QuoteList_quotes = new WeakMap();
33
- //# sourceMappingURL=QuoteList.js.map