@@ -2761,6 +2761,58 @@ export const MetaApiAxiosParamCreator = function (
2761
2761
options : localVarRequestOptions ,
2762
2762
}
2763
2763
} ,
2764
+ /**
2765
+ * Pre-loads the product metadata for a given SKU, even if the SKU doesn\'t exist yet.
2766
+ * @param {string } sku
2767
+ * @param {string } system_slug
2768
+ * @param {* } [options] Override http request option.
2769
+ * @throws {RequiredError }
2770
+ */
2771
+ metaProductPreloadRetrieve : async (
2772
+ sku : string ,
2773
+ system_slug : string ,
2774
+ options : RawAxiosRequestConfig = { } ,
2775
+ ) : Promise < RequestArgs > => {
2776
+ // verify required parameter 'sku' is not null or undefined
2777
+ assertParamExists ( "metaProductPreloadRetrieve" , "sku" , sku )
2778
+ // verify required parameter 'system_slug' is not null or undefined
2779
+ assertParamExists (
2780
+ "metaProductPreloadRetrieve" ,
2781
+ "system_slug" ,
2782
+ system_slug ,
2783
+ )
2784
+ const localVarPath = `/api/v0/meta/product/preload/{system_slug}/{sku}/`
2785
+ . replace ( `{${ "sku" } }` , encodeURIComponent ( String ( sku ) ) )
2786
+ . replace ( `{${ "system_slug" } }` , encodeURIComponent ( String ( system_slug ) ) )
2787
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2788
+ const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL )
2789
+ let baseOptions
2790
+ if ( configuration ) {
2791
+ baseOptions = configuration . baseOptions
2792
+ }
2793
+
2794
+ const localVarRequestOptions = {
2795
+ method : "GET" ,
2796
+ ...baseOptions ,
2797
+ ...options ,
2798
+ }
2799
+ const localVarHeaderParameter = { } as any
2800
+ const localVarQueryParameter = { } as any
2801
+
2802
+ setSearchParams ( localVarUrlObj , localVarQueryParameter )
2803
+ let headersFromBaseOptions =
2804
+ baseOptions && baseOptions . headers ? baseOptions . headers : { }
2805
+ localVarRequestOptions . headers = {
2806
+ ...localVarHeaderParameter ,
2807
+ ...headersFromBaseOptions ,
2808
+ ...options . headers ,
2809
+ }
2810
+
2811
+ return {
2812
+ url : toPathString ( localVarUrlObj ) ,
2813
+ options : localVarRequestOptions ,
2814
+ }
2815
+ } ,
2764
2816
/**
2765
2817
* Viewset for Product model.
2766
2818
* @param {number } id A unique integer value identifying this product.
@@ -3185,6 +3237,37 @@ export const MetaApiFp = function (configuration?: Configuration) {
3185
3237
configuration ,
3186
3238
) ( axios , operationBasePath || basePath )
3187
3239
} ,
3240
+ /**
3241
+ * Pre-loads the product metadata for a given SKU, even if the SKU doesn\'t exist yet.
3242
+ * @param {string } sku
3243
+ * @param {string } system_slug
3244
+ * @param {* } [options] Override http request option.
3245
+ * @throws {RequiredError }
3246
+ */
3247
+ async metaProductPreloadRetrieve (
3248
+ sku : string ,
3249
+ system_slug : string ,
3250
+ options ?: RawAxiosRequestConfig ,
3251
+ ) : Promise <
3252
+ ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < Product >
3253
+ > {
3254
+ const localVarAxiosArgs =
3255
+ await localVarAxiosParamCreator . metaProductPreloadRetrieve (
3256
+ sku ,
3257
+ system_slug ,
3258
+ options ,
3259
+ )
3260
+ const index = configuration ?. serverIndex ?? 0
3261
+ const operationBasePath =
3262
+ operationServerMap [ "MetaApi.metaProductPreloadRetrieve" ] ?. [ index ] ?. url
3263
+ return ( axios , basePath ) =>
3264
+ createRequestFunction (
3265
+ localVarAxiosArgs ,
3266
+ globalAxios ,
3267
+ BASE_PATH ,
3268
+ configuration ,
3269
+ ) ( axios , operationBasePath || basePath )
3270
+ } ,
3188
3271
/**
3189
3272
* Viewset for Product model.
3190
3273
* @param {number } id A unique integer value identifying this product.
@@ -3420,6 +3503,24 @@ export const MetaApiFactory = function (
3420
3503
)
3421
3504
. then ( ( request ) => request ( axios , basePath ) )
3422
3505
} ,
3506
+ /**
3507
+ * Pre-loads the product metadata for a given SKU, even if the SKU doesn\'t exist yet.
3508
+ * @param {MetaApiMetaProductPreloadRetrieveRequest } requestParameters Request parameters.
3509
+ * @param {* } [options] Override http request option.
3510
+ * @throws {RequiredError }
3511
+ */
3512
+ metaProductPreloadRetrieve (
3513
+ requestParameters : MetaApiMetaProductPreloadRetrieveRequest ,
3514
+ options ?: RawAxiosRequestConfig ,
3515
+ ) : AxiosPromise < Product > {
3516
+ return localVarFp
3517
+ . metaProductPreloadRetrieve (
3518
+ requestParameters . sku ,
3519
+ requestParameters . system_slug ,
3520
+ options ,
3521
+ )
3522
+ . then ( ( request ) => request ( axios , basePath ) )
3523
+ } ,
3423
3524
/**
3424
3525
* Viewset for Product model.
3425
3526
* @param {MetaApiMetaProductRetrieveRequest } requestParameters Request parameters.
@@ -3644,6 +3745,27 @@ export interface MetaApiMetaProductPartialUpdateRequest {
3644
3745
readonly PatchedProductRequest ?: PatchedProductRequest
3645
3746
}
3646
3747
3748
+ /**
3749
+ * Request parameters for metaProductPreloadRetrieve operation in MetaApi.
3750
+ * @export
3751
+ * @interface MetaApiMetaProductPreloadRetrieveRequest
3752
+ */
3753
+ export interface MetaApiMetaProductPreloadRetrieveRequest {
3754
+ /**
3755
+ *
3756
+ * @type {string }
3757
+ * @memberof MetaApiMetaProductPreloadRetrieve
3758
+ */
3759
+ readonly sku : string
3760
+
3761
+ /**
3762
+ *
3763
+ * @type {string }
3764
+ * @memberof MetaApiMetaProductPreloadRetrieve
3765
+ */
3766
+ readonly system_slug : string
3767
+ }
3768
+
3647
3769
/**
3648
3770
* Request parameters for metaProductRetrieve operation in MetaApi.
3649
3771
* @export
@@ -3871,6 +3993,26 @@ export class MetaApi extends BaseAPI {
3871
3993
. then ( ( request ) => request ( this . axios , this . basePath ) )
3872
3994
}
3873
3995
3996
+ /**
3997
+ * Pre-loads the product metadata for a given SKU, even if the SKU doesn\'t exist yet.
3998
+ * @param {MetaApiMetaProductPreloadRetrieveRequest } requestParameters Request parameters.
3999
+ * @param {* } [options] Override http request option.
4000
+ * @throws {RequiredError }
4001
+ * @memberof MetaApi
4002
+ */
4003
+ public metaProductPreloadRetrieve (
4004
+ requestParameters : MetaApiMetaProductPreloadRetrieveRequest ,
4005
+ options ?: RawAxiosRequestConfig ,
4006
+ ) {
4007
+ return MetaApiFp ( this . configuration )
4008
+ . metaProductPreloadRetrieve (
4009
+ requestParameters . sku ,
4010
+ requestParameters . system_slug ,
4011
+ options ,
4012
+ )
4013
+ . then ( ( request ) => request ( this . axios , this . basePath ) )
4014
+ }
4015
+
3874
4016
/**
3875
4017
* Viewset for Product model.
3876
4018
* @param {MetaApiMetaProductRetrieveRequest } requestParameters Request parameters.
0 commit comments