@missioncontrolio/client 0.0.11 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/generated/models/index.d.ts +98 -1
- package/dist/client/generated/models/index.js +218 -0
- package/dist/client/generated/product/item/attributes/index.d.ts +11 -0
- package/dist/client/generated/product/item/attributes/index.js +20 -0
- package/dist/client/generated/product/item/attributes/resolved/index.d.ts +12 -0
- package/dist/client/generated/product/item/attributes/resolved/index.js +14 -0
- package/dist/client/generated/product/item/index.d.ts +2 -0
- package/dist/client/generated/product/item/index.js +5 -0
- package/package.json +1 -1
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import { type AdditionalDataHolder, type ApiError, type Guid, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
1
|
+
import { type AdditionalDataHolder, type ApiError, type DateOnly, type Guid, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
2
|
export interface ArchivingInfo extends Parsable {
|
|
3
3
|
archivedOnUtc?: Date | null;
|
|
4
4
|
isArchived?: boolean | null;
|
|
5
5
|
}
|
|
6
|
+
export interface AttributeFactDto extends Parsable {
|
|
7
|
+
boolean?: boolean | null;
|
|
8
|
+
date?: DateOnly | null;
|
|
9
|
+
number?: number | null;
|
|
10
|
+
optionId?: Guid | null;
|
|
11
|
+
optionIds?: Guid[] | null;
|
|
12
|
+
text?: string | null;
|
|
13
|
+
translations?: AttributeFactDto_translations | null;
|
|
14
|
+
}
|
|
15
|
+
export interface AttributeFactDto_translations extends AdditionalDataHolder, Parsable {
|
|
16
|
+
}
|
|
6
17
|
export interface Browser extends Parsable {
|
|
7
18
|
acceptLanguage?: string | null;
|
|
8
19
|
userAgent?: string | null;
|
|
@@ -25,6 +36,8 @@ export interface Consumer extends Parsable {
|
|
|
25
36
|
location?: Location | null;
|
|
26
37
|
}
|
|
27
38
|
export declare function createArchivingInfoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
39
|
+
export declare function createAttributeFactDto_translationsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
40
|
+
export declare function createAttributeFactDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
28
41
|
export declare function createBrowserFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
29
42
|
export declare function createCancelOrderRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
30
43
|
export declare function createClaimReservationRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
@@ -56,6 +69,13 @@ export declare function createPartnerListResultFromDiscriminatorValue(parseNode:
|
|
|
56
69
|
export declare function createPriceListFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
57
70
|
export declare function createPriceListItemFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
58
71
|
export declare function createProblemDetailsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
72
|
+
export declare function createProductAttributeDefinitionDto_labelsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
73
|
+
export declare function createProductAttributeDefinitionDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
74
|
+
export declare function createProductAttributeDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
75
|
+
export declare function createProductAttributeOptionDto_labelsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
76
|
+
export declare function createProductAttributeOptionDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
77
|
+
export declare function createProductAttributeValueDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
78
|
+
export declare function createProductFamilyReferenceFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
59
79
|
export declare function createProductFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
60
80
|
export declare function createProductListResultFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
61
81
|
export declare function createPublisherFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
@@ -70,6 +90,9 @@ export interface CreateReservationRequest extends Parsable {
|
|
|
70
90
|
productId?: Guid | null;
|
|
71
91
|
regionId?: Guid | null;
|
|
72
92
|
}
|
|
93
|
+
export declare function createResolvedAttributeTextDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
94
|
+
export declare function createResolvedProductAttributeDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
95
|
+
export declare function createResolvedProductAttributeOptionDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
73
96
|
export declare function createSalesPriceRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
74
97
|
export declare function createVatDetailFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
75
98
|
export interface Deduction extends Parsable {
|
|
@@ -78,6 +101,8 @@ export interface Deduction extends Parsable {
|
|
|
78
101
|
type?: number | null;
|
|
79
102
|
}
|
|
80
103
|
export declare function deserializeIntoArchivingInfo(archivingInfo?: Partial<ArchivingInfo> | undefined): Record<string, (node: ParseNode) => void>;
|
|
104
|
+
export declare function deserializeIntoAttributeFactDto(attributeFactDto?: Partial<AttributeFactDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
105
|
+
export declare function deserializeIntoAttributeFactDto_translations(attributeFactDto_translations?: Partial<AttributeFactDto_translations> | undefined): Record<string, (node: ParseNode) => void>;
|
|
81
106
|
export declare function deserializeIntoBrowser(browser?: Partial<Browser> | undefined): Record<string, (node: ParseNode) => void>;
|
|
82
107
|
export declare function deserializeIntoCancelOrderRequest(cancelOrderRequest?: Partial<CancelOrderRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
83
108
|
export declare function deserializeIntoClaimReservationRequest(claimReservationRequest?: Partial<ClaimReservationRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
@@ -98,6 +123,13 @@ export declare function deserializeIntoPriceList(priceList?: Partial<PriceList>
|
|
|
98
123
|
export declare function deserializeIntoPriceListItem(priceListItem?: Partial<PriceListItem> | undefined): Record<string, (node: ParseNode) => void>;
|
|
99
124
|
export declare function deserializeIntoProblemDetails(problemDetails?: Partial<ProblemDetails> | undefined): Record<string, (node: ParseNode) => void>;
|
|
100
125
|
export declare function deserializeIntoProduct(product?: Partial<Product> | undefined): Record<string, (node: ParseNode) => void>;
|
|
126
|
+
export declare function deserializeIntoProductAttributeDefinitionDto(productAttributeDefinitionDto?: Partial<ProductAttributeDefinitionDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
127
|
+
export declare function deserializeIntoProductAttributeDefinitionDto_labels(productAttributeDefinitionDto_labels?: Partial<ProductAttributeDefinitionDto_labels> | undefined): Record<string, (node: ParseNode) => void>;
|
|
128
|
+
export declare function deserializeIntoProductAttributeDto(productAttributeDto?: Partial<ProductAttributeDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
129
|
+
export declare function deserializeIntoProductAttributeOptionDto(productAttributeOptionDto?: Partial<ProductAttributeOptionDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
130
|
+
export declare function deserializeIntoProductAttributeOptionDto_labels(productAttributeOptionDto_labels?: Partial<ProductAttributeOptionDto_labels> | undefined): Record<string, (node: ParseNode) => void>;
|
|
131
|
+
export declare function deserializeIntoProductAttributeValueDto(productAttributeValueDto?: Partial<ProductAttributeValueDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
132
|
+
export declare function deserializeIntoProductFamilyReference(productFamilyReference?: Partial<ProductFamilyReference> | undefined): Record<string, (node: ParseNode) => void>;
|
|
101
133
|
export declare function deserializeIntoProductListResult(productListResult?: Partial<ProductListResult> | undefined): Record<string, (node: ParseNode) => void>;
|
|
102
134
|
export declare function deserializeIntoPublisher(publisher?: Partial<Publisher> | undefined): Record<string, (node: ParseNode) => void>;
|
|
103
135
|
export declare function deserializeIntoPublisherListResult(publisherListResult?: Partial<PublisherListResult> | undefined): Record<string, (node: ParseNode) => void>;
|
|
@@ -106,6 +138,9 @@ export declare function deserializeIntoRegion(region?: Partial<Region> | undefin
|
|
|
106
138
|
export declare function deserializeIntoRegionListResult(regionListResult?: Partial<RegionListResult> | undefined): Record<string, (node: ParseNode) => void>;
|
|
107
139
|
export declare function deserializeIntoReportOrderRequest(reportOrderRequest?: Partial<ReportOrderRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
108
140
|
export declare function deserializeIntoReservation(reservation?: Partial<Reservation> | undefined): Record<string, (node: ParseNode) => void>;
|
|
141
|
+
export declare function deserializeIntoResolvedAttributeTextDto(resolvedAttributeTextDto?: Partial<ResolvedAttributeTextDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
142
|
+
export declare function deserializeIntoResolvedProductAttributeDto(resolvedProductAttributeDto?: Partial<ResolvedProductAttributeDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
143
|
+
export declare function deserializeIntoResolvedProductAttributeOptionDto(resolvedProductAttributeOptionDto?: Partial<ResolvedProductAttributeOptionDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
109
144
|
export declare function deserializeIntoSalesPriceRequest(salesPriceRequest?: Partial<SalesPriceRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
110
145
|
export declare function deserializeIntoVatDetail(vatDetail?: Partial<VatDetail> | undefined): Record<string, (node: ParseNode) => void>;
|
|
111
146
|
export interface HasStockRequest extends Parsable {
|
|
@@ -182,6 +217,7 @@ export interface Product extends Parsable {
|
|
|
182
217
|
allowedCountries?: string[] | null;
|
|
183
218
|
allowedRegions?: Guid[] | null;
|
|
184
219
|
canBeReserved?: boolean | null;
|
|
220
|
+
family?: ProductFamilyReference | null;
|
|
185
221
|
id?: Guid | null;
|
|
186
222
|
msrp?: Money | null;
|
|
187
223
|
name?: string | null;
|
|
@@ -193,6 +229,35 @@ export interface Product extends Parsable {
|
|
|
193
229
|
releaseDate?: Date | null;
|
|
194
230
|
valueType?: number | null;
|
|
195
231
|
}
|
|
232
|
+
export interface ProductAttributeDefinitionDto extends Parsable {
|
|
233
|
+
id?: Guid | null;
|
|
234
|
+
labels?: ProductAttributeDefinitionDto_labels | null;
|
|
235
|
+
options?: ProductAttributeOptionDto[] | null;
|
|
236
|
+
publisherId?: Guid | null;
|
|
237
|
+
textIsTranslated?: boolean | null;
|
|
238
|
+
valueType?: number | null;
|
|
239
|
+
}
|
|
240
|
+
export interface ProductAttributeDefinitionDto_labels extends AdditionalDataHolder, Parsable {
|
|
241
|
+
}
|
|
242
|
+
export interface ProductAttributeDto extends Parsable {
|
|
243
|
+
definition?: ProductAttributeDefinitionDto | null;
|
|
244
|
+
values?: ProductAttributeValueDto[] | null;
|
|
245
|
+
}
|
|
246
|
+
export interface ProductAttributeOptionDto extends Parsable {
|
|
247
|
+
id?: Guid | null;
|
|
248
|
+
labels?: ProductAttributeOptionDto_labels | null;
|
|
249
|
+
}
|
|
250
|
+
export interface ProductAttributeOptionDto_labels extends AdditionalDataHolder, Parsable {
|
|
251
|
+
}
|
|
252
|
+
export interface ProductAttributeValueDto extends Parsable {
|
|
253
|
+
countryCode?: string | null;
|
|
254
|
+
definitionId?: Guid | null;
|
|
255
|
+
fact?: AttributeFactDto | null;
|
|
256
|
+
}
|
|
257
|
+
export interface ProductFamilyReference extends Parsable {
|
|
258
|
+
id?: Guid | null;
|
|
259
|
+
name?: string | null;
|
|
260
|
+
}
|
|
196
261
|
export interface ProductListResult extends Parsable {
|
|
197
262
|
pageCount?: number | null;
|
|
198
263
|
result?: Product[] | null;
|
|
@@ -239,12 +304,34 @@ export interface Reservation extends Parsable {
|
|
|
239
304
|
statusDescription?: string | null;
|
|
240
305
|
statusId?: number | null;
|
|
241
306
|
}
|
|
307
|
+
export interface ResolvedAttributeTextDto extends Parsable {
|
|
308
|
+
languageCode?: string | null;
|
|
309
|
+
text?: string | null;
|
|
310
|
+
}
|
|
311
|
+
export interface ResolvedProductAttributeDto extends Parsable {
|
|
312
|
+
countryCode?: string | null;
|
|
313
|
+
definitionId?: Guid | null;
|
|
314
|
+
fact?: AttributeFactDto | null;
|
|
315
|
+
hasSource?: boolean | null;
|
|
316
|
+
label?: ResolvedAttributeTextDto | null;
|
|
317
|
+
languageCode?: string | null;
|
|
318
|
+
options?: ResolvedProductAttributeOptionDto[] | null;
|
|
319
|
+
publisherId?: Guid | null;
|
|
320
|
+
textIsTranslated?: boolean | null;
|
|
321
|
+
valueType?: number | null;
|
|
322
|
+
}
|
|
323
|
+
export interface ResolvedProductAttributeOptionDto extends Parsable {
|
|
324
|
+
id?: Guid | null;
|
|
325
|
+
label?: ResolvedAttributeTextDto | null;
|
|
326
|
+
}
|
|
242
327
|
export interface SalesPriceRequest extends Parsable {
|
|
243
328
|
deductions?: Deduction[] | null;
|
|
244
329
|
priceIncludingVat?: Money | null;
|
|
245
330
|
vatDetail?: VatDetail | null;
|
|
246
331
|
}
|
|
247
332
|
export declare function serializeArchivingInfo(writer: SerializationWriter, archivingInfo?: Partial<ArchivingInfo> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
333
|
+
export declare function serializeAttributeFactDto(writer: SerializationWriter, attributeFactDto?: Partial<AttributeFactDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
334
|
+
export declare function serializeAttributeFactDto_translations(writer: SerializationWriter, attributeFactDto_translations?: Partial<AttributeFactDto_translations> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
248
335
|
export declare function serializeBrowser(writer: SerializationWriter, browser?: Partial<Browser> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
249
336
|
export declare function serializeCancelOrderRequest(writer: SerializationWriter, cancelOrderRequest?: Partial<CancelOrderRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
250
337
|
export declare function serializeClaimReservationRequest(writer: SerializationWriter, claimReservationRequest?: Partial<ClaimReservationRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -265,6 +352,13 @@ export declare function serializePriceList(writer: SerializationWriter, priceLis
|
|
|
265
352
|
export declare function serializePriceListItem(writer: SerializationWriter, priceListItem?: Partial<PriceListItem> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
266
353
|
export declare function serializeProblemDetails(writer: SerializationWriter, problemDetails?: Partial<ProblemDetails> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
267
354
|
export declare function serializeProduct(writer: SerializationWriter, product?: Partial<Product> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
355
|
+
export declare function serializeProductAttributeDefinitionDto(writer: SerializationWriter, productAttributeDefinitionDto?: Partial<ProductAttributeDefinitionDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
356
|
+
export declare function serializeProductAttributeDefinitionDto_labels(writer: SerializationWriter, productAttributeDefinitionDto_labels?: Partial<ProductAttributeDefinitionDto_labels> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
357
|
+
export declare function serializeProductAttributeDto(writer: SerializationWriter, productAttributeDto?: Partial<ProductAttributeDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
358
|
+
export declare function serializeProductAttributeOptionDto(writer: SerializationWriter, productAttributeOptionDto?: Partial<ProductAttributeOptionDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
359
|
+
export declare function serializeProductAttributeOptionDto_labels(writer: SerializationWriter, productAttributeOptionDto_labels?: Partial<ProductAttributeOptionDto_labels> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
360
|
+
export declare function serializeProductAttributeValueDto(writer: SerializationWriter, productAttributeValueDto?: Partial<ProductAttributeValueDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
361
|
+
export declare function serializeProductFamilyReference(writer: SerializationWriter, productFamilyReference?: Partial<ProductFamilyReference> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
268
362
|
export declare function serializeProductListResult(writer: SerializationWriter, productListResult?: Partial<ProductListResult> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
269
363
|
export declare function serializePublisher(writer: SerializationWriter, publisher?: Partial<Publisher> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
270
364
|
export declare function serializePublisherListResult(writer: SerializationWriter, publisherListResult?: Partial<PublisherListResult> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -273,6 +367,9 @@ export declare function serializeRegion(writer: SerializationWriter, region?: Pa
|
|
|
273
367
|
export declare function serializeRegionListResult(writer: SerializationWriter, regionListResult?: Partial<RegionListResult> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
274
368
|
export declare function serializeReportOrderRequest(writer: SerializationWriter, reportOrderRequest?: Partial<ReportOrderRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
275
369
|
export declare function serializeReservation(writer: SerializationWriter, reservation?: Partial<Reservation> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
370
|
+
export declare function serializeResolvedAttributeTextDto(writer: SerializationWriter, resolvedAttributeTextDto?: Partial<ResolvedAttributeTextDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
371
|
+
export declare function serializeResolvedProductAttributeDto(writer: SerializationWriter, resolvedProductAttributeDto?: Partial<ResolvedProductAttributeDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
372
|
+
export declare function serializeResolvedProductAttributeOptionDto(writer: SerializationWriter, resolvedProductAttributeOptionDto?: Partial<ResolvedProductAttributeOptionDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
276
373
|
export declare function serializeSalesPriceRequest(writer: SerializationWriter, salesPriceRequest?: Partial<SalesPriceRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
277
374
|
export declare function serializeVatDetail(writer: SerializationWriter, vatDetail?: Partial<VatDetail> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
278
375
|
export interface VatDetail extends Parsable {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export function createArchivingInfoFromDiscriminatorValue(parseNode) {
|
|
2
2
|
return deserializeIntoArchivingInfo;
|
|
3
3
|
}
|
|
4
|
+
export function createAttributeFactDto_translationsFromDiscriminatorValue(parseNode) {
|
|
5
|
+
return deserializeIntoAttributeFactDto_translations;
|
|
6
|
+
}
|
|
7
|
+
export function createAttributeFactDtoFromDiscriminatorValue(parseNode) {
|
|
8
|
+
return deserializeIntoAttributeFactDto;
|
|
9
|
+
}
|
|
4
10
|
export function createBrowserFromDiscriminatorValue(parseNode) {
|
|
5
11
|
return deserializeIntoBrowser;
|
|
6
12
|
}
|
|
@@ -58,6 +64,27 @@ export function createPriceListItemFromDiscriminatorValue(parseNode) {
|
|
|
58
64
|
export function createProblemDetailsFromDiscriminatorValue(parseNode) {
|
|
59
65
|
return deserializeIntoProblemDetails;
|
|
60
66
|
}
|
|
67
|
+
export function createProductAttributeDefinitionDto_labelsFromDiscriminatorValue(parseNode) {
|
|
68
|
+
return deserializeIntoProductAttributeDefinitionDto_labels;
|
|
69
|
+
}
|
|
70
|
+
export function createProductAttributeDefinitionDtoFromDiscriminatorValue(parseNode) {
|
|
71
|
+
return deserializeIntoProductAttributeDefinitionDto;
|
|
72
|
+
}
|
|
73
|
+
export function createProductAttributeDtoFromDiscriminatorValue(parseNode) {
|
|
74
|
+
return deserializeIntoProductAttributeDto;
|
|
75
|
+
}
|
|
76
|
+
export function createProductAttributeOptionDto_labelsFromDiscriminatorValue(parseNode) {
|
|
77
|
+
return deserializeIntoProductAttributeOptionDto_labels;
|
|
78
|
+
}
|
|
79
|
+
export function createProductAttributeOptionDtoFromDiscriminatorValue(parseNode) {
|
|
80
|
+
return deserializeIntoProductAttributeOptionDto;
|
|
81
|
+
}
|
|
82
|
+
export function createProductAttributeValueDtoFromDiscriminatorValue(parseNode) {
|
|
83
|
+
return deserializeIntoProductAttributeValueDto;
|
|
84
|
+
}
|
|
85
|
+
export function createProductFamilyReferenceFromDiscriminatorValue(parseNode) {
|
|
86
|
+
return deserializeIntoProductFamilyReference;
|
|
87
|
+
}
|
|
61
88
|
export function createProductFromDiscriminatorValue(parseNode) {
|
|
62
89
|
return deserializeIntoProduct;
|
|
63
90
|
}
|
|
@@ -85,6 +112,15 @@ export function createReportOrderRequestFromDiscriminatorValue(parseNode) {
|
|
|
85
112
|
export function createReservationFromDiscriminatorValue(parseNode) {
|
|
86
113
|
return deserializeIntoReservation;
|
|
87
114
|
}
|
|
115
|
+
export function createResolvedAttributeTextDtoFromDiscriminatorValue(parseNode) {
|
|
116
|
+
return deserializeIntoResolvedAttributeTextDto;
|
|
117
|
+
}
|
|
118
|
+
export function createResolvedProductAttributeDtoFromDiscriminatorValue(parseNode) {
|
|
119
|
+
return deserializeIntoResolvedProductAttributeDto;
|
|
120
|
+
}
|
|
121
|
+
export function createResolvedProductAttributeOptionDtoFromDiscriminatorValue(parseNode) {
|
|
122
|
+
return deserializeIntoResolvedProductAttributeOptionDto;
|
|
123
|
+
}
|
|
88
124
|
export function createSalesPriceRequestFromDiscriminatorValue(parseNode) {
|
|
89
125
|
return deserializeIntoSalesPriceRequest;
|
|
90
126
|
}
|
|
@@ -97,6 +133,20 @@ export function deserializeIntoArchivingInfo(archivingInfo = {}) {
|
|
|
97
133
|
"isArchived": n => { archivingInfo.isArchived = n.getBooleanValue(); },
|
|
98
134
|
};
|
|
99
135
|
}
|
|
136
|
+
export function deserializeIntoAttributeFactDto(attributeFactDto = {}) {
|
|
137
|
+
return {
|
|
138
|
+
"boolean": n => { attributeFactDto.boolean = n.getBooleanValue(); },
|
|
139
|
+
"date": n => { attributeFactDto.date = n.getDateOnlyValue(); },
|
|
140
|
+
"number": n => { attributeFactDto.number = n.getNumberValue(); },
|
|
141
|
+
"optionId": n => { attributeFactDto.optionId = n.getGuidValue(); },
|
|
142
|
+
"optionIds": n => { attributeFactDto.optionIds = n.getCollectionOfPrimitiveValues("string"); },
|
|
143
|
+
"text": n => { attributeFactDto.text = n.getStringValue(); },
|
|
144
|
+
"translations": n => { attributeFactDto.translations = n.getObjectValue(createAttributeFactDto_translationsFromDiscriminatorValue); },
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
export function deserializeIntoAttributeFactDto_translations(attributeFactDto_translations = {}) {
|
|
148
|
+
return {};
|
|
149
|
+
}
|
|
100
150
|
export function deserializeIntoBrowser(browser = {}) {
|
|
101
151
|
return {
|
|
102
152
|
"acceptLanguage": n => { browser.acceptLanguage = n.getStringValue(); },
|
|
@@ -253,6 +303,7 @@ export function deserializeIntoProduct(product = {}) {
|
|
|
253
303
|
"allowedCountries": n => { product.allowedCountries = n.getCollectionOfPrimitiveValues("string"); },
|
|
254
304
|
"allowedRegions": n => { product.allowedRegions = n.getCollectionOfPrimitiveValues("string"); },
|
|
255
305
|
"canBeReserved": n => { product.canBeReserved = n.getBooleanValue(); },
|
|
306
|
+
"family": n => { product.family = n.getObjectValue(createProductFamilyReferenceFromDiscriminatorValue); },
|
|
256
307
|
"id": n => { product.id = n.getGuidValue(); },
|
|
257
308
|
"msrp": n => { product.msrp = n.getObjectValue(createMoneyFromDiscriminatorValue); },
|
|
258
309
|
"name": n => { product.name = n.getStringValue(); },
|
|
@@ -265,6 +316,47 @@ export function deserializeIntoProduct(product = {}) {
|
|
|
265
316
|
"valueType": n => { product.valueType = n.getNumberValue(); },
|
|
266
317
|
};
|
|
267
318
|
}
|
|
319
|
+
export function deserializeIntoProductAttributeDefinitionDto(productAttributeDefinitionDto = {}) {
|
|
320
|
+
return {
|
|
321
|
+
"id": n => { productAttributeDefinitionDto.id = n.getGuidValue(); },
|
|
322
|
+
"labels": n => { productAttributeDefinitionDto.labels = n.getObjectValue(createProductAttributeDefinitionDto_labelsFromDiscriminatorValue); },
|
|
323
|
+
"options": n => { productAttributeDefinitionDto.options = n.getCollectionOfObjectValues(createProductAttributeOptionDtoFromDiscriminatorValue); },
|
|
324
|
+
"publisherId": n => { productAttributeDefinitionDto.publisherId = n.getGuidValue(); },
|
|
325
|
+
"textIsTranslated": n => { productAttributeDefinitionDto.textIsTranslated = n.getBooleanValue(); },
|
|
326
|
+
"valueType": n => { productAttributeDefinitionDto.valueType = n.getNumberValue(); },
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
export function deserializeIntoProductAttributeDefinitionDto_labels(productAttributeDefinitionDto_labels = {}) {
|
|
330
|
+
return {};
|
|
331
|
+
}
|
|
332
|
+
export function deserializeIntoProductAttributeDto(productAttributeDto = {}) {
|
|
333
|
+
return {
|
|
334
|
+
"definition": n => { productAttributeDto.definition = n.getObjectValue(createProductAttributeDefinitionDtoFromDiscriminatorValue); },
|
|
335
|
+
"values": n => { productAttributeDto.values = n.getCollectionOfObjectValues(createProductAttributeValueDtoFromDiscriminatorValue); },
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
export function deserializeIntoProductAttributeOptionDto(productAttributeOptionDto = {}) {
|
|
339
|
+
return {
|
|
340
|
+
"id": n => { productAttributeOptionDto.id = n.getGuidValue(); },
|
|
341
|
+
"labels": n => { productAttributeOptionDto.labels = n.getObjectValue(createProductAttributeOptionDto_labelsFromDiscriminatorValue); },
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
export function deserializeIntoProductAttributeOptionDto_labels(productAttributeOptionDto_labels = {}) {
|
|
345
|
+
return {};
|
|
346
|
+
}
|
|
347
|
+
export function deserializeIntoProductAttributeValueDto(productAttributeValueDto = {}) {
|
|
348
|
+
return {
|
|
349
|
+
"countryCode": n => { productAttributeValueDto.countryCode = n.getStringValue(); },
|
|
350
|
+
"definitionId": n => { productAttributeValueDto.definitionId = n.getGuidValue(); },
|
|
351
|
+
"fact": n => { productAttributeValueDto.fact = n.getObjectValue(createAttributeFactDtoFromDiscriminatorValue); },
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
export function deserializeIntoProductFamilyReference(productFamilyReference = {}) {
|
|
355
|
+
return {
|
|
356
|
+
"id": n => { productFamilyReference.id = n.getGuidValue(); },
|
|
357
|
+
"name": n => { productFamilyReference.name = n.getStringValue(); },
|
|
358
|
+
};
|
|
359
|
+
}
|
|
268
360
|
export function deserializeIntoProductListResult(productListResult = {}) {
|
|
269
361
|
return {
|
|
270
362
|
"pageCount": n => { productListResult.pageCount = n.getNumberValue(); },
|
|
@@ -327,6 +419,32 @@ export function deserializeIntoReservation(reservation = {}) {
|
|
|
327
419
|
"statusId": n => { reservation.statusId = n.getNumberValue(); },
|
|
328
420
|
};
|
|
329
421
|
}
|
|
422
|
+
export function deserializeIntoResolvedAttributeTextDto(resolvedAttributeTextDto = {}) {
|
|
423
|
+
return {
|
|
424
|
+
"languageCode": n => { resolvedAttributeTextDto.languageCode = n.getStringValue(); },
|
|
425
|
+
"text": n => { resolvedAttributeTextDto.text = n.getStringValue(); },
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
export function deserializeIntoResolvedProductAttributeDto(resolvedProductAttributeDto = {}) {
|
|
429
|
+
return {
|
|
430
|
+
"countryCode": n => { resolvedProductAttributeDto.countryCode = n.getStringValue(); },
|
|
431
|
+
"definitionId": n => { resolvedProductAttributeDto.definitionId = n.getGuidValue(); },
|
|
432
|
+
"fact": n => { resolvedProductAttributeDto.fact = n.getObjectValue(createAttributeFactDtoFromDiscriminatorValue); },
|
|
433
|
+
"hasSource": n => { resolvedProductAttributeDto.hasSource = n.getBooleanValue(); },
|
|
434
|
+
"label": n => { resolvedProductAttributeDto.label = n.getObjectValue(createResolvedAttributeTextDtoFromDiscriminatorValue); },
|
|
435
|
+
"languageCode": n => { resolvedProductAttributeDto.languageCode = n.getStringValue(); },
|
|
436
|
+
"options": n => { resolvedProductAttributeDto.options = n.getCollectionOfObjectValues(createResolvedProductAttributeOptionDtoFromDiscriminatorValue); },
|
|
437
|
+
"publisherId": n => { resolvedProductAttributeDto.publisherId = n.getGuidValue(); },
|
|
438
|
+
"textIsTranslated": n => { resolvedProductAttributeDto.textIsTranslated = n.getBooleanValue(); },
|
|
439
|
+
"valueType": n => { resolvedProductAttributeDto.valueType = n.getNumberValue(); },
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
export function deserializeIntoResolvedProductAttributeOptionDto(resolvedProductAttributeOptionDto = {}) {
|
|
443
|
+
return {
|
|
444
|
+
"id": n => { resolvedProductAttributeOptionDto.id = n.getGuidValue(); },
|
|
445
|
+
"label": n => { resolvedProductAttributeOptionDto.label = n.getObjectValue(createResolvedAttributeTextDtoFromDiscriminatorValue); },
|
|
446
|
+
};
|
|
447
|
+
}
|
|
330
448
|
export function deserializeIntoSalesPriceRequest(salesPriceRequest = {}) {
|
|
331
449
|
return {
|
|
332
450
|
"deductions": n => { salesPriceRequest.deductions = n.getCollectionOfObjectValues(createDeductionFromDiscriminatorValue); },
|
|
@@ -348,6 +466,24 @@ export function serializeArchivingInfo(writer, archivingInfo = {}, isSerializing
|
|
|
348
466
|
writer.writeDateValue("archivedOnUtc", archivingInfo.archivedOnUtc);
|
|
349
467
|
writer.writeBooleanValue("isArchived", archivingInfo.isArchived);
|
|
350
468
|
}
|
|
469
|
+
export function serializeAttributeFactDto(writer, attributeFactDto = {}, isSerializingDerivedType = false) {
|
|
470
|
+
if (!attributeFactDto || isSerializingDerivedType) {
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
writer.writeBooleanValue("boolean", attributeFactDto.boolean);
|
|
474
|
+
writer.writeDateOnlyValue("date", attributeFactDto.date);
|
|
475
|
+
writer.writeNumberValue("number", attributeFactDto.number);
|
|
476
|
+
writer.writeGuidValue("optionId", attributeFactDto.optionId);
|
|
477
|
+
writer.writeCollectionOfPrimitiveValues("optionIds", attributeFactDto.optionIds);
|
|
478
|
+
writer.writeStringValue("text", attributeFactDto.text);
|
|
479
|
+
writer.writeObjectValue("translations", attributeFactDto.translations, serializeAttributeFactDto_translations);
|
|
480
|
+
}
|
|
481
|
+
export function serializeAttributeFactDto_translations(writer, attributeFactDto_translations = {}, isSerializingDerivedType = false) {
|
|
482
|
+
if (!attributeFactDto_translations || isSerializingDerivedType) {
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
writer.writeAdditionalData(attributeFactDto_translations.additionalData);
|
|
486
|
+
}
|
|
351
487
|
export function serializeBrowser(writer, browser = {}, isSerializingDerivedType = false) {
|
|
352
488
|
if (!browser || isSerializingDerivedType) {
|
|
353
489
|
return;
|
|
@@ -526,6 +662,7 @@ export function serializeProduct(writer, product = {}, isSerializingDerivedType
|
|
|
526
662
|
writer.writeCollectionOfPrimitiveValues("allowedCountries", product.allowedCountries);
|
|
527
663
|
writer.writeCollectionOfPrimitiveValues("allowedRegions", product.allowedRegions);
|
|
528
664
|
writer.writeBooleanValue("canBeReserved", product.canBeReserved);
|
|
665
|
+
writer.writeObjectValue("family", product.family, serializeProductFamilyReference);
|
|
529
666
|
writer.writeGuidValue("id", product.id);
|
|
530
667
|
writer.writeObjectValue("msrp", product.msrp, serializeMoney);
|
|
531
668
|
writer.writeStringValue("name", product.name);
|
|
@@ -537,6 +674,58 @@ export function serializeProduct(writer, product = {}, isSerializingDerivedType
|
|
|
537
674
|
writer.writeDateValue("releaseDate", product.releaseDate);
|
|
538
675
|
writer.writeNumberValue("valueType", product.valueType);
|
|
539
676
|
}
|
|
677
|
+
export function serializeProductAttributeDefinitionDto(writer, productAttributeDefinitionDto = {}, isSerializingDerivedType = false) {
|
|
678
|
+
if (!productAttributeDefinitionDto || isSerializingDerivedType) {
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
writer.writeGuidValue("id", productAttributeDefinitionDto.id);
|
|
682
|
+
writer.writeObjectValue("labels", productAttributeDefinitionDto.labels, serializeProductAttributeDefinitionDto_labels);
|
|
683
|
+
writer.writeCollectionOfObjectValues("options", productAttributeDefinitionDto.options, serializeProductAttributeOptionDto);
|
|
684
|
+
writer.writeGuidValue("publisherId", productAttributeDefinitionDto.publisherId);
|
|
685
|
+
writer.writeBooleanValue("textIsTranslated", productAttributeDefinitionDto.textIsTranslated);
|
|
686
|
+
writer.writeNumberValue("valueType", productAttributeDefinitionDto.valueType);
|
|
687
|
+
}
|
|
688
|
+
export function serializeProductAttributeDefinitionDto_labels(writer, productAttributeDefinitionDto_labels = {}, isSerializingDerivedType = false) {
|
|
689
|
+
if (!productAttributeDefinitionDto_labels || isSerializingDerivedType) {
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
writer.writeAdditionalData(productAttributeDefinitionDto_labels.additionalData);
|
|
693
|
+
}
|
|
694
|
+
export function serializeProductAttributeDto(writer, productAttributeDto = {}, isSerializingDerivedType = false) {
|
|
695
|
+
if (!productAttributeDto || isSerializingDerivedType) {
|
|
696
|
+
return;
|
|
697
|
+
}
|
|
698
|
+
writer.writeObjectValue("definition", productAttributeDto.definition, serializeProductAttributeDefinitionDto);
|
|
699
|
+
writer.writeCollectionOfObjectValues("values", productAttributeDto.values, serializeProductAttributeValueDto);
|
|
700
|
+
}
|
|
701
|
+
export function serializeProductAttributeOptionDto(writer, productAttributeOptionDto = {}, isSerializingDerivedType = false) {
|
|
702
|
+
if (!productAttributeOptionDto || isSerializingDerivedType) {
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
writer.writeGuidValue("id", productAttributeOptionDto.id);
|
|
706
|
+
writer.writeObjectValue("labels", productAttributeOptionDto.labels, serializeProductAttributeOptionDto_labels);
|
|
707
|
+
}
|
|
708
|
+
export function serializeProductAttributeOptionDto_labels(writer, productAttributeOptionDto_labels = {}, isSerializingDerivedType = false) {
|
|
709
|
+
if (!productAttributeOptionDto_labels || isSerializingDerivedType) {
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
writer.writeAdditionalData(productAttributeOptionDto_labels.additionalData);
|
|
713
|
+
}
|
|
714
|
+
export function serializeProductAttributeValueDto(writer, productAttributeValueDto = {}, isSerializingDerivedType = false) {
|
|
715
|
+
if (!productAttributeValueDto || isSerializingDerivedType) {
|
|
716
|
+
return;
|
|
717
|
+
}
|
|
718
|
+
writer.writeStringValue("countryCode", productAttributeValueDto.countryCode);
|
|
719
|
+
writer.writeGuidValue("definitionId", productAttributeValueDto.definitionId);
|
|
720
|
+
writer.writeObjectValue("fact", productAttributeValueDto.fact, serializeAttributeFactDto);
|
|
721
|
+
}
|
|
722
|
+
export function serializeProductFamilyReference(writer, productFamilyReference = {}, isSerializingDerivedType = false) {
|
|
723
|
+
if (!productFamilyReference || isSerializingDerivedType) {
|
|
724
|
+
return;
|
|
725
|
+
}
|
|
726
|
+
writer.writeGuidValue("id", productFamilyReference.id);
|
|
727
|
+
writer.writeStringValue("name", productFamilyReference.name);
|
|
728
|
+
}
|
|
540
729
|
export function serializeProductListResult(writer, productListResult = {}, isSerializingDerivedType = false) {
|
|
541
730
|
if (!productListResult || isSerializingDerivedType) {
|
|
542
731
|
return;
|
|
@@ -607,6 +796,35 @@ export function serializeReservation(writer, reservation = {}, isSerializingDeri
|
|
|
607
796
|
writer.writeStringValue("statusDescription", reservation.statusDescription);
|
|
608
797
|
writer.writeNumberValue("statusId", reservation.statusId);
|
|
609
798
|
}
|
|
799
|
+
export function serializeResolvedAttributeTextDto(writer, resolvedAttributeTextDto = {}, isSerializingDerivedType = false) {
|
|
800
|
+
if (!resolvedAttributeTextDto || isSerializingDerivedType) {
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
writer.writeStringValue("languageCode", resolvedAttributeTextDto.languageCode);
|
|
804
|
+
writer.writeStringValue("text", resolvedAttributeTextDto.text);
|
|
805
|
+
}
|
|
806
|
+
export function serializeResolvedProductAttributeDto(writer, resolvedProductAttributeDto = {}, isSerializingDerivedType = false) {
|
|
807
|
+
if (!resolvedProductAttributeDto || isSerializingDerivedType) {
|
|
808
|
+
return;
|
|
809
|
+
}
|
|
810
|
+
writer.writeStringValue("countryCode", resolvedProductAttributeDto.countryCode);
|
|
811
|
+
writer.writeGuidValue("definitionId", resolvedProductAttributeDto.definitionId);
|
|
812
|
+
writer.writeObjectValue("fact", resolvedProductAttributeDto.fact, serializeAttributeFactDto);
|
|
813
|
+
writer.writeBooleanValue("hasSource", resolvedProductAttributeDto.hasSource);
|
|
814
|
+
writer.writeObjectValue("label", resolvedProductAttributeDto.label, serializeResolvedAttributeTextDto);
|
|
815
|
+
writer.writeStringValue("languageCode", resolvedProductAttributeDto.languageCode);
|
|
816
|
+
writer.writeCollectionOfObjectValues("options", resolvedProductAttributeDto.options, serializeResolvedProductAttributeOptionDto);
|
|
817
|
+
writer.writeGuidValue("publisherId", resolvedProductAttributeDto.publisherId);
|
|
818
|
+
writer.writeBooleanValue("textIsTranslated", resolvedProductAttributeDto.textIsTranslated);
|
|
819
|
+
writer.writeNumberValue("valueType", resolvedProductAttributeDto.valueType);
|
|
820
|
+
}
|
|
821
|
+
export function serializeResolvedProductAttributeOptionDto(writer, resolvedProductAttributeOptionDto = {}, isSerializingDerivedType = false) {
|
|
822
|
+
if (!resolvedProductAttributeOptionDto || isSerializingDerivedType) {
|
|
823
|
+
return;
|
|
824
|
+
}
|
|
825
|
+
writer.writeGuidValue("id", resolvedProductAttributeOptionDto.id);
|
|
826
|
+
writer.writeObjectValue("label", resolvedProductAttributeOptionDto.label, serializeResolvedAttributeTextDto);
|
|
827
|
+
}
|
|
610
828
|
export function serializeSalesPriceRequest(writer, salesPriceRequest = {}, isSerializingDerivedType = false) {
|
|
611
829
|
if (!salesPriceRequest || isSerializingDerivedType) {
|
|
612
830
|
return;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ProductAttributeDto } from '../../../models/index.js';
|
|
2
|
+
import { type ResolvedRequestBuilder } from './resolved/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
export interface AttributesRequestBuilder extends BaseRequestBuilder<AttributesRequestBuilder> {
|
|
5
|
+
get resolved(): ResolvedRequestBuilder;
|
|
6
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProductAttributeDto[] | undefined>;
|
|
7
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
8
|
+
}
|
|
9
|
+
export declare const AttributesRequestBuilderUriTemplate = "{+baseurl}/Product/{productId}/attributes";
|
|
10
|
+
export declare const AttributesRequestBuilderNavigationMetadata: Record<Exclude<keyof AttributesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
11
|
+
export declare const AttributesRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createProblemDetailsFromDiscriminatorValue, createProductAttributeDtoFromDiscriminatorValue } from '../../../models/index.js';
|
|
2
|
+
import { ResolvedRequestBuilderRequestsMetadata } from './resolved/index.js';
|
|
3
|
+
export const AttributesRequestBuilderUriTemplate = "{+baseurl}/Product/{productId}/attributes";
|
|
4
|
+
export const AttributesRequestBuilderNavigationMetadata = {
|
|
5
|
+
resolved: {
|
|
6
|
+
requestsMetadata: ResolvedRequestBuilderRequestsMetadata,
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
export const AttributesRequestBuilderRequestsMetadata = {
|
|
10
|
+
get: {
|
|
11
|
+
uriTemplate: AttributesRequestBuilderUriTemplate,
|
|
12
|
+
responseBodyContentType: "text/plain;q=0.9",
|
|
13
|
+
errorMappings: {
|
|
14
|
+
400: createProblemDetailsFromDiscriminatorValue,
|
|
15
|
+
500: createProblemDetailsFromDiscriminatorValue,
|
|
16
|
+
},
|
|
17
|
+
adapterMethodName: "sendCollection",
|
|
18
|
+
responseBodyFactory: createProductAttributeDtoFromDiscriminatorValue,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ResolvedProductAttributeDto } from '../../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
export interface ResolvedRequestBuilder extends BaseRequestBuilder<ResolvedRequestBuilder> {
|
|
4
|
+
get(requestConfiguration?: RequestConfiguration<ResolvedRequestBuilderGetQueryParameters> | undefined): Promise<ResolvedProductAttributeDto[] | undefined>;
|
|
5
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ResolvedRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
6
|
+
}
|
|
7
|
+
export interface ResolvedRequestBuilderGetQueryParameters {
|
|
8
|
+
countryCode?: string;
|
|
9
|
+
languageCode?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ResolvedRequestBuilderUriTemplate = "{+baseurl}/Product/{productId}/attributes/resolved?languageCode={languageCode}{&countryCode*}";
|
|
12
|
+
export declare const ResolvedRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createProblemDetailsFromDiscriminatorValue, createResolvedProductAttributeDtoFromDiscriminatorValue } from '../../../../models/index.js';
|
|
2
|
+
export const ResolvedRequestBuilderUriTemplate = "{+baseurl}/Product/{productId}/attributes/resolved?languageCode={languageCode}{&countryCode*}";
|
|
3
|
+
export const ResolvedRequestBuilderRequestsMetadata = {
|
|
4
|
+
get: {
|
|
5
|
+
uriTemplate: ResolvedRequestBuilderUriTemplate,
|
|
6
|
+
responseBodyContentType: "text/plain;q=0.9",
|
|
7
|
+
errorMappings: {
|
|
8
|
+
400: createProblemDetailsFromDiscriminatorValue,
|
|
9
|
+
500: createProblemDetailsFromDiscriminatorValue,
|
|
10
|
+
},
|
|
11
|
+
adapterMethodName: "sendCollection",
|
|
12
|
+
responseBodyFactory: createResolvedProductAttributeDtoFromDiscriminatorValue,
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { type AttributesRequestBuilder } from './attributes/index.js';
|
|
1
2
|
import { type RedemptionInstructionsRequestBuilder } from './redemptionInstructions/index.js';
|
|
2
3
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
3
4
|
export interface WithProductItemRequestBuilder extends BaseRequestBuilder<WithProductItemRequestBuilder> {
|
|
5
|
+
get attributes(): AttributesRequestBuilder;
|
|
4
6
|
get redemptionInstructions(): RedemptionInstructionsRequestBuilder;
|
|
5
7
|
}
|
|
6
8
|
export declare const WithProductItemRequestBuilderUriTemplate = "{+baseurl}/Product/{productId}";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { AttributesRequestBuilderNavigationMetadata, AttributesRequestBuilderRequestsMetadata } from './attributes/index.js';
|
|
1
2
|
import { RedemptionInstructionsRequestBuilderRequestsMetadata } from './redemptionInstructions/index.js';
|
|
2
3
|
export const WithProductItemRequestBuilderUriTemplate = "{+baseurl}/Product/{productId}";
|
|
3
4
|
export const WithProductItemRequestBuilderNavigationMetadata = {
|
|
5
|
+
attributes: {
|
|
6
|
+
requestsMetadata: AttributesRequestBuilderRequestsMetadata,
|
|
7
|
+
navigationMetadata: AttributesRequestBuilderNavigationMetadata,
|
|
8
|
+
},
|
|
4
9
|
redemptionInstructions: {
|
|
5
10
|
requestsMetadata: RedemptionInstructionsRequestBuilderRequestsMetadata,
|
|
6
11
|
},
|
package/package.json
CHANGED