@missioncontrolio/client 0.0.10 → 0.0.12
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/README.md +31 -0
- package/dist/client/clientBuilder.d.ts +7 -1
- package/dist/client/clientBuilder.js +20 -3
- package/dist/client/generated/models/index.d.ts +95 -1
- package/dist/client/generated/models/index.js +240 -0
- package/dist/client/generated/product/index.d.ts +2 -0
- package/dist/client/generated/product/index.js +5 -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 +9 -0
- package/dist/client/generated/product/item/index.js +12 -0
- package/dist/client/generated/product/item/redemptionInstructions/index.d.ts +8 -0
- package/dist/client/generated/product/item/redemptionInstructions/index.js +15 -0
- package/dist/client/generatedAssets/assetPack/index.d.ts +7 -0
- package/dist/client/generatedAssets/assetPack/index.js +8 -0
- package/dist/client/generatedAssets/assetPack/item/index.d.ts +7 -0
- package/dist/client/generatedAssets/assetPack/item/index.js +9 -0
- package/dist/client/generatedAssets/assetPack/item/item/index.d.ts +11 -0
- package/dist/client/generatedAssets/assetPack/item/item/index.js +21 -0
- package/dist/client/generatedAssets/assetPack/item/item/item/index.d.ts +8 -0
- package/dist/client/generatedAssets/assetPack/item/item/item/index.js +14 -0
- package/dist/client/generatedAssets/assetsClient.d.ts +8 -0
- package/dist/client/generatedAssets/assetsClient.js +38 -0
- package/dist/client/generatedAssets/models/index.d.ts +54 -0
- package/dist/client/generatedAssets/models/index.js +117 -0
- package/dist/client/missionControlEnvironment.d.ts +1 -0
- package/dist/client/missionControlEnvironment.js +5 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,6 +65,18 @@ const response = await client.product.hasStock.post({
|
|
|
65
65
|
console.log(response?.hasStock ? "In stock" : "Out of stock");
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
+
### Get redemption instructions
|
|
69
|
+
|
|
70
|
+
Retrieve a product's redemption instructions (one entry per language) before placing an order.
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
const instructions = await client.product.byProductId(productId).redemptionInstructions.get();
|
|
74
|
+
|
|
75
|
+
for (const instruction of instructions ?? []) {
|
|
76
|
+
console.log(`${instruction.languageCode}: ${instruction.text}`);
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
68
80
|
### Reserve → claim (place an order)
|
|
69
81
|
|
|
70
82
|
```ts
|
|
@@ -102,6 +114,24 @@ console.log(`Order ${order!.id} placed.`);
|
|
|
102
114
|
await client.reservation.byReservationId(reservation!.id!).cancel.post();
|
|
103
115
|
```
|
|
104
116
|
|
|
117
|
+
### Get asset packs
|
|
118
|
+
|
|
119
|
+
Asset packs hold the images, logos and other marketing assets publishers provide for a product. They are served by the Assets API, available on `client.assets`.
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
const product = client.assets.assetPack.byPublisherId(publisherId).byProductId(productId);
|
|
123
|
+
const packs = await product.get();
|
|
124
|
+
|
|
125
|
+
for (const pack of packs?.result ?? []) {
|
|
126
|
+
// Fetch a pack to get its assets.
|
|
127
|
+
const detail = await product.byAssetPackId(pack.id!).get();
|
|
128
|
+
|
|
129
|
+
for (const asset of detail?.assets ?? []) {
|
|
130
|
+
console.log(`${asset.fileName} ${asset.url}`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
105
135
|
### Filtering and pagination
|
|
106
136
|
|
|
107
137
|
All list endpoints accept an optional `queryParameters` object for filtering and pagination. Every parameter is optional — only set what you need.
|
|
@@ -137,6 +167,7 @@ const result = await client.product.get({
|
|
|
137
167
|
| `withDefaultPartnerId(partnerId)` | Set the `X-Partner-Id` header for every request |
|
|
138
168
|
| `forEnvironment(env)` | Target `Sandbox` or `Production` |
|
|
139
169
|
| `withBaseUrl(url)` | Override the base URL (e.g. for local development) |
|
|
170
|
+
| `withAssetsBaseUrl(url)` | Override the base URL of the Assets API |
|
|
140
171
|
| `withScope(scope)` | Override the OAuth scope |
|
|
141
172
|
| `build()` | Return the configured `Client` instance |
|
|
142
173
|
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { MissionControlEnvironment } from "./missionControlEnvironment.js";
|
|
2
2
|
import { type Client } from "./generated/client.js";
|
|
3
|
+
import { type AssetsClient } from "./generatedAssets/assetsClient.js";
|
|
4
|
+
export type MissionControlClient = Client & {
|
|
5
|
+
readonly assets: AssetsClient;
|
|
6
|
+
};
|
|
3
7
|
export declare class ClientBuilder {
|
|
4
8
|
private _baseUrl;
|
|
9
|
+
private _assetsBaseUrl;
|
|
5
10
|
private _scope;
|
|
6
11
|
private _tenantId;
|
|
7
12
|
private _clientId?;
|
|
@@ -9,8 +14,9 @@ export declare class ClientBuilder {
|
|
|
9
14
|
private _defaultPartnerId?;
|
|
10
15
|
withDefaultPartnerId(partnerId: string): this;
|
|
11
16
|
withBaseUrl(baseUrl: string): this;
|
|
17
|
+
withAssetsBaseUrl(assetsBaseUrl: string): this;
|
|
12
18
|
withScope(scope: string): this;
|
|
13
19
|
forEnvironment(environment: MissionControlEnvironment): this;
|
|
14
20
|
withAzureAdClientCredentials(clientId: string, clientSecret: string, tenantId?: string): this;
|
|
15
|
-
build():
|
|
21
|
+
build(): MissionControlClient;
|
|
16
22
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ClientSecretCredential } from "@azure/identity";
|
|
2
2
|
import { AzureIdentityAuthenticationProvider } from "@microsoft/kiota-authentication-azure";
|
|
3
3
|
import { FetchRequestAdapter, KiotaClientFactory, } from "@microsoft/kiota-http-fetchlibrary";
|
|
4
|
-
import { getBaseUrl, getScope, MissionControlEnvironment, } from "./missionControlEnvironment.js";
|
|
4
|
+
import { getAssetsBaseUrl, getBaseUrl, getScope, MissionControlEnvironment, } from "./missionControlEnvironment.js";
|
|
5
5
|
import { createClient } from "./generated/client.js";
|
|
6
|
+
import { createAssetsClient } from "./generatedAssets/assetsClient.js";
|
|
6
7
|
import { createHandlers } from "./missionControlHandlers.js";
|
|
7
8
|
export class ClientBuilder {
|
|
8
9
|
constructor() {
|
|
9
10
|
this._baseUrl = getBaseUrl(MissionControlEnvironment.Production);
|
|
11
|
+
this._assetsBaseUrl = getAssetsBaseUrl(MissionControlEnvironment.Production);
|
|
10
12
|
this._scope = getScope(MissionControlEnvironment.Production);
|
|
11
13
|
this._tenantId = "13d084c1-d072-41f2-878b-c45ca721c9f6";
|
|
12
14
|
}
|
|
@@ -22,6 +24,12 @@ export class ClientBuilder {
|
|
|
22
24
|
this._baseUrl = baseUrl;
|
|
23
25
|
return this;
|
|
24
26
|
}
|
|
27
|
+
withAssetsBaseUrl(assetsBaseUrl) {
|
|
28
|
+
if (!assetsBaseUrl?.trim())
|
|
29
|
+
throw new Error("assetsBaseUrl must not be null or whitespace.");
|
|
30
|
+
this._assetsBaseUrl = assetsBaseUrl;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
25
33
|
withScope(scope) {
|
|
26
34
|
if (!scope?.trim())
|
|
27
35
|
throw new Error("scope must not be null or whitespace.");
|
|
@@ -30,6 +38,7 @@ export class ClientBuilder {
|
|
|
30
38
|
}
|
|
31
39
|
forEnvironment(environment) {
|
|
32
40
|
this._baseUrl = getBaseUrl(environment);
|
|
41
|
+
this._assetsBaseUrl = getAssetsBaseUrl(environment);
|
|
33
42
|
this._scope = getScope(environment);
|
|
34
43
|
return this;
|
|
35
44
|
}
|
|
@@ -46,12 +55,20 @@ export class ClientBuilder {
|
|
|
46
55
|
"Call withAzureAdClientCredentials() before calling build().");
|
|
47
56
|
}
|
|
48
57
|
const credential = new ClientSecretCredential(this._tenantId, this._clientId, this._clientSecret);
|
|
49
|
-
const allowedHosts = new Set([
|
|
58
|
+
const allowedHosts = new Set([
|
|
59
|
+
new URL(this._baseUrl).host,
|
|
60
|
+
new URL(this._assetsBaseUrl).host,
|
|
61
|
+
]);
|
|
50
62
|
const authProvider = new AzureIdentityAuthenticationProvider(credential, [this._scope], undefined, allowedHosts);
|
|
51
63
|
const middlewares = createHandlers(this._defaultPartnerId);
|
|
52
64
|
const httpClient = KiotaClientFactory.create(undefined, middlewares);
|
|
53
65
|
const adapter = new FetchRequestAdapter(authProvider, undefined, undefined, httpClient);
|
|
54
66
|
adapter.baseUrl = this._baseUrl;
|
|
55
|
-
|
|
67
|
+
const assetsAdapter = new FetchRequestAdapter(authProvider, undefined, undefined, httpClient);
|
|
68
|
+
assetsAdapter.baseUrl = this._assetsBaseUrl;
|
|
69
|
+
const assets = createAssetsClient(assetsAdapter);
|
|
70
|
+
return new Proxy(createClient(adapter), {
|
|
71
|
+
get: (target, property, receiver) => property === "assets" ? assets : Reflect.get(target, property, receiver),
|
|
72
|
+
});
|
|
56
73
|
}
|
|
57
74
|
}
|
|
@@ -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>);
|
|
@@ -45,6 +58,7 @@ export interface CreateOrderRequest extends Parsable {
|
|
|
45
58
|
invoiceDate?: Date | null;
|
|
46
59
|
partnerReference?: string | null;
|
|
47
60
|
productId?: Guid | null;
|
|
61
|
+
productValue?: Money | null;
|
|
48
62
|
regionId?: Guid | null;
|
|
49
63
|
requestId?: Guid | null;
|
|
50
64
|
salesChannel?: Guid[] | null;
|
|
@@ -55,6 +69,12 @@ export declare function createPartnerListResultFromDiscriminatorValue(parseNode:
|
|
|
55
69
|
export declare function createPriceListFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
56
70
|
export declare function createPriceListItemFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
57
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>);
|
|
58
78
|
export declare function createProductFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
59
79
|
export declare function createProductListResultFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
60
80
|
export declare function createPublisherFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
@@ -69,6 +89,9 @@ export interface CreateReservationRequest extends Parsable {
|
|
|
69
89
|
productId?: Guid | null;
|
|
70
90
|
regionId?: Guid | null;
|
|
71
91
|
}
|
|
92
|
+
export declare function createResolvedAttributeTextDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
93
|
+
export declare function createResolvedProductAttributeDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
94
|
+
export declare function createResolvedProductAttributeOptionDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
72
95
|
export declare function createSalesPriceRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
73
96
|
export declare function createVatDetailFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
74
97
|
export interface Deduction extends Parsable {
|
|
@@ -77,6 +100,8 @@ export interface Deduction extends Parsable {
|
|
|
77
100
|
type?: number | null;
|
|
78
101
|
}
|
|
79
102
|
export declare function deserializeIntoArchivingInfo(archivingInfo?: Partial<ArchivingInfo> | undefined): Record<string, (node: ParseNode) => void>;
|
|
103
|
+
export declare function deserializeIntoAttributeFactDto(attributeFactDto?: Partial<AttributeFactDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
104
|
+
export declare function deserializeIntoAttributeFactDto_translations(attributeFactDto_translations?: Partial<AttributeFactDto_translations> | undefined): Record<string, (node: ParseNode) => void>;
|
|
80
105
|
export declare function deserializeIntoBrowser(browser?: Partial<Browser> | undefined): Record<string, (node: ParseNode) => void>;
|
|
81
106
|
export declare function deserializeIntoCancelOrderRequest(cancelOrderRequest?: Partial<CancelOrderRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
82
107
|
export declare function deserializeIntoClaimReservationRequest(claimReservationRequest?: Partial<ClaimReservationRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
@@ -97,6 +122,12 @@ export declare function deserializeIntoPriceList(priceList?: Partial<PriceList>
|
|
|
97
122
|
export declare function deserializeIntoPriceListItem(priceListItem?: Partial<PriceListItem> | undefined): Record<string, (node: ParseNode) => void>;
|
|
98
123
|
export declare function deserializeIntoProblemDetails(problemDetails?: Partial<ProblemDetails> | undefined): Record<string, (node: ParseNode) => void>;
|
|
99
124
|
export declare function deserializeIntoProduct(product?: Partial<Product> | undefined): Record<string, (node: ParseNode) => void>;
|
|
125
|
+
export declare function deserializeIntoProductAttributeDefinitionDto(productAttributeDefinitionDto?: Partial<ProductAttributeDefinitionDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
126
|
+
export declare function deserializeIntoProductAttributeDefinitionDto_labels(productAttributeDefinitionDto_labels?: Partial<ProductAttributeDefinitionDto_labels> | undefined): Record<string, (node: ParseNode) => void>;
|
|
127
|
+
export declare function deserializeIntoProductAttributeDto(productAttributeDto?: Partial<ProductAttributeDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
128
|
+
export declare function deserializeIntoProductAttributeOptionDto(productAttributeOptionDto?: Partial<ProductAttributeOptionDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
129
|
+
export declare function deserializeIntoProductAttributeOptionDto_labels(productAttributeOptionDto_labels?: Partial<ProductAttributeOptionDto_labels> | undefined): Record<string, (node: ParseNode) => void>;
|
|
130
|
+
export declare function deserializeIntoProductAttributeValueDto(productAttributeValueDto?: Partial<ProductAttributeValueDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
100
131
|
export declare function deserializeIntoProductListResult(productListResult?: Partial<ProductListResult> | undefined): Record<string, (node: ParseNode) => void>;
|
|
101
132
|
export declare function deserializeIntoPublisher(publisher?: Partial<Publisher> | undefined): Record<string, (node: ParseNode) => void>;
|
|
102
133
|
export declare function deserializeIntoPublisherListResult(publisherListResult?: Partial<PublisherListResult> | undefined): Record<string, (node: ParseNode) => void>;
|
|
@@ -105,6 +136,9 @@ export declare function deserializeIntoRegion(region?: Partial<Region> | undefin
|
|
|
105
136
|
export declare function deserializeIntoRegionListResult(regionListResult?: Partial<RegionListResult> | undefined): Record<string, (node: ParseNode) => void>;
|
|
106
137
|
export declare function deserializeIntoReportOrderRequest(reportOrderRequest?: Partial<ReportOrderRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
107
138
|
export declare function deserializeIntoReservation(reservation?: Partial<Reservation> | undefined): Record<string, (node: ParseNode) => void>;
|
|
139
|
+
export declare function deserializeIntoResolvedAttributeTextDto(resolvedAttributeTextDto?: Partial<ResolvedAttributeTextDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
140
|
+
export declare function deserializeIntoResolvedProductAttributeDto(resolvedProductAttributeDto?: Partial<ResolvedProductAttributeDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
141
|
+
export declare function deserializeIntoResolvedProductAttributeOptionDto(resolvedProductAttributeOptionDto?: Partial<ResolvedProductAttributeOptionDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
108
142
|
export declare function deserializeIntoSalesPriceRequest(salesPriceRequest?: Partial<SalesPriceRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
109
143
|
export declare function deserializeIntoVatDetail(vatDetail?: Partial<VatDetail> | undefined): Record<string, (node: ParseNode) => void>;
|
|
110
144
|
export interface HasStockRequest extends Parsable {
|
|
@@ -137,6 +171,7 @@ export interface Order extends Parsable {
|
|
|
137
171
|
partnerReference?: string | null;
|
|
138
172
|
productId?: Guid | null;
|
|
139
173
|
productName?: string | null;
|
|
174
|
+
productValue?: Money | null;
|
|
140
175
|
publisherId?: Guid | null;
|
|
141
176
|
redemptionInstruction?: RedemptionInstruction | null;
|
|
142
177
|
regionId?: Guid | null;
|
|
@@ -153,6 +188,7 @@ export interface OrderListResult extends Parsable {
|
|
|
153
188
|
export interface Partner extends Parsable {
|
|
154
189
|
hubSpotUrl?: string | null;
|
|
155
190
|
id?: Guid | null;
|
|
191
|
+
imageUrl?: string | null;
|
|
156
192
|
name?: string | null;
|
|
157
193
|
}
|
|
158
194
|
export interface PartnerListResult extends Parsable {
|
|
@@ -176,6 +212,7 @@ export interface ProblemDetails extends AdditionalDataHolder, ApiError, Parsable
|
|
|
176
212
|
type?: string | null;
|
|
177
213
|
}
|
|
178
214
|
export interface Product extends Parsable {
|
|
215
|
+
allowedCountries?: string[] | null;
|
|
179
216
|
allowedRegions?: Guid[] | null;
|
|
180
217
|
canBeReserved?: boolean | null;
|
|
181
218
|
id?: Guid | null;
|
|
@@ -187,6 +224,32 @@ export interface Product extends Parsable {
|
|
|
187
224
|
productTypeId?: number | null;
|
|
188
225
|
publisherId?: Guid | null;
|
|
189
226
|
releaseDate?: Date | null;
|
|
227
|
+
valueType?: number | null;
|
|
228
|
+
}
|
|
229
|
+
export interface ProductAttributeDefinitionDto extends Parsable {
|
|
230
|
+
id?: Guid | null;
|
|
231
|
+
labels?: ProductAttributeDefinitionDto_labels | null;
|
|
232
|
+
options?: ProductAttributeOptionDto[] | null;
|
|
233
|
+
publisherId?: Guid | null;
|
|
234
|
+
textIsTranslated?: boolean | null;
|
|
235
|
+
valueType?: number | null;
|
|
236
|
+
}
|
|
237
|
+
export interface ProductAttributeDefinitionDto_labels extends AdditionalDataHolder, Parsable {
|
|
238
|
+
}
|
|
239
|
+
export interface ProductAttributeDto extends Parsable {
|
|
240
|
+
definition?: ProductAttributeDefinitionDto | null;
|
|
241
|
+
values?: ProductAttributeValueDto[] | null;
|
|
242
|
+
}
|
|
243
|
+
export interface ProductAttributeOptionDto extends Parsable {
|
|
244
|
+
id?: Guid | null;
|
|
245
|
+
labels?: ProductAttributeOptionDto_labels | null;
|
|
246
|
+
}
|
|
247
|
+
export interface ProductAttributeOptionDto_labels extends AdditionalDataHolder, Parsable {
|
|
248
|
+
}
|
|
249
|
+
export interface ProductAttributeValueDto extends Parsable {
|
|
250
|
+
countryCode?: string | null;
|
|
251
|
+
definitionId?: Guid | null;
|
|
252
|
+
fact?: AttributeFactDto | null;
|
|
190
253
|
}
|
|
191
254
|
export interface ProductListResult extends Parsable {
|
|
192
255
|
pageCount?: number | null;
|
|
@@ -234,12 +297,34 @@ export interface Reservation extends Parsable {
|
|
|
234
297
|
statusDescription?: string | null;
|
|
235
298
|
statusId?: number | null;
|
|
236
299
|
}
|
|
300
|
+
export interface ResolvedAttributeTextDto extends Parsable {
|
|
301
|
+
languageCode?: string | null;
|
|
302
|
+
text?: string | null;
|
|
303
|
+
}
|
|
304
|
+
export interface ResolvedProductAttributeDto extends Parsable {
|
|
305
|
+
countryCode?: string | null;
|
|
306
|
+
definitionId?: Guid | null;
|
|
307
|
+
fact?: AttributeFactDto | null;
|
|
308
|
+
hasSource?: boolean | null;
|
|
309
|
+
label?: ResolvedAttributeTextDto | null;
|
|
310
|
+
languageCode?: string | null;
|
|
311
|
+
options?: ResolvedProductAttributeOptionDto[] | null;
|
|
312
|
+
publisherId?: Guid | null;
|
|
313
|
+
textIsTranslated?: boolean | null;
|
|
314
|
+
valueType?: number | null;
|
|
315
|
+
}
|
|
316
|
+
export interface ResolvedProductAttributeOptionDto extends Parsable {
|
|
317
|
+
id?: Guid | null;
|
|
318
|
+
label?: ResolvedAttributeTextDto | null;
|
|
319
|
+
}
|
|
237
320
|
export interface SalesPriceRequest extends Parsable {
|
|
238
321
|
deductions?: Deduction[] | null;
|
|
239
322
|
priceIncludingVat?: Money | null;
|
|
240
323
|
vatDetail?: VatDetail | null;
|
|
241
324
|
}
|
|
242
325
|
export declare function serializeArchivingInfo(writer: SerializationWriter, archivingInfo?: Partial<ArchivingInfo> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
326
|
+
export declare function serializeAttributeFactDto(writer: SerializationWriter, attributeFactDto?: Partial<AttributeFactDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
327
|
+
export declare function serializeAttributeFactDto_translations(writer: SerializationWriter, attributeFactDto_translations?: Partial<AttributeFactDto_translations> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
243
328
|
export declare function serializeBrowser(writer: SerializationWriter, browser?: Partial<Browser> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
244
329
|
export declare function serializeCancelOrderRequest(writer: SerializationWriter, cancelOrderRequest?: Partial<CancelOrderRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
245
330
|
export declare function serializeClaimReservationRequest(writer: SerializationWriter, claimReservationRequest?: Partial<ClaimReservationRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -260,6 +345,12 @@ export declare function serializePriceList(writer: SerializationWriter, priceLis
|
|
|
260
345
|
export declare function serializePriceListItem(writer: SerializationWriter, priceListItem?: Partial<PriceListItem> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
261
346
|
export declare function serializeProblemDetails(writer: SerializationWriter, problemDetails?: Partial<ProblemDetails> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
262
347
|
export declare function serializeProduct(writer: SerializationWriter, product?: Partial<Product> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
348
|
+
export declare function serializeProductAttributeDefinitionDto(writer: SerializationWriter, productAttributeDefinitionDto?: Partial<ProductAttributeDefinitionDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
349
|
+
export declare function serializeProductAttributeDefinitionDto_labels(writer: SerializationWriter, productAttributeDefinitionDto_labels?: Partial<ProductAttributeDefinitionDto_labels> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
350
|
+
export declare function serializeProductAttributeDto(writer: SerializationWriter, productAttributeDto?: Partial<ProductAttributeDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
351
|
+
export declare function serializeProductAttributeOptionDto(writer: SerializationWriter, productAttributeOptionDto?: Partial<ProductAttributeOptionDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
352
|
+
export declare function serializeProductAttributeOptionDto_labels(writer: SerializationWriter, productAttributeOptionDto_labels?: Partial<ProductAttributeOptionDto_labels> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
353
|
+
export declare function serializeProductAttributeValueDto(writer: SerializationWriter, productAttributeValueDto?: Partial<ProductAttributeValueDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
263
354
|
export declare function serializeProductListResult(writer: SerializationWriter, productListResult?: Partial<ProductListResult> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
264
355
|
export declare function serializePublisher(writer: SerializationWriter, publisher?: Partial<Publisher> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
265
356
|
export declare function serializePublisherListResult(writer: SerializationWriter, publisherListResult?: Partial<PublisherListResult> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
@@ -268,6 +359,9 @@ export declare function serializeRegion(writer: SerializationWriter, region?: Pa
|
|
|
268
359
|
export declare function serializeRegionListResult(writer: SerializationWriter, regionListResult?: Partial<RegionListResult> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
269
360
|
export declare function serializeReportOrderRequest(writer: SerializationWriter, reportOrderRequest?: Partial<ReportOrderRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
270
361
|
export declare function serializeReservation(writer: SerializationWriter, reservation?: Partial<Reservation> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
362
|
+
export declare function serializeResolvedAttributeTextDto(writer: SerializationWriter, resolvedAttributeTextDto?: Partial<ResolvedAttributeTextDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
363
|
+
export declare function serializeResolvedProductAttributeDto(writer: SerializationWriter, resolvedProductAttributeDto?: Partial<ResolvedProductAttributeDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
364
|
+
export declare function serializeResolvedProductAttributeOptionDto(writer: SerializationWriter, resolvedProductAttributeOptionDto?: Partial<ResolvedProductAttributeOptionDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
271
365
|
export declare function serializeSalesPriceRequest(writer: SerializationWriter, salesPriceRequest?: Partial<SalesPriceRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
272
366
|
export declare function serializeVatDetail(writer: SerializationWriter, vatDetail?: Partial<VatDetail> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
273
367
|
export interface VatDetail extends Parsable {
|