idosell 0.4.11 → 0.4.13
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/changelog.md +5 -0
- package/dist/gateways.d.ts +15 -2
- package/dist/index.js +2 -1
- package/dist/reqparams.d.ts +12 -0
- package/dist/responses.d.ts +1224 -0
- package/dist/utils.d.ts +31 -0
- package/dist/utils.js +99 -0
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.4.13] - 2025-10-15
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated to v7.2
|
|
11
|
+
- Added utils
|
|
12
|
+
|
|
8
13
|
## [0.4.11] - 2025-09-26
|
|
9
14
|
### Changed
|
|
10
15
|
- Updated to v7
|
package/dist/gateways.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { PagableGateway, AppendableGateway, Gateway, DateLike, JSObject } from "./app.d.ts"
|
|
2
2
|
import type { GetClientsBalanceResponse, BooleanStatusResponse, GetClientsResponse, PostClientsResponse, PutClientsResponse, SearchClientsCrmResponse, GetClientsDeliveryAddressResponse, PostClientsDeliveryAddressResponse, PutClientsDeliveryAddressResponse, VouchersResponse, PutVouchersResponse, SearchClientsGiftcardsResponse, GetClientsGiftcardsTypesResponse, GetClientsMembershipCardsResponse, PutClientsMembershipCardsResponse, SearchClientsNewsletterEmailResponse, SearchClientsNewsletterSmsResponse, GetClientsPayerAddressResponse, PostClientsPayerAddressResponse, PutClientsPayerAddressResponse, GetClientsPricelistsClientsResponse, PutClientsPricelistsClientsResponse, GetClientsPricelistsResponse, PostClientsPricelistsResponse, GetClientsPricelistsProductsResponse, PutClientsPricelistsProductsResponse, GetClientsPricesActiveCardResponse, GetClientsPricesDiscountGroupsResponse, GetClientsPricesDiscountsResponse, PutClientsPricesDiscountsResponse, GetClientsProfitPointsResponse, GetClientsProvinceListResponse, GetClientsTagsResponse, PostClientsTagsResponse, PutClientsTagsResponse, GetConfigVariablesResponse, PutConfigVariablesResponse, GetCouriersAssignedToShippingProfilesResponse, GetCouriersResponse, GetCouriersPickupPointsResponse, PutCouriersPickupPointsResponse, GetCpaCampaignResponse, CmsCampaignResponse, CmsResponse, GetCpaResponse, GetDeliveriesProfilesResponse, GetDeliveriesRegionsResponse, PostDeliveriesRegionsResponse, GetDiscountsGroupsClientsResponse, GetDiscountsGroupsResponse, PostDiscountsGroupsResponse, GetEntriesResponse, PostEntriesResponse, GetEntriesPagesToDisplayResponse, GetEntriesSourcesResponse, GetMenuResponse, PostMenuResponse, PutMenuResponse, PutMenuSortResponse, GetOrdersAnalyticsResponse, GetOrdersAuctionDetailsResponse, PutOrdersCourierResponse, PostOrdersDocumentsCreateResponse, GetOrdersDocumentsResponse, PostOrdersDocumentsResponse, GetOrdersHandlerResponse, GetOrdersHistoryResponse, GetOrdersImagesResponse, PostOrdersImagesResponse, GetOrdersLabelsResponse, SearchOrdersOpinionsResponse, GetOrdersOpinionsRateResponse, SearchOrdersResponse, PostOrdersResponse, PutOrdersResponse, GetOrdersPackagesResponse, PutOrdersPackagesResponse, PutOrdersProductsSerialNumbersResponse, PutOrdersProfitMarginResponse, GetOrdersProfitabilityResponse, GetOrdersStatusesResponse, GetOrdersWarehouseResponse, PostPackagesLabelsResponse, PutPackagesResponse, SearchPackagesResponse, GetPaymentsFormsResponse, GetPaymentsResponse, PostPaymentsResponse, GetPaymentsProfilesResponse, PostPaymentsRepaymentResponse, GetProductsSKUbyBarcodeResponse, PutProductsAttachmentsResponse, GetProductsAuctionsResponse, GetProductsBrandsResponse, PutProductsBrandsResponse, GetProductsCategoriesResponse, PutProductsCategoriesResponse, SearchProductsCategoriesIdosellResponse, GetProductsCodeExistenceResponse, SearchProductsDeliveryTimeResponse, GetProductsDescriptionsResponse, ProductIdentResponse, PutProductsGroupsSettingsResponse, GetProductsIdBySizecodeResponse, PutProductsImagesResponse, GetProductsMarketingPromotionResponse, PostProductsMarketingPromotionResponse, PutProductsMarketingPromotionResponse, GetProductsMarketingZonesResponse, PutProductsMarketingZonesResponse, GetProductsOmnibusPricesResponse, GetProductsOpinionsResponse, PostProductsOpinionsResponse, GetProductsOpinionsRateResponse, PutProductsParametersResponse, SearchProductsParametersResponse, SearchProductsResponse, PostProductsResponse, PutProductsResponse, GetProductsQuestionsResponse, GetProductsReservationsResponse, GetProductsSeriesResponse, PutProductsSeriesResponse, GetProductsSizesResponse, PutProductsSizesResponse, PutProductsStockQuantityResponse, GetProductsStocksResponse, PutProductsStocksResponse, GetProductsStrikethroughPricesResponse, PutProductsSupplierCodeResponse, PutProductsSupplierProductDataResponse, GetResponsibilityEntitiesResponse, PutResponsibilityEntitiesResponse, GetReturnsResponse, PostReturnsResponse, PutReturnsResponse, PutReturnsSerialNumberResponse, GetRmaResponse, PutRmaResponse, GetRmaStatusesResponse, GetShopsCurrenciesResponse, GetShopsLanguagesResponse, GetSizechartsResponse, PutSizechartsResponse, GetSizesResponse, PutSizesResponse, GetSnippetsCampaignResponse, GetSnippetsCookiesResponse, GetSnippetsResponse, GetSystemConfigResponse, GetSystemCurrenciesResponse, PutSystemCurrenciesResponse, GetSystemProcessesAutomationResponse, GetSystemServerLoadResponse, GetSystemServerTimeResponse, GetSystemShopsDataResponse, GetSystemUnitsResponse, PutSystemUnitsResponse, GetSystemUsersResponse, GetVouchersTypesResponse, GetVouchersResponse, GetWarrantiesCountTotalResponse, PutWarrantiesLanguageDataResponse, GetWarrantiesResponse, PutWarrantiesResponse, GetWmsLocationsResponse, GetWmsStocksdocumentsDocumentsResponse, PostWmsStocksdocumentsDocumentsResponse, PutWmsStocksdocumentsDocumentsResponse, GetWmsStocksdocumentsOpenedDocumentsResponse, GetWmsStocksdocumentsProductsResponse, PutWmsStocksdocumentsProductsResponse, GetWmsSuppliersResponse, PutWmsSuppliersResponse } from "./responses.d.ts"
|
|
3
3
|
import type * as RequestParams from "./reqparams.d.ts";
|
|
4
|
-
import
|
|
4
|
+
import utils from "./utils.d";
|
|
5
|
+
import * as ENUMS from "./enums.d";
|
|
5
6
|
|
|
6
7
|
export interface GetClientsBalanceRequest extends PagableGateway<GetClientsBalanceRequest, GetClientsBalanceResponse> {
|
|
7
8
|
/** Customer Id */
|
|
@@ -2945,6 +2946,12 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
|
|
|
2945
2946
|
responsibleProducerCode: (responsibleProducerCode: string) => this
|
|
2946
2947
|
/** Responsible person code */
|
|
2947
2948
|
responsiblePersonCode: (responsiblePersonCode: string) => this
|
|
2949
|
+
/** Deposit type */
|
|
2950
|
+
depositType: (depositType: number|string) => this
|
|
2951
|
+
/** Product deposit id */
|
|
2952
|
+
depositProductId: (depositProductId: number|string) => this
|
|
2953
|
+
/** Product deposit count */
|
|
2954
|
+
depositCount: (depositCount: number|string) => this
|
|
2948
2955
|
/** Set various types of names or descriptions to the product */
|
|
2949
2956
|
setText: (text: string, type?: "productName"|"productParamDescriptions"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeyword"|"productAuctionName"|"productAuctionDescription"|"productAuctionAdditionalName"|"productNameInPriceComparer", language?: string, shopId?: number|string) => this;
|
|
2950
2957
|
/** Sets product price by amount */
|
|
@@ -3222,6 +3229,12 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
|
|
|
3222
3229
|
responsibleProducerCode: (responsibleProducerCode: string) => this
|
|
3223
3230
|
/** Responsible person code */
|
|
3224
3231
|
responsiblePersonCode: (responsiblePersonCode: string) => this
|
|
3232
|
+
/** Deposit type */
|
|
3233
|
+
depositType: (depositType: number|string) => this
|
|
3234
|
+
/** Product deposit id */
|
|
3235
|
+
depositProductId: (depositProductId: number|string) => this
|
|
3236
|
+
/** Product deposit count */
|
|
3237
|
+
depositCount: (depositCount: number|string) => this
|
|
3225
3238
|
/** Set various types of names or descriptions to the product */
|
|
3226
3239
|
setText: (text: string, type?: "productName"|"productParamDescriptions"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeyword"|"productAuctionName"|"productAuctionDescription"|"productAuctionAdditionalName"|"productNameInPriceComparer", language?: string, shopId?: number|string) => this;
|
|
3227
3240
|
/** Set edit mode - disables adding new product */
|
|
@@ -5190,4 +5203,4 @@ export interface Gateways {
|
|
|
5190
5203
|
|
|
5191
5204
|
declare const defaultExport: (url: string, apiKey: string, version?: number | string) => Gateways;
|
|
5192
5205
|
export default defaultExport;
|
|
5193
|
-
export { ENUMS, RequestParams }
|
|
5206
|
+
export { ENUMS, RequestParams, utils }
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ENUMS from "./enums.js";
|
|
2
|
+
import utils from "./utils.js";
|
|
2
3
|
import { gateProxy } from "./gates.js";
|
|
3
4
|
export const DEFAULT_VERSION = 7;
|
|
4
5
|
const idosell = (url, apiKey, version = DEFAULT_VERSION) => {
|
|
@@ -8,4 +9,4 @@ const idosell = (url, apiKey, version = DEFAULT_VERSION) => {
|
|
|
8
9
|
return new Proxy(element, gateProxy);
|
|
9
10
|
};
|
|
10
11
|
export default idosell;
|
|
11
|
-
export { ENUMS };
|
|
12
|
+
export { ENUMS, utils };
|
package/dist/reqparams.d.ts
CHANGED
|
@@ -758,6 +758,12 @@ export type PostProductsParams = {
|
|
|
758
758
|
responsibleProducerCode?: string;
|
|
759
759
|
/** @description Responsible person code */
|
|
760
760
|
responsiblePersonCode?: string;
|
|
761
|
+
/** @description Deposit type */
|
|
762
|
+
depositType?: number;
|
|
763
|
+
/** @description Product deposit id */
|
|
764
|
+
depositProductId?: number;
|
|
765
|
+
/** @description Product deposit count */
|
|
766
|
+
depositCount?: number;
|
|
761
767
|
}[];
|
|
762
768
|
};
|
|
763
769
|
|
|
@@ -2004,6 +2010,12 @@ export type PutProductsParams = {
|
|
|
2004
2010
|
responsibleProducerCode?: string;
|
|
2005
2011
|
/** @description Responsible person code */
|
|
2006
2012
|
responsiblePersonCode?: string;
|
|
2013
|
+
/** @description Deposit type */
|
|
2014
|
+
depositType?: number;
|
|
2015
|
+
/** @description Product deposit id */
|
|
2016
|
+
depositProductId?: number;
|
|
2017
|
+
/** @description Product deposit count */
|
|
2018
|
+
depositCount?: number;
|
|
2007
2019
|
}[];
|
|
2008
2020
|
};
|
|
2009
2021
|
|