idosell 0.3.5 → 0.3.6
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 +7 -0
- package/dist/app.d.ts +2 -1
- package/dist/gates.js +2 -0
- package/dist/gateways.d.ts +77 -16
- package/dist/methods/deleteClientsDeliveryAddress.js +1 -0
- package/dist/methods/deleteClientsGiftcards.js +1 -0
- package/dist/methods/deleteClientsPayerAddress.js +1 -0
- package/dist/methods/deleteClientsTags.js +2 -1
- package/dist/methods/deleteCouriersPickupPoints.js +1 -0
- package/dist/methods/deleteDiscountsGroupsProducts.js +1 -0
- package/dist/methods/deleteDiscountsRebatesCard.js +1 -1
- package/dist/methods/deleteDiscountsRebatesCode.js +1 -1
- package/dist/methods/deleteMenu.js +1 -0
- package/dist/methods/deleteOrdersDocuments.js +1 -0
- package/dist/methods/deleteOrdersImages.js +1 -0
- package/dist/methods/deleteProducts.js +1 -0
- package/dist/methods/deleteProductsBrands.js +1 -0
- package/dist/methods/deleteProductsBundlesProducts.js +2 -1
- package/dist/methods/deleteProductsCollectionsProducts.js +2 -1
- package/dist/methods/deleteProductsImages.js +2 -1
- package/dist/methods/deleteProductsParameters.js +1 -0
- package/dist/methods/deleteProductsProductsToFacebookCatalog.js +1 -0
- package/dist/methods/deleteProductsProductsToPromotion.js +1 -0
- package/dist/methods/deleteProductsSeries.js +1 -0
- package/dist/methods/deleteProductsSizes.js +1 -0
- package/dist/methods/deleteSizecharts.js +1 -0
- package/dist/methods/deleteVouchers.js +1 -0
- package/dist/methods/deleteWarranties.js +1 -0
- package/dist/methods/deleteWmsStocksdocumentsProducts.js +1 -0
- package/dist/methods/deleteWmsSuppliers.js +1 -0
- package/dist/methods/postClients.js +1 -0
- package/dist/methods/postClientsDeliveryAddress.js +1 -0
- package/dist/methods/postClientsGiftcards.js +1 -0
- package/dist/methods/postClientsPayerAddress.js +1 -0
- package/dist/methods/postClientsTags.js +2 -1
- package/dist/methods/postCouriersPickupPoints.js +1 -0
- package/dist/methods/postCpa.js +1 -0
- package/dist/methods/postCpaCampaign.js +1 -0
- package/dist/methods/postEntries.js +1 -0
- package/dist/methods/postMenu.js +1 -0
- package/dist/methods/postOrders.js +1 -0
- package/dist/methods/postOrdersDocuments.js +1 -0
- package/dist/methods/postOrdersDocumentsCreate.js +1 -0
- package/dist/methods/postOrdersImages.js +1 -0
- package/dist/methods/postOrdersPackages.js +1 -0
- package/dist/methods/postPackages.js +1 -0
- package/dist/methods/postPackagesLabels.js +1 -0
- package/dist/methods/postProducts.js +1 -0
- package/dist/methods/postProductsBrands.js +1 -0
- package/dist/methods/postProductsBundles.js +2 -1
- package/dist/methods/postProductsBundlesProducts.js +2 -1
- package/dist/methods/postProductsCollections.js +2 -1
- package/dist/methods/postProductsCollectionsProducts.js +2 -1
- package/dist/methods/postProductsMarketingPromotion.js +1 -0
- package/dist/methods/postProductsOpinions.js +1 -0
- package/dist/methods/postProductsProductsToFacebookCatalog.js +1 -0
- package/dist/methods/postProductsProductsToPromotion.js +1 -0
- package/dist/methods/postProductsRestore.js +1 -1
- package/dist/methods/postResponsibilityEntities.js +1 -0
- package/dist/methods/postReturns.js +1 -0
- package/dist/methods/postSnippets.js +1 -0
- package/dist/methods/postSnippetsCampaign.js +1 -0
- package/dist/methods/postSnippetsCookies.js +1 -0
- package/dist/methods/postSubscriptionsAddProduct.js +7 -0
- package/dist/methods/postSubscriptionsChangeDeliveryDates.js +2 -1
- package/dist/methods/postSubscriptionsChangePriceAutoUpdate.js +2 -1
- package/dist/methods/postSubscriptionsChangeStatus.js +2 -1
- package/dist/methods/postSubscriptionsDeleteProduct.js +2 -1
- package/dist/methods/postSubscriptionsEdit.js +2 -1
- package/dist/methods/postSubscriptionsEditProduct.js +2 -1
- package/dist/methods/postSubscriptionsItemsList.js +1 -1
- package/dist/methods/postSubscriptionsListViewFetchIds.js +2 -1
- package/dist/methods/postSubscriptionsListViewList.js +1 -1
- package/dist/methods/postSubscriptionsSetRebateCode.js +1 -1
- package/dist/methods/postSubscriptionsUnsetRebateCode.js +1 -1
- package/dist/methods/postVouchers.js +1 -0
- package/dist/methods/postWarranties.js +1 -0
- package/dist/methods/postWmsStocksdocumentsProducts.js +1 -0
- package/dist/methods/putClients.js +1 -0
- package/dist/methods/putClientsDeliveryAddress.js +1 -0
- package/dist/methods/putClientsGiftcards.js +1 -0
- package/dist/methods/putClientsGiftcardsBlock.js +1 -0
- package/dist/methods/putClientsGiftcardsUnblock.js +1 -0
- package/dist/methods/putClientsMembershipCards.js +1 -0
- package/dist/methods/putClientsPayerAddress.js +1 -0
- package/dist/methods/putClientsPricelistsClients.js +1 -0
- package/dist/methods/putClientsPricelistsProducts.js +1 -0
- package/dist/methods/putClientsPricesDiscounts.js +1 -0
- package/dist/methods/putClientsTags.js +1 -0
- package/dist/methods/putConfigVariables.js +1 -0
- package/dist/methods/putCouriersPickupPoints.js +1 -0
- package/dist/methods/putCpa.js +1 -0
- package/dist/methods/putCpaCampaign.js +1 -0
- package/dist/methods/putDiscountsGroupsProducts.js +1 -0
- package/dist/methods/putDiscountsRebatesBlockCard.js +1 -1
- package/dist/methods/putDiscountsRebatesUnblockCard.js +1 -1
- package/dist/methods/putEntries.js +1 -0
- package/dist/methods/putMenu.js +1 -0
- package/dist/methods/putMenuFilter.js +1 -0
- package/dist/methods/putMenuSort.js +1 -0
- package/dist/methods/putOrders.js +1 -0
- package/dist/methods/putOrdersDevide.js +1 -0
- package/dist/methods/putOrdersPackages.js +1 -0
- package/dist/methods/putOrdersProductsSerialNumbers.js +1 -0
- package/dist/methods/putOrdersProfitMargin.js +1 -0
- package/dist/methods/putPackages.js +1 -0
- package/dist/methods/putProducts.js +1 -0
- package/dist/methods/putProductsAttachments.js +1 -0
- package/dist/methods/putProductsBrands.js +1 -0
- package/dist/methods/putProductsBrandsFilter.js +1 -0
- package/dist/methods/putProductsBundlesProductsQuantity.js +2 -1
- package/dist/methods/putProductsBundlesRenew.js +2 -1
- package/dist/methods/putProductsCategories.js +1 -0
- package/dist/methods/putProductsCollectionsProducts.js +2 -1
- package/dist/methods/putProductsCollectionsRenew.js +2 -1
- package/dist/methods/putProductsDescriptions.js +1 -0
- package/dist/methods/putProductsGroupsMainProduct.js +1 -0
- package/dist/methods/putProductsGroupsOrder.js +1 -0
- package/dist/methods/putProductsGroupsSettings.js +1 -0
- package/dist/methods/putProductsImages.js +1 -0
- package/dist/methods/putProductsMarketingPromotion.js +1 -0
- package/dist/methods/putProductsMarketingZones.js +1 -0
- package/dist/methods/putProductsOmnibusPrices.js +1 -0
- package/dist/methods/putProductsParameters.js +1 -0
- package/dist/methods/putProductsQuestions.js +1 -0
- package/dist/methods/putProductsSeries.js +1 -0
- package/dist/methods/putProductsSeriesFilter.js +1 -0
- package/dist/methods/putProductsSizes.js +1 -0
- package/dist/methods/putProductsStockQuantity.js +1 -0
- package/dist/methods/putProductsStocks.js +1 -0
- package/dist/methods/putProductsStrikethroughPrices.js +1 -0
- package/dist/methods/putProductsSupplierCode.js +1 -0
- package/dist/methods/putProductsSupplierProductData.js +1 -0
- package/dist/methods/putResponsibilityEntities.js +1 -0
- package/dist/methods/putReturns.js +1 -0
- package/dist/methods/putReturnsSerialNumber.js +1 -0
- package/dist/methods/putRma.js +1 -0
- package/dist/methods/putSizecharts.js +1 -0
- package/dist/methods/putSizes.js +1 -0
- package/dist/methods/putSnippets.js +1 -0
- package/dist/methods/putSnippetsCampaign.js +1 -0
- package/dist/methods/putSnippetsCookies.js +1 -0
- package/dist/methods/putSystemCurrencies.js +2 -1
- package/dist/methods/putSystemUnits.js +1 -0
- package/dist/methods/putVouchers.js +1 -0
- package/dist/methods/putVouchersBlock.js +1 -0
- package/dist/methods/putVouchersUnblock.js +1 -0
- package/dist/methods/putWarranties.js +1 -0
- package/dist/methods/putWarrantiesLanguageData.js +1 -0
- package/dist/methods/putWmsStocksdocumentsProducts.js +1 -0
- package/dist/methods/putWmsSuppliers.js +1 -0
- package/dist/methods/searchClientsCrm.js +1 -0
- package/dist/methods/searchClientsGiftcards.js +1 -0
- package/dist/methods/searchClientsNewsletterEmail.js +1 -0
- package/dist/methods/searchClientsNewsletterSms.js +1 -0
- package/dist/methods/searchOrders.js +1 -0
- package/dist/methods/searchOrdersOpinions.js +1 -0
- package/dist/methods/searchOrdersUnfinished.js +1 -0
- package/dist/methods/searchPackages.js +1 -0
- package/dist/methods/searchProducts.js +1 -0
- package/dist/methods/searchProductsCategoriesIdosell.js +1 -0
- package/dist/methods/searchProductsDeliveryTime.js +1 -0
- package/dist/methods/searchProductsParameters.js +1 -0
- package/dist/params.js +6 -0
- package/dist/request.js +8 -2
- package/package.json +1 -1
- package/tests/putClientsPricelistsProducts.test.js +1 -1
- package/tests/searchProducts.test.js +1 -1
package/changelog.md
CHANGED
|
@@ -5,6 +5,13 @@ 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.3.6] - 2025-05-24
|
|
9
|
+
### Changed
|
|
10
|
+
- Idosell v5.4 - Added support to subscription methods
|
|
11
|
+
- Idosell v5.6 - Added params to getProductOpinions
|
|
12
|
+
- Enforce arrays where parameters require to i.e. idosellRequest.searchParams.returnElements('code') instead of .returnElements(['code'])
|
|
13
|
+
|
|
14
|
+
|
|
8
15
|
## [0.3.5] - 2025-05-10
|
|
9
16
|
### Changed
|
|
10
17
|
- Added enums
|
package/dist/app.d.ts
CHANGED
|
@@ -30,7 +30,8 @@ export type GatewayRequestProxyObject = {
|
|
|
30
30
|
custom?: Record<string,Function>,
|
|
31
31
|
snakeCase?: boolean,
|
|
32
32
|
next?: boolean,
|
|
33
|
-
rootparams?: boolean
|
|
33
|
+
rootparams?: string|boolean,
|
|
34
|
+
arrays?: string[]
|
|
34
35
|
} & RequestProxyObject;
|
|
35
36
|
|
|
36
37
|
export interface Gateway<R = JSObject> {
|
package/dist/gates.js
CHANGED
|
@@ -263,6 +263,7 @@ import getSnippets from "./methods/getSnippets.js";
|
|
|
263
263
|
import postSnippets from "./methods/postSnippets.js";
|
|
264
264
|
import putSnippets from "./methods/putSnippets.js";
|
|
265
265
|
import deleteSnippets from "./methods/deleteSnippets.js";
|
|
266
|
+
import postSubscriptionsAddProduct from "./methods/postSubscriptionsAddProduct.js";
|
|
266
267
|
import postSubscriptionsChangeDeliveryDates from "./methods/postSubscriptionsChangeDeliveryDates.js";
|
|
267
268
|
import postSubscriptionsChangePriceAutoUpdate from "./methods/postSubscriptionsChangePriceAutoUpdate.js";
|
|
268
269
|
import postSubscriptionsChangeStatus from "./methods/postSubscriptionsChangeStatus.js";
|
|
@@ -581,6 +582,7 @@ const gates = {
|
|
|
581
582
|
postSnippets,
|
|
582
583
|
putSnippets,
|
|
583
584
|
deleteSnippets,
|
|
585
|
+
postSubscriptionsAddProduct,
|
|
584
586
|
postSubscriptionsChangeDeliveryDates,
|
|
585
587
|
postSubscriptionsChangePriceAutoUpdate,
|
|
586
588
|
postSubscriptionsChangeStatus,
|
package/dist/gateways.d.ts
CHANGED
|
@@ -2588,6 +2588,10 @@ export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOp
|
|
|
2588
2588
|
products: (value: Object) => this;
|
|
2589
2589
|
/** Customer data. */
|
|
2590
2590
|
clients: (value: Object) => this;
|
|
2591
|
+
/** Review positive score data */
|
|
2592
|
+
scorePositive: (value: Object) => this;
|
|
2593
|
+
/** Review negative score data */
|
|
2594
|
+
scoreNegative: (value: Object) => this;
|
|
2591
2595
|
/** Date range */
|
|
2592
2596
|
dateRange: (value: Object) => this;
|
|
2593
2597
|
/** Page with results number. Numeration starts from 0 */
|
|
@@ -4153,53 +4157,109 @@ export interface DeleteSnippetsRequest extends Gateway {
|
|
|
4153
4157
|
id: (value: number|string|number[]|string[]) => this;
|
|
4154
4158
|
}
|
|
4155
4159
|
|
|
4160
|
+
export interface PostSubscriptionsAddProductRequest extends Gateway {
|
|
4161
|
+
/** Id of subscription */
|
|
4162
|
+
subscriptionId: (value: number|string) => this;
|
|
4163
|
+
/** Collection of products to edit */
|
|
4164
|
+
products: (value: Array<JSObject>) => this;
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4156
4167
|
export interface PostSubscriptionsChangeDeliveryDatesRequest extends Gateway {
|
|
4157
|
-
|
|
4168
|
+
/** Subscription ids */
|
|
4169
|
+
subscriptionIds: (value: number|string|number[]|string[]) => this;
|
|
4170
|
+
/** Settings that determinates if price should be updated automaticly */
|
|
4171
|
+
upcomingDeliveryDate: (value: string) => this;
|
|
4172
|
+
/** A setting that determines whether to also change the date of the next delivery. */
|
|
4173
|
+
changeNextDeliveryDate: (value: Boolean) => this;
|
|
4158
4174
|
}
|
|
4159
4175
|
|
|
4160
4176
|
export interface PostSubscriptionsChangePriceAutoUpdateRequest extends Gateway {
|
|
4161
|
-
|
|
4177
|
+
/** Subscription ids */
|
|
4178
|
+
subscriptionIds: (value: number|string|number[]|string[]) => this;
|
|
4179
|
+
/** Settings that determinates if price should be updated automaticly */
|
|
4180
|
+
autoPriceUpdate: (value: Boolean) => this;
|
|
4162
4181
|
}
|
|
4163
4182
|
|
|
4164
4183
|
export interface PostSubscriptionsChangeStatusRequest extends Gateway {
|
|
4165
|
-
|
|
4184
|
+
/** Subscription ids */
|
|
4185
|
+
subscriptionIds: (value: number|string|number[]|string[]) => this;
|
|
4186
|
+
/** Status to set */
|
|
4187
|
+
subscriptionStatus: (value: 'active'|'hold'|'nonpayment'|'finished') => this;
|
|
4188
|
+
/** Option allowing sending e-mail after status change */
|
|
4189
|
+
sendMailAfterStatusChange: (value: Boolean) => this;
|
|
4190
|
+
/** Optian allowing sending SMS after status change */
|
|
4191
|
+
sendSMSAfterStatusChange: (value: Boolean) => this;
|
|
4166
4192
|
}
|
|
4167
4193
|
|
|
4168
4194
|
export interface PostSubscriptionsDeleteProductRequest extends Gateway {
|
|
4169
|
-
|
|
4195
|
+
/** Id of subscription */
|
|
4196
|
+
subscriptionId: (value: number|string) => this;
|
|
4197
|
+
/** Ids in products table to delete */
|
|
4198
|
+
idsToDelete: (value: number|string|number[]|string[]) => this;
|
|
4170
4199
|
}
|
|
4171
4200
|
|
|
4172
4201
|
export interface PostSubscriptionsEditRequest extends Gateway {
|
|
4173
|
-
/**
|
|
4174
|
-
|
|
4202
|
+
/** Subscription */
|
|
4203
|
+
subscriptionModels: (value: Array<JSObject>) => this;
|
|
4175
4204
|
}
|
|
4176
4205
|
|
|
4177
4206
|
export interface PostSubscriptionsEditProductRequest extends Gateway {
|
|
4178
|
-
|
|
4207
|
+
/** Id of subscription */
|
|
4208
|
+
subscriptionId: (value: number|string) => this;
|
|
4209
|
+
/** Collection of products to edit */
|
|
4210
|
+
products: (value: Array<JSObject>) => this;
|
|
4179
4211
|
}
|
|
4180
4212
|
|
|
4181
4213
|
export interface PostSubscriptionsItemsListRequest extends Gateway {
|
|
4182
|
-
|
|
4214
|
+
filter: (value: Object) => this;
|
|
4215
|
+
orderBy: (value: Object) => this;
|
|
4216
|
+
/** Pagination settings. */
|
|
4217
|
+
pagination: (value: Object) => this;
|
|
4183
4218
|
}
|
|
4184
4219
|
|
|
4185
4220
|
export interface PostSubscriptionsListViewFetchIdsRequest extends Gateway {
|
|
4186
|
-
/**
|
|
4187
|
-
|
|
4221
|
+
/** Subscription IDs */
|
|
4222
|
+
ids: (value: number|string|number[]|string[]) => this;
|
|
4223
|
+
/** Subscription statuses */
|
|
4224
|
+
statuses: (value: string|string[]) => this;
|
|
4225
|
+
/** Client ID */
|
|
4226
|
+
clientId: (value: number|string) => this;
|
|
4227
|
+
/** Shop ID */
|
|
4228
|
+
shopId: (value: number|string) => this;
|
|
4229
|
+
/** Price change mode */
|
|
4230
|
+
priceChangeMode: (value: 'auto'|'manual') => this;
|
|
4231
|
+
/** A universal structure for time intervals. */
|
|
4232
|
+
createDateTime: (value: Object) => this;
|
|
4233
|
+
/** A universal structure for time intervals. */
|
|
4234
|
+
finishDateTime: (value: Object) => this;
|
|
4235
|
+
/** Universal structure for intervals. */
|
|
4236
|
+
upcomingDeliveryDate: (value: Object) => this;
|
|
4237
|
+
/** Universal structure for intervals. */
|
|
4238
|
+
nextDeliveryDate: (value: Object) => this;
|
|
4239
|
+
/** Text search phrase */
|
|
4240
|
+
textSearch: (value: string) => this;
|
|
4188
4241
|
}
|
|
4189
4242
|
|
|
4190
4243
|
export interface PostSubscriptionsListViewListRequest extends Gateway {
|
|
4191
|
-
|
|
4192
|
-
|
|
4244
|
+
select: (value: Object) => this;
|
|
4245
|
+
/** Filters that limit the result of a customer query. */
|
|
4246
|
+
filter: (value: Object) => this;
|
|
4247
|
+
/** Order by settings. */
|
|
4248
|
+
orderBy: (value: Object) => this;
|
|
4249
|
+
/** Pagination settings. */
|
|
4250
|
+
pagination: (value: Object) => this;
|
|
4193
4251
|
}
|
|
4194
4252
|
|
|
4195
4253
|
export interface PostSubscriptionsSetRebateCodeRequest extends Gateway {
|
|
4196
|
-
/**
|
|
4197
|
-
|
|
4254
|
+
/** Subscription ID */
|
|
4255
|
+
id: (value: number|string) => this;
|
|
4256
|
+
/** Code value */
|
|
4257
|
+
code: (value: string) => this;
|
|
4198
4258
|
}
|
|
4199
4259
|
|
|
4200
4260
|
export interface PostSubscriptionsUnsetRebateCodeRequest extends Gateway {
|
|
4201
|
-
/**
|
|
4202
|
-
|
|
4261
|
+
/** Subscription ID */
|
|
4262
|
+
id: (value: number|string) => this;
|
|
4203
4263
|
}
|
|
4204
4264
|
|
|
4205
4265
|
export interface GetSystemConfigRequest extends Gateway<GetConfigResponse> {}
|
|
@@ -4958,6 +5018,7 @@ export interface Gateways {
|
|
|
4958
5018
|
postSnippets: PostSnippetsRequest,
|
|
4959
5019
|
putSnippets: PutSnippetsRequest,
|
|
4960
5020
|
deleteSnippets: DeleteSnippetsRequest,
|
|
5021
|
+
postSubscriptionsAddProduct: PostSubscriptionsAddProductRequest,
|
|
4961
5022
|
postSubscriptionsChangeDeliveryDates: PostSubscriptionsChangeDeliveryDatesRequest,
|
|
4962
5023
|
postSubscriptionsChangePriceAutoUpdate: PostSubscriptionsChangePriceAutoUpdateRequest,
|
|
4963
5024
|
postSubscriptionsChangeStatus: PostSubscriptionsChangeStatusRequest,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
export default (object) => {
|
|
3
3
|
object.gate = { method: 'post', node: '/clients/tags/delete' };
|
|
4
|
-
object.rootparams =
|
|
4
|
+
object.rootparams = "params";
|
|
5
5
|
object.appendable = {
|
|
6
6
|
except: [],
|
|
7
7
|
arrayNode: "params",
|
|
8
8
|
index: 0
|
|
9
9
|
};
|
|
10
|
+
object.arrays = ["params"];
|
|
10
11
|
return new Proxy(object, paramsProxy);
|
|
11
12
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
export default (object) => {
|
|
3
3
|
object.gate = { method: 'post', node: '/discounts/groups/products/delete' };
|
|
4
|
+
object.arrays = ["products", "producers", "series", "categories", "menuItems"];
|
|
4
5
|
return new Proxy(object, paramsProxy);
|
|
5
6
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
export default (object) => {
|
|
3
3
|
object.gate = { method: 'post', node: '/products/bundles/products/delete' };
|
|
4
|
-
object.rootparams =
|
|
4
|
+
object.rootparams = "params";
|
|
5
5
|
object.appendable = {
|
|
6
6
|
except: [],
|
|
7
7
|
arrayNode: "params",
|
|
8
8
|
index: 0
|
|
9
9
|
};
|
|
10
|
+
object.arrays = ["params"];
|
|
10
11
|
return new Proxy(object, paramsProxy);
|
|
11
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
export default (object) => {
|
|
3
3
|
object.gate = { method: 'post', node: '/products/collections/products/delete' };
|
|
4
|
-
object.rootparams =
|
|
4
|
+
object.rootparams = "params";
|
|
5
5
|
object.appendable = {
|
|
6
6
|
except: [],
|
|
7
7
|
arrayNode: "params",
|
|
8
8
|
index: 0
|
|
9
9
|
};
|
|
10
|
+
object.arrays = ["params"];
|
|
10
11
|
return new Proxy(object, paramsProxy);
|
|
11
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
export default (object) => {
|
|
3
3
|
object.gate = { method: 'post', node: '/products/images/delete' };
|
|
4
|
-
object.rootparams =
|
|
4
|
+
object.rootparams = "params";
|
|
5
5
|
object.appendable = {
|
|
6
6
|
except: [],
|
|
7
7
|
arrayNode: "params",
|
|
8
8
|
index: 0
|
|
9
9
|
};
|
|
10
|
+
object.arrays = ["params"];
|
|
10
11
|
return new Proxy(object, paramsProxy);
|
|
11
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
export default (object) => {
|
|
3
3
|
object.gate = { method: 'post', node: '/clients/tags' };
|
|
4
|
-
object.rootparams =
|
|
4
|
+
object.rootparams = "params";
|
|
5
5
|
object.appendable = {
|
|
6
6
|
except: [],
|
|
7
7
|
arrayNode: "params",
|
|
8
8
|
index: 0
|
|
9
9
|
};
|
|
10
|
+
object.arrays = ["params"];
|
|
10
11
|
return new Proxy(object, paramsProxy);
|
|
11
12
|
};
|
package/dist/methods/postCpa.js
CHANGED
package/dist/methods/postMenu.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
export default (object) => {
|
|
3
3
|
object.gate = { method: 'post', node: '/products/bundles/bundles' };
|
|
4
|
-
object.rootparams =
|
|
4
|
+
object.rootparams = "params";
|
|
5
5
|
object.appendable = {
|
|
6
6
|
except: [],
|
|
7
7
|
arrayNode: "params",
|
|
8
8
|
index: 0
|
|
9
9
|
};
|
|
10
|
+
object.arrays = ["params"];
|
|
10
11
|
return new Proxy(object, paramsProxy);
|
|
11
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
export default (object) => {
|
|
3
3
|
object.gate = { method: 'post', node: '/products/bundles/products' };
|
|
4
|
-
object.rootparams =
|
|
4
|
+
object.rootparams = "params";
|
|
5
5
|
object.appendable = {
|
|
6
6
|
except: [],
|
|
7
7
|
arrayNode: "params",
|
|
8
8
|
index: 0
|
|
9
9
|
};
|
|
10
|
+
object.arrays = ["params"];
|
|
10
11
|
return new Proxy(object, paramsProxy);
|
|
11
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
export default (object) => {
|
|
3
3
|
object.gate = { method: 'post', node: '/products/collections' };
|
|
4
|
-
object.rootparams =
|
|
4
|
+
object.rootparams = "params";
|
|
5
5
|
object.appendable = {
|
|
6
6
|
except: [],
|
|
7
7
|
arrayNode: "params",
|
|
8
8
|
index: 0
|
|
9
9
|
};
|
|
10
|
+
object.arrays = ["params"];
|
|
10
11
|
return new Proxy(object, paramsProxy);
|
|
11
12
|
};
|