@wix/auto_sdk_ecom_discount-rules 1.0.79 → 1.0.81
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/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +8 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +10 -3
- package/build/cjs/index.typings.js +8 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +5 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +10 -3
- package/build/es/index.typings.mjs +5 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +8 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +10 -3
- package/build/internal/cjs/index.typings.js +8 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +5 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +10 -3
- package/build/internal/es/index.typings.mjs +5 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { DiscountRule, CreateDiscountRuleApplicationErrors, CreateDiscountRuleValidationErrors, UpdateDiscountRule, DiscountRuleCreatedEnvelope, DiscountRuleDeletedEnvelope, DiscountRuleUpdatedEnvelope, DiscountRulesQueryBuilder, DiscountRuleQuery, typedQueryDiscountRules } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, ActiveTimeInfo, Address, And, AppliedDiscount, AppliedDiscountRule, AppliedSubjectType, AppliedSubjectTypeWithLiterals, BaseEventMetadata, BuyXGetYInfo, BuyerInfo, CatalogItemFilter, CatalogReference, CommonQueryWithEntityContext, ContactSegments, ContactTags, CreateDiscountRuleRequest, CreateDiscountRuleResponse, CursorPaging, Cursors, Custom, CustomFilter, CustomerBuy, CustomerBuyConditionOneOf, CustomerEligibility, CustomerEligibilityOptionsOneOf, CustomerGet, DayOfWeek, DayOfWeekWithLiterals, DeleteDiscountRuleRequest, DeleteDiscountRuleResponse, Discount, DiscountConfig, DiscountDiscountOneOf, DiscountRuleName, DiscountRuleQuerySpec, DiscountRuleUsageLimitReached, DiscountRulesQueryResult, DiscountSettings, DiscountTrigger, DiscountTriggerTriggerOneOf, DiscountType, DiscountTypeWithLiterals, Discounts, DomainEvent, DomainEventBodyOneOf, EligibilityType, EligibilityTypeWithLiterals, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetAppliedDiscountsRequest, GetAppliedDiscountsResponse, GetDiscountRuleRequest, GetDiscountRuleResponse, IdentificationData, IdentificationDataIdOneOf, IndividualMembers, ItemCombination, ItemCombinationLineItem, ItemQuantityRange, LineItem, MessageEnvelope, MultiCurrencyPrice, Or, PlatformPaging, PlatformPagingMetadata, PlatformQuery, PlatformQueryPagingMethodOneOf, QuantityBased, QueryDiscountRulesRequest, QueryDiscountRulesResponse, Recurrence, RestoreInfo, Scope, ScopeScopeItemsOneOf, ScopeType, ScopeTypeWithLiterals, ShippingInfo, SortOrder, SortOrderWithLiterals, Sorting, SpecificItemsInfo, Status, StatusWithLiterals, SubtotalRange, TagReference, TimeOfDay, TimeWindow, TriggerType, TriggerTypeWithLiterals, Type, TypeWithLiterals, UpdateDiscountRuleRequest, UpdateDiscountRuleResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklySchedule } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, ActiveTimeInfo, Address, And, AppliedDiscount, AppliedDiscountRule, AppliedSubjectType, AppliedSubjectTypeWithLiterals, BaseEventMetadata, BuyXGetYInfo, BuyerInfo, CatalogItemFilter, CatalogReference, CommonQueryWithEntityContext, ContactSegments, ContactTags, CreateDiscountRuleRequest, CreateDiscountRuleResponse, CursorPaging, Cursors, Custom, CustomFilter, CustomerBuy, CustomerBuyConditionOneOf, CustomerEligibility, CustomerEligibilityOptionsOneOf, CustomerGet, DayOfWeek, DayOfWeekWithLiterals, DeleteDiscountRuleRequest, DeleteDiscountRuleResponse, Discount, DiscountConfig, DiscountDiscountOneOf, DiscountRuleName, DiscountRuleQuerySpec, DiscountRuleUsageLimitReached, DiscountRulesQueryResult, DiscountSettings, DiscountTrigger, DiscountTriggerTriggerOneOf, DiscountType, DiscountTypeWithLiterals, Discounts, DomainEvent, DomainEventBodyOneOf, EligibilityType, EligibilityTypeWithLiterals, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, GetAppliedDiscountsRequest, GetAppliedDiscountsResponse, GetDiscountRuleRequest, GetDiscountRuleResponse, IdentificationData, IdentificationDataIdOneOf, IndividualMembers, ItemCombination, ItemCombinationLineItem, ItemQuantityRange, LineItem, MessageEnvelope, MultiCurrencyPrice, Or, PlatformPaging, PlatformPagingMetadata, PlatformQuery, PlatformQueryPagingMethodOneOf, QuantityBased, QueryBuilder, QueryDiscountRulesRequest, QueryDiscountRulesResponse, Recurrence, RestoreInfo, Scope, ScopeScopeItemsOneOf, ScopeType, ScopeTypeWithLiterals, ShippingInfo, Sort, SortOrder, SortOrderWithLiterals, Sorting, SpecificItemsInfo, Status, StatusWithLiterals, SubtotalRange, TagReference, TimeOfDay, TimeWindow, TriggerType, TriggerTypeWithLiterals, Type, TypeWithLiterals, UpdateDiscountRuleRequest, UpdateDiscountRuleResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklySchedule } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createDiscountRule$1(httpClient: HttpClient): CreateDiscountRuleSignature;
|
|
6
6
|
interface CreateDiscountRuleSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -24,7 +24,10 @@ __export(index_exports, {
|
|
|
24
24
|
DayOfWeek: () => DayOfWeek,
|
|
25
25
|
DiscountType: () => DiscountType,
|
|
26
26
|
EligibilityType: () => EligibilityType,
|
|
27
|
+
Filter: () => Filter,
|
|
28
|
+
QueryBuilder: () => QueryBuilder,
|
|
27
29
|
ScopeType: () => ScopeType,
|
|
30
|
+
Sort: () => Sort,
|
|
28
31
|
SortOrder: () => SortOrder,
|
|
29
32
|
Status: () => Status,
|
|
30
33
|
TriggerType: () => TriggerType,
|
|
@@ -304,6 +307,7 @@ function queryDiscountRules(payload) {
|
|
|
304
307
|
|
|
305
308
|
// src/ecom-discounts-v1-discount-rule-discount-rules.universal.ts
|
|
306
309
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
310
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
307
311
|
var ScopeType = /* @__PURE__ */ ((ScopeType2) => {
|
|
308
312
|
ScopeType2["UNDEFINED_SCOPE"] = "UNDEFINED_SCOPE";
|
|
309
313
|
ScopeType2["CATALOG_ITEM"] = "CATALOG_ITEM";
|
|
@@ -541,6 +545,7 @@ async function typedQueryDiscountRules(query) {
|
|
|
541
545
|
throw transformedError;
|
|
542
546
|
}
|
|
543
547
|
}
|
|
548
|
+
var { QueryBuilder, Filter, Sort } = (0, import_query_builder_utils.createQueryUtils)();
|
|
544
549
|
|
|
545
550
|
// src/ecom-discounts-v1-discount-rule-discount-rules.public.ts
|
|
546
551
|
function createDiscountRule3(httpClient) {
|
|
@@ -694,7 +699,10 @@ var onDiscountRuleUpdated2 = (0, import_event_definition_modules.createEventModu
|
|
|
694
699
|
DayOfWeek,
|
|
695
700
|
DiscountType,
|
|
696
701
|
EligibilityType,
|
|
702
|
+
Filter,
|
|
703
|
+
QueryBuilder,
|
|
697
704
|
ScopeType,
|
|
705
|
+
Sort,
|
|
698
706
|
SortOrder,
|
|
699
707
|
Status,
|
|
700
708
|
TriggerType,
|