@teemill/website 0.30.3 → 0.31.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/.openapi-generator/FILES +4 -0
- package/README.md +7 -2
- package/api.ts +304 -13
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +186 -13
- package/dist/api.js +219 -15
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +186 -13
- package/dist/esm/api.js +213 -13
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CollectionsApi.md +1 -0
- package/docs/CrossSellApi.md +2 -1
- package/docs/ProductsApi.md +131 -0
- package/docs/UpdateWebsiteProductRequest.md +24 -0
- package/docs/WebsiteProduct.md +27 -0
- package/docs/WebsiteProductCollectionsInner.md +20 -0
- package/index.ts +1 -1
- package/package.json +2 -2
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website
|
|
3
3
|
* Manage your PodOS Website
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.31.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -875,6 +875,20 @@ export interface UpdateSearchRedirectRequest {
|
|
|
875
875
|
'searchTerm'?: string;
|
|
876
876
|
'destinationUrl'?: string;
|
|
877
877
|
}
|
|
878
|
+
export interface UpdateWebsiteProductRequest {
|
|
879
|
+
/**
|
|
880
|
+
* When true, the product is excluded from storefront search results.
|
|
881
|
+
*/
|
|
882
|
+
'excludeFromSearch'?: boolean;
|
|
883
|
+
/**
|
|
884
|
+
* When provided, replaces collection membership for this product with this exclusive list of collection IDs. Any existing membership not in this list is removed.
|
|
885
|
+
*/
|
|
886
|
+
'collectionIds'?: Array<string>;
|
|
887
|
+
/**
|
|
888
|
+
* When provided, replaces cross-sell links with these product IDs. Order is preserved.
|
|
889
|
+
*/
|
|
890
|
+
'crossSellProductIds'?: Array<string>;
|
|
891
|
+
}
|
|
878
892
|
export interface Variant {
|
|
879
893
|
/**
|
|
880
894
|
* Unique object identifier
|
|
@@ -936,6 +950,33 @@ export interface Video {
|
|
|
936
950
|
'createdAt'?: string;
|
|
937
951
|
'updatedAt'?: string;
|
|
938
952
|
}
|
|
953
|
+
/**
|
|
954
|
+
* Website-specific settings for a product on the storefront (search visibility, cross-sells, and collection membership).
|
|
955
|
+
*/
|
|
956
|
+
export interface WebsiteProduct {
|
|
957
|
+
/**
|
|
958
|
+
* Unique object identifier
|
|
959
|
+
*/
|
|
960
|
+
'id': string;
|
|
961
|
+
/**
|
|
962
|
+
* When true, the product is excluded from storefront search results.
|
|
963
|
+
*/
|
|
964
|
+
'excludeFromSearch': boolean;
|
|
965
|
+
/**
|
|
966
|
+
* Products linked as cross-sells for this product, in display order.
|
|
967
|
+
*/
|
|
968
|
+
'crossSellProducts': Array<Product>;
|
|
969
|
+
/**
|
|
970
|
+
* Collections this product belongs to.
|
|
971
|
+
*/
|
|
972
|
+
'collections': Array<WebsiteProductCollectionsInner>;
|
|
973
|
+
}
|
|
974
|
+
export interface WebsiteProductCollectionsInner {
|
|
975
|
+
/**
|
|
976
|
+
* Unique object identifier
|
|
977
|
+
*/
|
|
978
|
+
'id': string;
|
|
979
|
+
}
|
|
939
980
|
/**
|
|
940
981
|
* BlogsApi - axios parameter creator
|
|
941
982
|
*/
|
|
@@ -1223,12 +1264,13 @@ export declare class BlogsApi extends BaseAPI {
|
|
|
1223
1264
|
*/
|
|
1224
1265
|
export declare const CollectionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1225
1266
|
/**
|
|
1226
|
-
*
|
|
1267
|
+
* Deprecated. Please use `PATCH /v1/website/products/{productId}` with `collectionIds` instead.
|
|
1227
1268
|
* @summary Update product collections
|
|
1228
1269
|
* @param {string} project What project it is
|
|
1229
1270
|
* @param {string} productId Product\'s unique identifier
|
|
1230
1271
|
* @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
|
|
1231
1272
|
* @param {*} [options] Override http request option.
|
|
1273
|
+
* @deprecated
|
|
1232
1274
|
* @throws {RequiredError}
|
|
1233
1275
|
*/
|
|
1234
1276
|
updateProductCollections: (project: string, productId: string, updateProductCollectionsRequest?: UpdateProductCollectionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -1238,12 +1280,13 @@ export declare const CollectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
1238
1280
|
*/
|
|
1239
1281
|
export declare const CollectionsApiFp: (configuration?: Configuration) => {
|
|
1240
1282
|
/**
|
|
1241
|
-
*
|
|
1283
|
+
* Deprecated. Please use `PATCH /v1/website/products/{productId}` with `collectionIds` instead.
|
|
1242
1284
|
* @summary Update product collections
|
|
1243
1285
|
* @param {string} project What project it is
|
|
1244
1286
|
* @param {string} productId Product\'s unique identifier
|
|
1245
1287
|
* @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
|
|
1246
1288
|
* @param {*} [options] Override http request option.
|
|
1289
|
+
* @deprecated
|
|
1247
1290
|
* @throws {RequiredError}
|
|
1248
1291
|
*/
|
|
1249
1292
|
updateProductCollections(project: string, productId: string, updateProductCollectionsRequest?: UpdateProductCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
@@ -1253,10 +1296,11 @@ export declare const CollectionsApiFp: (configuration?: Configuration) => {
|
|
|
1253
1296
|
*/
|
|
1254
1297
|
export declare const CollectionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1255
1298
|
/**
|
|
1256
|
-
*
|
|
1299
|
+
* Deprecated. Please use `PATCH /v1/website/products/{productId}` with `collectionIds` instead.
|
|
1257
1300
|
* @summary Update product collections
|
|
1258
1301
|
* @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
|
|
1259
1302
|
* @param {*} [options] Override http request option.
|
|
1303
|
+
* @deprecated
|
|
1260
1304
|
* @throws {RequiredError}
|
|
1261
1305
|
*/
|
|
1262
1306
|
updateProductCollections(requestParameters: CollectionsApiUpdateProductCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
@@ -1280,10 +1324,11 @@ export interface CollectionsApiUpdateProductCollectionsRequest {
|
|
|
1280
1324
|
*/
|
|
1281
1325
|
export declare class CollectionsApi extends BaseAPI {
|
|
1282
1326
|
/**
|
|
1283
|
-
*
|
|
1327
|
+
* Deprecated. Please use `PATCH /v1/website/products/{productId}` with `collectionIds` instead.
|
|
1284
1328
|
* @summary Update product collections
|
|
1285
1329
|
* @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
|
|
1286
1330
|
* @param {*} [options] Override http request option.
|
|
1331
|
+
* @deprecated
|
|
1287
1332
|
* @throws {RequiredError}
|
|
1288
1333
|
*/
|
|
1289
1334
|
updateProductCollections(requestParameters: CollectionsApiUpdateProductCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
@@ -1293,21 +1338,23 @@ export declare class CollectionsApi extends BaseAPI {
|
|
|
1293
1338
|
*/
|
|
1294
1339
|
export declare const CrossSellApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1295
1340
|
/**
|
|
1296
|
-
* Attaches a list of products to the given product as cross-sell products.
|
|
1341
|
+
* Deprecated. Please use `PATCH /v1/website/products/{productId}` with `crossSellProductIds` instead. Attaches a list of products to the given product as cross-sell products.
|
|
1297
1342
|
* @summary Attach cross-sell products
|
|
1298
1343
|
* @param {string} project What project it is
|
|
1299
1344
|
* @param {string} productId Product\'s unique identifier
|
|
1300
1345
|
* @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
|
|
1301
1346
|
* @param {*} [options] Override http request option.
|
|
1347
|
+
* @deprecated
|
|
1302
1348
|
* @throws {RequiredError}
|
|
1303
1349
|
*/
|
|
1304
1350
|
attachCrossSellProducts: (project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1305
1351
|
/**
|
|
1306
|
-
*
|
|
1352
|
+
* Deprecated. Please use `GET /v1/website/products/{productId}` with `crossSellProducts` instead.
|
|
1307
1353
|
* @summary Get cross-sell products linked to a product
|
|
1308
1354
|
* @param {string} project What project it is
|
|
1309
1355
|
* @param {string} productId Product\'s unique identifier
|
|
1310
1356
|
* @param {*} [options] Override http request option.
|
|
1357
|
+
* @deprecated
|
|
1311
1358
|
* @throws {RequiredError}
|
|
1312
1359
|
*/
|
|
1313
1360
|
getCrossSellProducts: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -1317,21 +1364,23 @@ export declare const CrossSellApiAxiosParamCreator: (configuration?: Configurati
|
|
|
1317
1364
|
*/
|
|
1318
1365
|
export declare const CrossSellApiFp: (configuration?: Configuration) => {
|
|
1319
1366
|
/**
|
|
1320
|
-
* Attaches a list of products to the given product as cross-sell products.
|
|
1367
|
+
* Deprecated. Please use `PATCH /v1/website/products/{productId}` with `crossSellProductIds` instead. Attaches a list of products to the given product as cross-sell products.
|
|
1321
1368
|
* @summary Attach cross-sell products
|
|
1322
1369
|
* @param {string} project What project it is
|
|
1323
1370
|
* @param {string} productId Product\'s unique identifier
|
|
1324
1371
|
* @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
|
|
1325
1372
|
* @param {*} [options] Override http request option.
|
|
1373
|
+
* @deprecated
|
|
1326
1374
|
* @throws {RequiredError}
|
|
1327
1375
|
*/
|
|
1328
1376
|
attachCrossSellProducts(project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>>;
|
|
1329
1377
|
/**
|
|
1330
|
-
*
|
|
1378
|
+
* Deprecated. Please use `GET /v1/website/products/{productId}` with `crossSellProducts` instead.
|
|
1331
1379
|
* @summary Get cross-sell products linked to a product
|
|
1332
1380
|
* @param {string} project What project it is
|
|
1333
1381
|
* @param {string} productId Product\'s unique identifier
|
|
1334
1382
|
* @param {*} [options] Override http request option.
|
|
1383
|
+
* @deprecated
|
|
1335
1384
|
* @throws {RequiredError}
|
|
1336
1385
|
*/
|
|
1337
1386
|
getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>>;
|
|
@@ -1341,18 +1390,20 @@ export declare const CrossSellApiFp: (configuration?: Configuration) => {
|
|
|
1341
1390
|
*/
|
|
1342
1391
|
export declare const CrossSellApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1343
1392
|
/**
|
|
1344
|
-
* Attaches a list of products to the given product as cross-sell products.
|
|
1393
|
+
* Deprecated. Please use `PATCH /v1/website/products/{productId}` with `crossSellProductIds` instead. Attaches a list of products to the given product as cross-sell products.
|
|
1345
1394
|
* @summary Attach cross-sell products
|
|
1346
1395
|
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
1347
1396
|
* @param {*} [options] Override http request option.
|
|
1397
|
+
* @deprecated
|
|
1348
1398
|
* @throws {RequiredError}
|
|
1349
1399
|
*/
|
|
1350
1400
|
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>>;
|
|
1351
1401
|
/**
|
|
1352
|
-
*
|
|
1402
|
+
* Deprecated. Please use `GET /v1/website/products/{productId}` with `crossSellProducts` instead.
|
|
1353
1403
|
* @summary Get cross-sell products linked to a product
|
|
1354
1404
|
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
1355
1405
|
* @param {*} [options] Override http request option.
|
|
1406
|
+
* @deprecated
|
|
1356
1407
|
* @throws {RequiredError}
|
|
1357
1408
|
*/
|
|
1358
1409
|
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>>;
|
|
@@ -1389,18 +1440,20 @@ export interface CrossSellApiGetCrossSellProductsRequest {
|
|
|
1389
1440
|
*/
|
|
1390
1441
|
export declare class CrossSellApi extends BaseAPI {
|
|
1391
1442
|
/**
|
|
1392
|
-
* Attaches a list of products to the given product as cross-sell products.
|
|
1443
|
+
* Deprecated. Please use `PATCH /v1/website/products/{productId}` with `crossSellProductIds` instead. Attaches a list of products to the given product as cross-sell products.
|
|
1393
1444
|
* @summary Attach cross-sell products
|
|
1394
1445
|
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
1395
1446
|
* @param {*} [options] Override http request option.
|
|
1447
|
+
* @deprecated
|
|
1396
1448
|
* @throws {RequiredError}
|
|
1397
1449
|
*/
|
|
1398
1450
|
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product[], any, {}>>;
|
|
1399
1451
|
/**
|
|
1400
|
-
*
|
|
1452
|
+
* Deprecated. Please use `GET /v1/website/products/{productId}` with `crossSellProducts` instead.
|
|
1401
1453
|
* @summary Get cross-sell products linked to a product
|
|
1402
1454
|
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
1403
1455
|
* @param {*} [options] Override http request option.
|
|
1456
|
+
* @deprecated
|
|
1404
1457
|
* @throws {RequiredError}
|
|
1405
1458
|
*/
|
|
1406
1459
|
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Product[], any, {}>>;
|
|
@@ -2324,6 +2377,126 @@ export declare class PaymentApi extends BaseAPI {
|
|
|
2324
2377
|
*/
|
|
2325
2378
|
getStripePaymentAccount(requestParameters: PaymentApiGetStripePaymentAccountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentAccount, any, {}>>;
|
|
2326
2379
|
}
|
|
2380
|
+
/**
|
|
2381
|
+
* ProductsApi - axios parameter creator
|
|
2382
|
+
*/
|
|
2383
|
+
export declare const ProductsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2384
|
+
/**
|
|
2385
|
+
* Returns website-specific settings for a product, including storefront search visibility, cross-sell products, and collection membership. The dedicated cross-sell and collections routes are deprecated; use this endpoint instead.
|
|
2386
|
+
* @summary Get website product
|
|
2387
|
+
* @param {string} project What project it is
|
|
2388
|
+
* @param {string} productId Product\'s unique identifier
|
|
2389
|
+
* @param {*} [options] Override http request option.
|
|
2390
|
+
* @throws {RequiredError}
|
|
2391
|
+
*/
|
|
2392
|
+
getWebsiteProduct: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2393
|
+
/**
|
|
2394
|
+
* Updates website-specific settings for a product. Include only fields you want to change. `excludeFromSearch` toggles storefront search visibility. When `collectionIds` is present, it replaces collection membership for this product with that exclusive list of collection IDs (same behaviour as the deprecated collections route). When `crossSellProductIds` is present, it replaces cross-sell links in the given order (same behaviour as the deprecated cross-sell route). The dedicated cross-sell and collections routes are deprecated; use this endpoint instead.
|
|
2395
|
+
* @summary Update website product
|
|
2396
|
+
* @param {string} project What project it is
|
|
2397
|
+
* @param {string} productId Product\'s unique identifier
|
|
2398
|
+
* @param {UpdateWebsiteProductRequest} [updateWebsiteProductRequest] Update website product settings
|
|
2399
|
+
* @param {*} [options] Override http request option.
|
|
2400
|
+
* @throws {RequiredError}
|
|
2401
|
+
*/
|
|
2402
|
+
updateWebsiteProduct: (project: string, productId: string, updateWebsiteProductRequest?: UpdateWebsiteProductRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2403
|
+
};
|
|
2404
|
+
/**
|
|
2405
|
+
* ProductsApi - functional programming interface
|
|
2406
|
+
*/
|
|
2407
|
+
export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
2408
|
+
/**
|
|
2409
|
+
* Returns website-specific settings for a product, including storefront search visibility, cross-sell products, and collection membership. The dedicated cross-sell and collections routes are deprecated; use this endpoint instead.
|
|
2410
|
+
* @summary Get website product
|
|
2411
|
+
* @param {string} project What project it is
|
|
2412
|
+
* @param {string} productId Product\'s unique identifier
|
|
2413
|
+
* @param {*} [options] Override http request option.
|
|
2414
|
+
* @throws {RequiredError}
|
|
2415
|
+
*/
|
|
2416
|
+
getWebsiteProduct(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebsiteProduct>>;
|
|
2417
|
+
/**
|
|
2418
|
+
* Updates website-specific settings for a product. Include only fields you want to change. `excludeFromSearch` toggles storefront search visibility. When `collectionIds` is present, it replaces collection membership for this product with that exclusive list of collection IDs (same behaviour as the deprecated collections route). When `crossSellProductIds` is present, it replaces cross-sell links in the given order (same behaviour as the deprecated cross-sell route). The dedicated cross-sell and collections routes are deprecated; use this endpoint instead.
|
|
2419
|
+
* @summary Update website product
|
|
2420
|
+
* @param {string} project What project it is
|
|
2421
|
+
* @param {string} productId Product\'s unique identifier
|
|
2422
|
+
* @param {UpdateWebsiteProductRequest} [updateWebsiteProductRequest] Update website product settings
|
|
2423
|
+
* @param {*} [options] Override http request option.
|
|
2424
|
+
* @throws {RequiredError}
|
|
2425
|
+
*/
|
|
2426
|
+
updateWebsiteProduct(project: string, productId: string, updateWebsiteProductRequest?: UpdateWebsiteProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebsiteProduct>>;
|
|
2427
|
+
};
|
|
2428
|
+
/**
|
|
2429
|
+
* ProductsApi - factory interface
|
|
2430
|
+
*/
|
|
2431
|
+
export declare const ProductsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2432
|
+
/**
|
|
2433
|
+
* Returns website-specific settings for a product, including storefront search visibility, cross-sell products, and collection membership. The dedicated cross-sell and collections routes are deprecated; use this endpoint instead.
|
|
2434
|
+
* @summary Get website product
|
|
2435
|
+
* @param {ProductsApiGetWebsiteProductRequest} requestParameters Request parameters.
|
|
2436
|
+
* @param {*} [options] Override http request option.
|
|
2437
|
+
* @throws {RequiredError}
|
|
2438
|
+
*/
|
|
2439
|
+
getWebsiteProduct(requestParameters: ProductsApiGetWebsiteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<WebsiteProduct>;
|
|
2440
|
+
/**
|
|
2441
|
+
* Updates website-specific settings for a product. Include only fields you want to change. `excludeFromSearch` toggles storefront search visibility. When `collectionIds` is present, it replaces collection membership for this product with that exclusive list of collection IDs (same behaviour as the deprecated collections route). When `crossSellProductIds` is present, it replaces cross-sell links in the given order (same behaviour as the deprecated cross-sell route). The dedicated cross-sell and collections routes are deprecated; use this endpoint instead.
|
|
2442
|
+
* @summary Update website product
|
|
2443
|
+
* @param {ProductsApiUpdateWebsiteProductRequest} requestParameters Request parameters.
|
|
2444
|
+
* @param {*} [options] Override http request option.
|
|
2445
|
+
* @throws {RequiredError}
|
|
2446
|
+
*/
|
|
2447
|
+
updateWebsiteProduct(requestParameters: ProductsApiUpdateWebsiteProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<WebsiteProduct>;
|
|
2448
|
+
};
|
|
2449
|
+
/**
|
|
2450
|
+
* Request parameters for getWebsiteProduct operation in ProductsApi.
|
|
2451
|
+
*/
|
|
2452
|
+
export interface ProductsApiGetWebsiteProductRequest {
|
|
2453
|
+
/**
|
|
2454
|
+
* What project it is
|
|
2455
|
+
*/
|
|
2456
|
+
readonly project: string;
|
|
2457
|
+
/**
|
|
2458
|
+
* Product\'s unique identifier
|
|
2459
|
+
*/
|
|
2460
|
+
readonly productId: string;
|
|
2461
|
+
}
|
|
2462
|
+
/**
|
|
2463
|
+
* Request parameters for updateWebsiteProduct operation in ProductsApi.
|
|
2464
|
+
*/
|
|
2465
|
+
export interface ProductsApiUpdateWebsiteProductRequest {
|
|
2466
|
+
/**
|
|
2467
|
+
* What project it is
|
|
2468
|
+
*/
|
|
2469
|
+
readonly project: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* Product\'s unique identifier
|
|
2472
|
+
*/
|
|
2473
|
+
readonly productId: string;
|
|
2474
|
+
/**
|
|
2475
|
+
* Update website product settings
|
|
2476
|
+
*/
|
|
2477
|
+
readonly updateWebsiteProductRequest?: UpdateWebsiteProductRequest;
|
|
2478
|
+
}
|
|
2479
|
+
/**
|
|
2480
|
+
* ProductsApi - object-oriented interface
|
|
2481
|
+
*/
|
|
2482
|
+
export declare class ProductsApi extends BaseAPI {
|
|
2483
|
+
/**
|
|
2484
|
+
* Returns website-specific settings for a product, including storefront search visibility, cross-sell products, and collection membership. The dedicated cross-sell and collections routes are deprecated; use this endpoint instead.
|
|
2485
|
+
* @summary Get website product
|
|
2486
|
+
* @param {ProductsApiGetWebsiteProductRequest} requestParameters Request parameters.
|
|
2487
|
+
* @param {*} [options] Override http request option.
|
|
2488
|
+
* @throws {RequiredError}
|
|
2489
|
+
*/
|
|
2490
|
+
getWebsiteProduct(requestParameters: ProductsApiGetWebsiteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WebsiteProduct, any, {}>>;
|
|
2491
|
+
/**
|
|
2492
|
+
* Updates website-specific settings for a product. Include only fields you want to change. `excludeFromSearch` toggles storefront search visibility. When `collectionIds` is present, it replaces collection membership for this product with that exclusive list of collection IDs (same behaviour as the deprecated collections route). When `crossSellProductIds` is present, it replaces cross-sell links in the given order (same behaviour as the deprecated cross-sell route). The dedicated cross-sell and collections routes are deprecated; use this endpoint instead.
|
|
2493
|
+
* @summary Update website product
|
|
2494
|
+
* @param {ProductsApiUpdateWebsiteProductRequest} requestParameters Request parameters.
|
|
2495
|
+
* @param {*} [options] Override http request option.
|
|
2496
|
+
* @throws {RequiredError}
|
|
2497
|
+
*/
|
|
2498
|
+
updateWebsiteProduct(requestParameters: ProductsApiUpdateWebsiteProductRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WebsiteProduct, any, {}>>;
|
|
2499
|
+
}
|
|
2327
2500
|
/**
|
|
2328
2501
|
* ReviewsApi - axios parameter creator
|
|
2329
2502
|
*/
|