@munchi_oy/core 2.0.3 → 2.0.4

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.
@@ -6441,9 +6441,10 @@ export interface ExtendedProductDto {
6441
6441
  */
6442
6442
  'images': string;
6443
6443
  /**
6444
- * SKU of the product
6444
+ * SKU of the product: its first one. Read skus instead
6445
6445
  * @type {string}
6446
6446
  * @memberof ExtendedProductDto
6447
+ * @deprecated
6447
6448
  */
6448
6449
  'sku'?: string | null;
6449
6450
  /**
@@ -6608,6 +6609,12 @@ export interface ExtendedProductDto {
6608
6609
  * @memberof ExtendedProductDto
6609
6610
  */
6610
6611
  'channel_configs': Array<ChannelConfig>;
6612
+ /**
6613
+ * Every SKU of the product, in order, the first being sku; absent where the product\'s SKUs are not read, such as on an order line
6614
+ * @type {Array<string>}
6615
+ * @memberof ExtendedProductDto
6616
+ */
6617
+ 'skus'?: Array<string>;
6611
6618
  /**
6612
6619
  * Default course ID assigned to this product
6613
6620
  * @type {string}
@@ -17904,9 +17911,10 @@ export interface PosItemDto {
17904
17911
  */
17905
17912
  'images': string;
17906
17913
  /**
17907
- * SKU of the product
17914
+ * SKU of the product: its first one. Read skus instead
17908
17915
  * @type {string}
17909
17916
  * @memberof PosItemDto
17917
+ * @deprecated
17910
17918
  */
17911
17919
  'sku'?: string | null;
17912
17920
  /**
@@ -18071,6 +18079,12 @@ export interface PosItemDto {
18071
18079
  * @memberof PosItemDto
18072
18080
  */
18073
18081
  'channel_configs': Array<ChannelConfig>;
18082
+ /**
18083
+ * Every SKU of the product, in order, the first being sku; absent where the product\'s SKUs are not read, such as on an order line
18084
+ * @type {Array<string>}
18085
+ * @memberof PosItemDto
18086
+ */
18087
+ 'skus'?: Array<string>;
18074
18088
  /**
18075
18089
  * Default course ID assigned to this product
18076
18090
  * @type {string}
@@ -18414,11 +18428,18 @@ export interface PosMenuProductDto {
18414
18428
  */
18415
18429
  'images': string;
18416
18430
  /**
18417
- * The product\'s stock-keeping code, or null when it has none
18431
+ * The product\'s first stock-keeping code, or null when it has none. Read skus instead
18418
18432
  * @type {string}
18419
18433
  * @memberof PosMenuProductDto
18434
+ * @deprecated
18420
18435
  */
18421
18436
  'sku': string | null;
18437
+ /**
18438
+ * Every stock-keeping code of the product, in order, the first being sku; empty when it has none. Absent from an answer cached before the field existed: read sku then
18439
+ * @type {Array<string>}
18440
+ * @memberof PosMenuProductDto
18441
+ */
18442
+ 'skus'?: Array<string>;
18422
18443
  /**
18423
18444
  * The product\'s barcode, or null when it has none
18424
18445
  * @type {string}
@@ -20976,6 +20997,26 @@ export interface ProductSkuResponseDto {
20976
20997
  */
20977
20998
  'sku': string;
20978
20999
  }
21000
+ /**
21001
+ *
21002
+ * @export
21003
+ * @interface ProductSkusResponseDto
21004
+ */
21005
+ export interface ProductSkusResponseDto {
21006
+ /**
21007
+ * The first SKU Vendure saved, or null when the product has none. Read skus instead
21008
+ * @type {string}
21009
+ * @memberof ProductSkusResponseDto
21010
+ * @deprecated
21011
+ */
21012
+ 'sku': string | null;
21013
+ /**
21014
+ * Every SKU Vendure saved, trimmed, in order; empty when the product has none
21015
+ * @type {Array<string>}
21016
+ * @memberof ProductSkusResponseDto
21017
+ */
21018
+ 'skus': Array<string>;
21019
+ }
20979
21020
  /**
20980
21021
  *
20981
21022
  * @export
@@ -29744,6 +29785,19 @@ export interface UpdateProductSkuDto {
29744
29785
  */
29745
29786
  'sku': string;
29746
29787
  }
29788
+ /**
29789
+ *
29790
+ * @export
29791
+ * @interface UpdateProductSkusDto
29792
+ */
29793
+ export interface UpdateProductSkusDto {
29794
+ /**
29795
+ * Every SKU (label code) of the product, in order; they replace the ones it has. Each is trimmed, must keep one character and holds at most 255 characters. An empty list removes every SKU. A SKU is unique within the venue, compared without case
29796
+ * @type {Array<string>}
29797
+ * @memberof UpdateProductSkusDto
29798
+ */
29799
+ 'skus': Array<string>;
29800
+ }
29747
29801
  /**
29748
29802
  *
29749
29803
  * @export
@@ -44022,9 +44076,21 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
44022
44076
  * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44023
44077
  * @param {UpdateProductSkuDto} updateProductSkuDto The SKU to save
44024
44078
  * @param {*} [options] Override http request option.
44079
+ * @deprecated
44025
44080
  * @throws {RequiredError}
44026
44081
  */
44027
44082
  updateProductSkuV2: (businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44083
+ /**
44084
+ * Saved in Vendure, each trimmed, in the order sent; the first is the product\'s sku. A SKU is unique within the venue; Vendure compares it without case.
44085
+ * @summary Replace every SKU (label code) of a product
44086
+ * @param {string} businessId The venue\&#39;s id; the ticket must cover it
44087
+ * @param {string} categoryId The product\&#39;s category id. Not checked against the product: it is copied into each answered row as category_id
44088
+ * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44089
+ * @param {UpdateProductSkusDto} updateProductSkusDto Every SKU the product keeps, in order
44090
+ * @param {*} [options] Override http request option.
44091
+ * @throws {RequiredError}
44092
+ */
44093
+ updateProductSkusV2: (businessId: string, categoryId: string, productId: string, updateProductSkusDto: UpdateProductSkusDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44028
44094
  };
44029
44095
  /**
44030
44096
  * ProductApi - functional programming interface
@@ -44060,9 +44126,21 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
44060
44126
  * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44061
44127
  * @param {UpdateProductSkuDto} updateProductSkuDto The SKU to save
44062
44128
  * @param {*} [options] Override http request option.
44129
+ * @deprecated
44063
44130
  * @throws {RequiredError}
44064
44131
  */
44065
44132
  updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSkuResponseDto>>;
44133
+ /**
44134
+ * Saved in Vendure, each trimmed, in the order sent; the first is the product\'s sku. A SKU is unique within the venue; Vendure compares it without case.
44135
+ * @summary Replace every SKU (label code) of a product
44136
+ * @param {string} businessId The venue\&#39;s id; the ticket must cover it
44137
+ * @param {string} categoryId The product\&#39;s category id. Not checked against the product: it is copied into each answered row as category_id
44138
+ * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44139
+ * @param {UpdateProductSkusDto} updateProductSkusDto Every SKU the product keeps, in order
44140
+ * @param {*} [options] Override http request option.
44141
+ * @throws {RequiredError}
44142
+ */
44143
+ updateProductSkusV2(businessId: string, categoryId: string, productId: string, updateProductSkusDto: UpdateProductSkusDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSkusResponseDto>>;
44066
44144
  };
44067
44145
  /**
44068
44146
  * ProductApi - factory interface
@@ -44098,9 +44176,21 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
44098
44176
  * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44099
44177
  * @param {UpdateProductSkuDto} updateProductSkuDto The SKU to save
44100
44178
  * @param {*} [options] Override http request option.
44179
+ * @deprecated
44101
44180
  * @throws {RequiredError}
44102
44181
  */
44103
44182
  updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: any): AxiosPromise<ProductSkuResponseDto>;
44183
+ /**
44184
+ * Saved in Vendure, each trimmed, in the order sent; the first is the product\'s sku. A SKU is unique within the venue; Vendure compares it without case.
44185
+ * @summary Replace every SKU (label code) of a product
44186
+ * @param {string} businessId The venue\&#39;s id; the ticket must cover it
44187
+ * @param {string} categoryId The product\&#39;s category id. Not checked against the product: it is copied into each answered row as category_id
44188
+ * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44189
+ * @param {UpdateProductSkusDto} updateProductSkusDto Every SKU the product keeps, in order
44190
+ * @param {*} [options] Override http request option.
44191
+ * @throws {RequiredError}
44192
+ */
44193
+ updateProductSkusV2(businessId: string, categoryId: string, productId: string, updateProductSkusDto: UpdateProductSkusDto, options?: any): AxiosPromise<ProductSkusResponseDto>;
44104
44194
  };
44105
44195
  /**
44106
44196
  * ProductApi - interface
@@ -44139,10 +44229,23 @@ export interface ProductApiInterface {
44139
44229
  * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44140
44230
  * @param {UpdateProductSkuDto} updateProductSkuDto The SKU to save
44141
44231
  * @param {*} [options] Override http request option.
44232
+ * @deprecated
44142
44233
  * @throws {RequiredError}
44143
44234
  * @memberof ProductApiInterface
44144
44235
  */
44145
44236
  updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig): AxiosPromise<ProductSkuResponseDto>;
44237
+ /**
44238
+ * Saved in Vendure, each trimmed, in the order sent; the first is the product\'s sku. A SKU is unique within the venue; Vendure compares it without case.
44239
+ * @summary Replace every SKU (label code) of a product
44240
+ * @param {string} businessId The venue\&#39;s id; the ticket must cover it
44241
+ * @param {string} categoryId The product\&#39;s category id. Not checked against the product: it is copied into each answered row as category_id
44242
+ * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44243
+ * @param {UpdateProductSkusDto} updateProductSkusDto Every SKU the product keeps, in order
44244
+ * @param {*} [options] Override http request option.
44245
+ * @throws {RequiredError}
44246
+ * @memberof ProductApiInterface
44247
+ */
44248
+ updateProductSkusV2(businessId: string, categoryId: string, productId: string, updateProductSkusDto: UpdateProductSkusDto, options?: AxiosRequestConfig): AxiosPromise<ProductSkusResponseDto>;
44146
44249
  }
44147
44250
  /**
44148
44251
  * ProductApi - object-oriented interface
@@ -44182,10 +44285,23 @@ export declare class ProductApi extends BaseAPI implements ProductApiInterface {
44182
44285
  * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44183
44286
  * @param {UpdateProductSkuDto} updateProductSkuDto The SKU to save
44184
44287
  * @param {*} [options] Override http request option.
44288
+ * @deprecated
44185
44289
  * @throws {RequiredError}
44186
44290
  * @memberof ProductApi
44187
44291
  */
44188
44292
  updateProductSkuV2(businessId: string, categoryId: string, productId: string, updateProductSkuDto: UpdateProductSkuDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSkuResponseDto, any, {}>>;
44293
+ /**
44294
+ * Saved in Vendure, each trimmed, in the order sent; the first is the product\'s sku. A SKU is unique within the venue; Vendure compares it without case.
44295
+ * @summary Replace every SKU (label code) of a product
44296
+ * @param {string} businessId The venue\&#39;s id; the ticket must cover it
44297
+ * @param {string} categoryId The product\&#39;s category id. Not checked against the product: it is copied into each answered row as category_id
44298
+ * @param {string} productId The product\&#39;s id in Vendure: a whole number from 1, with no leading zero; anything else is refused with 400 before Vendure is asked
44299
+ * @param {UpdateProductSkusDto} updateProductSkusDto Every SKU the product keeps, in order
44300
+ * @param {*} [options] Override http request option.
44301
+ * @throws {RequiredError}
44302
+ * @memberof ProductApi
44303
+ */
44304
+ updateProductSkusV2(businessId: string, categoryId: string, productId: string, updateProductSkusDto: UpdateProductSkusDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSkusResponseDto, any, {}>>;
44189
44305
  }
44190
44306
  /**
44191
44307
  * ProviderApi - axios parameter creator