@arrowsphere/api-client 3.367.0 → 3.369.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.
- package/CHANGELOG.md +9 -2
- package/build/catalog/types/catalogGraphQLSchemas.d.ts +5 -1
- package/build/catalog/types/catalogGraphQLTypes.d.ts +5 -0
- package/build/graphqlApi/types/entities/quote.d.ts +4 -4
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +3 -0
- package/build/licenses/entities/getLicense/priceBandGetResult.d.ts +7 -2
- package/build/licenses/entities/getLicense/priceBandGetResult.js +17 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,14 +3,21 @@
|
|
|
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.367.0] - 2026.05.11
|
|
7
6
|
|
|
7
|
+
## [3.369.0] - 2026.05.19
|
|
8
8
|
### Added
|
|
9
|
-
|
|
10
9
|
- [Cart] Add `isBundle`, `bundleArrowSphereSku`, and `basePriceBands` fields to `ItemType` and `Item` entity
|
|
11
10
|
- [Cart] Add `ItemBundleRequestType` for adding bundle items to cart
|
|
12
11
|
- [Cart] Add `BASE_PRICE_BANDS` and `BUNDLE_ARROWSPHERE_SKU` to `ItemRequestFields` enum
|
|
13
12
|
|
|
13
|
+
## [3.368.0] - 2026.05.18
|
|
14
|
+
### Added
|
|
15
|
+
- [graphql-api] Add new field to PriceBandType: `promotionsPrices`
|
|
16
|
+
|
|
17
|
+
## [3.367.0] - 2026.05.11
|
|
18
|
+
### Added
|
|
19
|
+
- [ItemData] Add field `attributesParameters` in itemData for quote & order
|
|
20
|
+
|
|
14
21
|
## [3.366.0] - 2026.05.11
|
|
15
22
|
### Added
|
|
16
23
|
- [SupportLevel] Add `displayName`, `level` and `priority` to `GraphqlApiSupportLevel`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AttributesParameters, AttributeType, BundleBillingRuleType, ExchangeRateType, ExchangeRateValueType, FiltersType, IdentifiersType, PaginationType, PriceBandType, PricesType, ProductType, PromotionType, RelatedOfferType } from './catalogGraphQLTypes';
|
|
1
|
+
import { AttributesParameters, AttributeType, BundleBillingRuleType, ExchangeRateType, ExchangeRateValueType, FiltersType, IdentifiersType, PaginationType, PriceBandType, PricesType, ProductType, PromotionPricesFull, PromotionType, RelatedOfferType } from './catalogGraphQLTypes';
|
|
2
2
|
import { Merge, Schema } from 'type-fest';
|
|
3
3
|
export declare type PaginationSchema = Schema<PaginationType, boolean>;
|
|
4
4
|
export declare type FiltersSchema = Schema<FiltersType, boolean>;
|
|
@@ -24,11 +24,15 @@ declare type MissingFieldsOfProductSchema = {
|
|
|
24
24
|
};
|
|
25
25
|
export declare type ProductSchema = Merge<Schema<ProductType, boolean>, MissingFieldsOfProductSchema>;
|
|
26
26
|
declare type AttributeSchema = Schema<AttributeType, boolean>;
|
|
27
|
+
declare type PromotionPricesFullSchema = Merge<Schema<PromotionPricesFull, boolean>, {
|
|
28
|
+
attributes?: AttributeSchema;
|
|
29
|
+
}>;
|
|
27
30
|
/**
|
|
28
31
|
* Field of type array are not handled by Schema, they must be overwritten
|
|
29
32
|
*/
|
|
30
33
|
declare type MissingFieldsOfPriceBandSchema = {
|
|
31
34
|
attributes?: AttributeSchema;
|
|
35
|
+
promotionsPrices?: PromotionPricesFullSchema;
|
|
32
36
|
};
|
|
33
37
|
/**
|
|
34
38
|
* No type corresponding
|
|
@@ -189,6 +189,7 @@ export declare type PriceBandType = {
|
|
|
189
189
|
saleConstraints?: PriceBandSaleConstraintsType;
|
|
190
190
|
uom?: UomType;
|
|
191
191
|
promotionPrices?: PromotionPricesType;
|
|
192
|
+
promotionsPrices?: Array<PromotionPricesFull>;
|
|
192
193
|
vendor?: VendorType;
|
|
193
194
|
};
|
|
194
195
|
export declare type PriceBandActionFlagsType = {
|
|
@@ -283,6 +284,10 @@ export declare type VendorPricingSourceType = {
|
|
|
283
284
|
changeRate?: number;
|
|
284
285
|
prices?: PricesType;
|
|
285
286
|
};
|
|
287
|
+
export declare type PromotionPricesFull = Omit<PromotionType, 'billing'> & {
|
|
288
|
+
prices?: PricesType;
|
|
289
|
+
attributes?: Array<AttributeType>;
|
|
290
|
+
};
|
|
286
291
|
export declare type PromotionType = {
|
|
287
292
|
promotionId?: string;
|
|
288
293
|
vendorSku?: string;
|
|
@@ -3,6 +3,7 @@ import { ContactsType } from './contact';
|
|
|
3
3
|
import { GraphqlApiProgramType } from './program';
|
|
4
4
|
import { QuoteVersion } from './quoteVersion';
|
|
5
5
|
import { Comment } from './comment';
|
|
6
|
+
import { AttributesParameters } from '../../../catalog';
|
|
6
7
|
export declare type EavType = {
|
|
7
8
|
value?: string;
|
|
8
9
|
};
|
|
@@ -42,6 +43,7 @@ export declare type QuoteItemType = {
|
|
|
42
43
|
export declare type ItemData = {
|
|
43
44
|
id?: string;
|
|
44
45
|
attributes?: NameValueType[];
|
|
46
|
+
attributesParameters?: AttributesParameters[];
|
|
45
47
|
isAddon?: boolean;
|
|
46
48
|
isTrial?: boolean;
|
|
47
49
|
arrowSubCategories?: string[];
|
|
@@ -59,15 +61,13 @@ export declare type ItemData = {
|
|
|
59
61
|
arrowBuyPrice?: number;
|
|
60
62
|
arrowCotermBuyPrice?: number;
|
|
61
63
|
/**
|
|
62
|
-
* this field will be delete shortly
|
|
63
64
|
* Use 'partnerBuyPrice' instead.
|
|
64
|
-
* @deprecated
|
|
65
|
+
* @deprecated this field will be deleted shortly
|
|
65
66
|
*/
|
|
66
67
|
resellerBuyPrice?: number;
|
|
67
68
|
/**
|
|
68
|
-
* this field will be delete shortly
|
|
69
69
|
* Use 'partnerCotermBuyPrice' instead.
|
|
70
|
-
* @deprecated
|
|
70
|
+
* @deprecated this field will be deleted shortly
|
|
71
71
|
*/
|
|
72
72
|
resellerCotermBuyPrice?: number;
|
|
73
73
|
retailCotermBuyPrice?: number;
|
|
@@ -21,6 +21,7 @@ import { GraphqlApiEavType } from './entities/eav';
|
|
|
21
21
|
import { GraphqlApiSupportLevel } from './entities/supportLevel';
|
|
22
22
|
import { GraphqlApiProgramAgreementType } from './entities/programAgreement';
|
|
23
23
|
import { GraphqlApiContributorRoleType, GraphqlApiStaffType } from './entities/contributor';
|
|
24
|
+
import { AttributesParameters } from '../../catalog';
|
|
24
25
|
export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
|
|
25
26
|
declare type MissingFieldsOfCompanySchema = {
|
|
26
27
|
contacts?: ContactsSchema;
|
|
@@ -88,8 +89,10 @@ declare type MissingFieldsOfCountrySchema = {
|
|
|
88
89
|
continent?: ContinentSchema;
|
|
89
90
|
};
|
|
90
91
|
declare type NameValueTypeSchema = Schema<NameValueType, boolean>;
|
|
92
|
+
declare type AttributesParametersSchema = Schema<AttributesParameters, boolean>;
|
|
91
93
|
declare type MissingFieldsOfItemDataSchema = {
|
|
92
94
|
attributes?: NameValueTypeSchema;
|
|
95
|
+
attributesParameters?: AttributesParametersSchema;
|
|
93
96
|
};
|
|
94
97
|
export declare type ItemDataSchema = Merge<Schema<ItemData, boolean>, MissingFieldsOfItemDataSchema>;
|
|
95
98
|
export declare type QuoteSchema = Merge<Schema<QuoteType, boolean>, MissingFieldsOfQuoteSchema>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
2
|
import { SaleConstraintsFindResult, SaleConstraintsFindResultData } from '../offer/priceband/saleConstraintsFindResult';
|
|
3
|
-
import {
|
|
3
|
+
import { AttributesParameters } from '../../../catalog';
|
|
4
4
|
export declare enum PriceBandDataFields {
|
|
5
|
+
COLUMN_BASE_ATTRIBUTES = "baseAttributes",
|
|
5
6
|
COLUMN_ATTRIBUTES = "attributes",
|
|
7
|
+
COLUMN_ATTRIBUTES_PARAMETERS = "attributesParameters",
|
|
6
8
|
COLUMN_BILLING = "billing",
|
|
7
9
|
COLUMN_SALE_CONSTRAINTS = "saleConstraints"
|
|
8
10
|
}
|
|
@@ -12,17 +14,20 @@ export declare type Billing = {
|
|
|
12
14
|
export declare type PriceBandAttribute = {
|
|
13
15
|
name: string;
|
|
14
16
|
value: string;
|
|
15
|
-
type?: AttributesParameterType;
|
|
16
17
|
};
|
|
17
18
|
export declare type PriceBandData = {
|
|
19
|
+
[PriceBandDataFields.COLUMN_BASE_ATTRIBUTES]?: PriceBandAttribute[];
|
|
18
20
|
[PriceBandDataFields.COLUMN_ATTRIBUTES]?: PriceBandAttribute[];
|
|
21
|
+
[PriceBandDataFields.COLUMN_ATTRIBUTES_PARAMETERS]?: AttributesParameters[];
|
|
19
22
|
[PriceBandDataFields.COLUMN_BILLING]?: Billing;
|
|
20
23
|
[PriceBandDataFields.COLUMN_SALE_CONSTRAINTS]?: SaleConstraintsFindResultData;
|
|
21
24
|
};
|
|
22
25
|
export declare class PriceBandGetResult extends AbstractEntity<PriceBandData> {
|
|
23
26
|
#private;
|
|
24
27
|
constructor(data: PriceBandData);
|
|
28
|
+
get baseAttributes(): PriceBandAttribute[] | undefined;
|
|
25
29
|
get attributes(): PriceBandAttribute[] | undefined;
|
|
30
|
+
get attributesParameters(): AttributesParameters[] | undefined;
|
|
26
31
|
get billing(): Billing | undefined;
|
|
27
32
|
get saleConstraints(): SaleConstraintsFindResult | undefined;
|
|
28
33
|
toJSON(): PriceBandData;
|
|
@@ -10,32 +10,44 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
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
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _PriceBandGetResult_attributes, _PriceBandGetResult_billing, _PriceBandGetResult_saleConstraints;
|
|
13
|
+
var _PriceBandGetResult_baseAttributes, _PriceBandGetResult_attributes, _PriceBandGetResult_attributesParameters, _PriceBandGetResult_billing, _PriceBandGetResult_saleConstraints;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.PriceBandGetResult = exports.PriceBandDataFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
17
|
const saleConstraintsFindResult_1 = require("../offer/priceband/saleConstraintsFindResult");
|
|
18
18
|
var PriceBandDataFields;
|
|
19
19
|
(function (PriceBandDataFields) {
|
|
20
|
+
PriceBandDataFields["COLUMN_BASE_ATTRIBUTES"] = "baseAttributes";
|
|
20
21
|
PriceBandDataFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
22
|
+
PriceBandDataFields["COLUMN_ATTRIBUTES_PARAMETERS"] = "attributesParameters";
|
|
21
23
|
PriceBandDataFields["COLUMN_BILLING"] = "billing";
|
|
22
24
|
PriceBandDataFields["COLUMN_SALE_CONSTRAINTS"] = "saleConstraints";
|
|
23
25
|
})(PriceBandDataFields = exports.PriceBandDataFields || (exports.PriceBandDataFields = {}));
|
|
24
26
|
class PriceBandGetResult extends abstractEntity_1.AbstractEntity {
|
|
25
27
|
constructor(data) {
|
|
26
28
|
super(data);
|
|
29
|
+
_PriceBandGetResult_baseAttributes.set(this, void 0);
|
|
27
30
|
_PriceBandGetResult_attributes.set(this, void 0);
|
|
31
|
+
_PriceBandGetResult_attributesParameters.set(this, void 0);
|
|
28
32
|
_PriceBandGetResult_billing.set(this, void 0);
|
|
29
33
|
_PriceBandGetResult_saleConstraints.set(this, void 0);
|
|
34
|
+
__classPrivateFieldSet(this, _PriceBandGetResult_baseAttributes, data[PriceBandDataFields.COLUMN_BASE_ATTRIBUTES], "f");
|
|
30
35
|
__classPrivateFieldSet(this, _PriceBandGetResult_attributes, data[PriceBandDataFields.COLUMN_ATTRIBUTES], "f");
|
|
36
|
+
__classPrivateFieldSet(this, _PriceBandGetResult_attributesParameters, data[PriceBandDataFields.COLUMN_ATTRIBUTES_PARAMETERS], "f");
|
|
31
37
|
__classPrivateFieldSet(this, _PriceBandGetResult_billing, data[PriceBandDataFields.COLUMN_BILLING], "f");
|
|
32
38
|
__classPrivateFieldSet(this, _PriceBandGetResult_saleConstraints, data[PriceBandDataFields.COLUMN_SALE_CONSTRAINTS] !== undefined
|
|
33
39
|
? new saleConstraintsFindResult_1.SaleConstraintsFindResult(data[PriceBandDataFields.COLUMN_SALE_CONSTRAINTS])
|
|
34
40
|
: undefined, "f");
|
|
35
41
|
}
|
|
42
|
+
get baseAttributes() {
|
|
43
|
+
return __classPrivateFieldGet(this, _PriceBandGetResult_baseAttributes, "f");
|
|
44
|
+
}
|
|
36
45
|
get attributes() {
|
|
37
46
|
return __classPrivateFieldGet(this, _PriceBandGetResult_attributes, "f");
|
|
38
47
|
}
|
|
48
|
+
get attributesParameters() {
|
|
49
|
+
return __classPrivateFieldGet(this, _PriceBandGetResult_attributesParameters, "f");
|
|
50
|
+
}
|
|
39
51
|
get billing() {
|
|
40
52
|
return __classPrivateFieldGet(this, _PriceBandGetResult_billing, "f");
|
|
41
53
|
}
|
|
@@ -45,12 +57,15 @@ class PriceBandGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
45
57
|
toJSON() {
|
|
46
58
|
var _a;
|
|
47
59
|
return {
|
|
60
|
+
[PriceBandDataFields.COLUMN_BASE_ATTRIBUTES]: this.baseAttributes,
|
|
48
61
|
[PriceBandDataFields.COLUMN_ATTRIBUTES]: this.attributes,
|
|
62
|
+
[PriceBandDataFields.COLUMN_ATTRIBUTES_PARAMETERS]: this
|
|
63
|
+
.attributesParameters,
|
|
49
64
|
[PriceBandDataFields.COLUMN_BILLING]: this.billing,
|
|
50
65
|
[PriceBandDataFields.COLUMN_SALE_CONSTRAINTS]: (_a = this.saleConstraints) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
51
66
|
};
|
|
52
67
|
}
|
|
53
68
|
}
|
|
54
69
|
exports.PriceBandGetResult = PriceBandGetResult;
|
|
55
|
-
_PriceBandGetResult_attributes = new WeakMap(), _PriceBandGetResult_billing = new WeakMap(), _PriceBandGetResult_saleConstraints = new WeakMap();
|
|
70
|
+
_PriceBandGetResult_baseAttributes = new WeakMap(), _PriceBandGetResult_attributes = new WeakMap(), _PriceBandGetResult_attributesParameters = new WeakMap(), _PriceBandGetResult_billing = new WeakMap(), _PriceBandGetResult_saleConstraints = new WeakMap();
|
|
56
71
|
//# sourceMappingURL=priceBandGetResult.js.map
|
package/package.json
CHANGED