@wix/auto_sdk_loyalty_rewards 1.0.21 → 1.0.23
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/meta.d.ts +169 -1
- package/build/cjs/meta.js +27 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +169 -1
- package/build/es/meta.mjs +24 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +169 -1
- package/build/internal/cjs/meta.js +27 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +169 -1
- package/build/internal/es/meta.mjs +24 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -231,6 +231,20 @@ interface Group {
|
|
|
231
231
|
/** Entity ID, if the coupon scope is limited to just 1 item. */
|
|
232
232
|
entityId?: string | null;
|
|
233
233
|
}
|
|
234
|
+
interface SpiDiscountAmount {
|
|
235
|
+
/**
|
|
236
|
+
* Discount details for each tier.
|
|
237
|
+
* @maxSize 21
|
|
238
|
+
*/
|
|
239
|
+
configsByTier?: DiscountAmountConfig[];
|
|
240
|
+
/**
|
|
241
|
+
* Description of the SPI discount amount reward. Taken from user input in the SPI config.
|
|
242
|
+
* @maxLength 200
|
|
243
|
+
*/
|
|
244
|
+
description?: string;
|
|
245
|
+
}
|
|
246
|
+
interface RewardDisabled {
|
|
247
|
+
}
|
|
234
248
|
interface CreateRewardRequest {
|
|
235
249
|
/** Reward to create. */
|
|
236
250
|
reward: Reward;
|
|
@@ -451,6 +465,160 @@ interface PagingMetadataV2 {
|
|
|
451
465
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
452
466
|
cursors?: Cursors;
|
|
453
467
|
}
|
|
468
|
+
interface ListRewardsInTierRequest {
|
|
469
|
+
/**
|
|
470
|
+
* Tier ID.
|
|
471
|
+
* @format GUID
|
|
472
|
+
* @readonly
|
|
473
|
+
*/
|
|
474
|
+
tierId?: string | null;
|
|
475
|
+
/** Pagination options. */
|
|
476
|
+
cursorPaging?: CursorPaging;
|
|
477
|
+
}
|
|
478
|
+
interface ListRewardsInTierResponse {
|
|
479
|
+
/** Retrieved loyalty rewards. */
|
|
480
|
+
rewards?: Reward[];
|
|
481
|
+
/** Details on the paged set of results returned. */
|
|
482
|
+
pagingMetadata?: PagingMetadataV2;
|
|
483
|
+
}
|
|
484
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
485
|
+
createdEvent?: EntityCreatedEvent;
|
|
486
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
487
|
+
deletedEvent?: EntityDeletedEvent;
|
|
488
|
+
actionEvent?: ActionEvent;
|
|
489
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
490
|
+
id?: string;
|
|
491
|
+
/**
|
|
492
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
493
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
494
|
+
*/
|
|
495
|
+
entityFqdn?: string;
|
|
496
|
+
/**
|
|
497
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
498
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
499
|
+
*/
|
|
500
|
+
slug?: string;
|
|
501
|
+
/** ID of the entity associated with the event. */
|
|
502
|
+
entityId?: string;
|
|
503
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
504
|
+
eventTime?: Date | null;
|
|
505
|
+
/**
|
|
506
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
507
|
+
* (for example, GDPR).
|
|
508
|
+
*/
|
|
509
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
510
|
+
/** If present, indicates the action that triggered the event. */
|
|
511
|
+
originatedFrom?: string | null;
|
|
512
|
+
/**
|
|
513
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
514
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
515
|
+
*/
|
|
516
|
+
entityEventSequence?: string | null;
|
|
517
|
+
}
|
|
518
|
+
/** @oneof */
|
|
519
|
+
interface DomainEventBodyOneOf {
|
|
520
|
+
createdEvent?: EntityCreatedEvent;
|
|
521
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
522
|
+
deletedEvent?: EntityDeletedEvent;
|
|
523
|
+
actionEvent?: ActionEvent;
|
|
524
|
+
}
|
|
525
|
+
interface EntityCreatedEvent {
|
|
526
|
+
entityAsJson?: string;
|
|
527
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
528
|
+
restoreInfo?: RestoreInfo;
|
|
529
|
+
}
|
|
530
|
+
interface RestoreInfo {
|
|
531
|
+
deletedDate?: Date | null;
|
|
532
|
+
}
|
|
533
|
+
interface EntityUpdatedEvent {
|
|
534
|
+
/**
|
|
535
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
536
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
537
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
538
|
+
*/
|
|
539
|
+
currentEntityAsJson?: string;
|
|
540
|
+
}
|
|
541
|
+
interface EntityDeletedEvent {
|
|
542
|
+
/** Entity that was deleted. */
|
|
543
|
+
deletedEntityAsJson?: string | null;
|
|
544
|
+
}
|
|
545
|
+
interface ActionEvent {
|
|
546
|
+
bodyAsJson?: string;
|
|
547
|
+
}
|
|
548
|
+
interface Empty {
|
|
549
|
+
}
|
|
550
|
+
interface MessageEnvelope {
|
|
551
|
+
/**
|
|
552
|
+
* App instance ID.
|
|
553
|
+
* @format GUID
|
|
554
|
+
*/
|
|
555
|
+
instanceId?: string | null;
|
|
556
|
+
/**
|
|
557
|
+
* Event type.
|
|
558
|
+
* @maxLength 150
|
|
559
|
+
*/
|
|
560
|
+
eventType?: string;
|
|
561
|
+
/** The identification type and identity data. */
|
|
562
|
+
identity?: IdentificationData;
|
|
563
|
+
/** Stringify payload. */
|
|
564
|
+
data?: string;
|
|
565
|
+
}
|
|
566
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
567
|
+
/**
|
|
568
|
+
* ID of a site visitor that has not logged in to the site.
|
|
569
|
+
* @format GUID
|
|
570
|
+
*/
|
|
571
|
+
anonymousVisitorId?: string;
|
|
572
|
+
/**
|
|
573
|
+
* ID of a site visitor that has logged in to the site.
|
|
574
|
+
* @format GUID
|
|
575
|
+
*/
|
|
576
|
+
memberId?: string;
|
|
577
|
+
/**
|
|
578
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
579
|
+
* @format GUID
|
|
580
|
+
*/
|
|
581
|
+
wixUserId?: string;
|
|
582
|
+
/**
|
|
583
|
+
* ID of an app.
|
|
584
|
+
* @format GUID
|
|
585
|
+
*/
|
|
586
|
+
appId?: string;
|
|
587
|
+
/** @readonly */
|
|
588
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
589
|
+
}
|
|
590
|
+
/** @oneof */
|
|
591
|
+
interface IdentificationDataIdOneOf {
|
|
592
|
+
/**
|
|
593
|
+
* ID of a site visitor that has not logged in to the site.
|
|
594
|
+
* @format GUID
|
|
595
|
+
*/
|
|
596
|
+
anonymousVisitorId?: string;
|
|
597
|
+
/**
|
|
598
|
+
* ID of a site visitor that has logged in to the site.
|
|
599
|
+
* @format GUID
|
|
600
|
+
*/
|
|
601
|
+
memberId?: string;
|
|
602
|
+
/**
|
|
603
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
604
|
+
* @format GUID
|
|
605
|
+
*/
|
|
606
|
+
wixUserId?: string;
|
|
607
|
+
/**
|
|
608
|
+
* ID of an app.
|
|
609
|
+
* @format GUID
|
|
610
|
+
*/
|
|
611
|
+
appId?: string;
|
|
612
|
+
}
|
|
613
|
+
declare enum WebhookIdentityType {
|
|
614
|
+
UNKNOWN = "UNKNOWN",
|
|
615
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
616
|
+
MEMBER = "MEMBER",
|
|
617
|
+
WIX_USER = "WIX_USER",
|
|
618
|
+
APP = "APP"
|
|
619
|
+
}
|
|
620
|
+
/** @enumType */
|
|
621
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
454
622
|
|
|
455
623
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
456
624
|
getUrl: (context: any) => string;
|
|
@@ -477,4 +645,4 @@ declare function deleteReward(): __PublicMethodMetaInfo<'DELETE', {
|
|
|
477
645
|
}, DeleteRewardRequest$1, DeleteRewardRequest, DeleteRewardResponse$1, DeleteRewardResponse>;
|
|
478
646
|
declare function listRewards(): __PublicMethodMetaInfo<'GET', {}, ListRewardsRequest$1, ListRewardsRequest, ListRewardsResponse$1, ListRewardsResponse>;
|
|
479
647
|
|
|
480
|
-
export { type __PublicMethodMetaInfo, bulkCreateRewards, bulkGetRewards, createReward, deleteReward, getReward, listRewards, queryRewards, updateReward };
|
|
648
|
+
export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateRewardsRequest as BulkCreateRewardsRequestOriginal, type BulkCreateRewardsResponse as BulkCreateRewardsResponseOriginal, type BulkGetRewardsRequest as BulkGetRewardsRequestOriginal, type BulkGetRewardsResponse as BulkGetRewardsResponseOriginal, type BulkRewardResult as BulkRewardResultOriginal, type CouponRewardDiscountTypeOneOf as CouponRewardDiscountTypeOneOfOriginal, type CouponReward as CouponRewardOriginal, type CouponRewardScopeOrMinSubtotalOneOf as CouponRewardScopeOrMinSubtotalOneOfOriginal, type CouponScope as CouponScopeOriginal, type CreateRewardRequest as CreateRewardRequestOriginal, type CreateRewardResponse as CreateRewardResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteRewardRequest as DeleteRewardRequestOriginal, type DeleteRewardResponse as DeleteRewardResponseOriginal, type DiscountAmountConfig as DiscountAmountConfigOriginal, type DiscountAmount as DiscountAmountOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FixedAmountDiscountConfig as FixedAmountDiscountConfigOriginal, type FixedAmountDiscount as FixedAmountDiscountOriginal, type FreeShippingDiscountConfig as FreeShippingDiscountConfigOriginal, type FreeShippingDiscount as FreeShippingDiscountOriginal, type GetRewardRequest as GetRewardRequestOriginal, type GetRewardResponse as GetRewardResponseOriginal, type Group as GroupOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type ListRewardsInTierRequest as ListRewardsInTierRequestOriginal, type ListRewardsInTierResponse as ListRewardsInTierResponseOriginal, type ListRewardsRequest as ListRewardsRequestOriginal, type ListRewardsResponse as ListRewardsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type PercentageDiscountConfig as PercentageDiscountConfigOriginal, type PercentageDiscount as PercentageDiscountOriginal, type QueryRewardsRequest as QueryRewardsRequestOriginal, type QueryRewardsResponse as QueryRewardsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RewardDisabled as RewardDisabledOriginal, type Reward as RewardOriginal, type RewardTypeDetailsOneOf as RewardTypeDetailsOneOfOriginal, RewardType as RewardTypeOriginal, type RewardTypeWithLiterals as RewardTypeWithLiteralsOriginal, type RewardsInSite as RewardsInSiteOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SpiDiscountAmount as SpiDiscountAmountOriginal, type UpdateRewardRequest as UpdateRewardRequestOriginal, type UpdateRewardResponse as UpdateRewardResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateRewards, bulkGetRewards, createReward, deleteReward, getReward, listRewards, queryRewards, updateReward };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
RewardTypeOriginal: () => RewardType,
|
|
24
|
+
SortOrderOriginal: () => SortOrder,
|
|
25
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
23
26
|
bulkCreateRewards: () => bulkCreateRewards2,
|
|
24
27
|
bulkGetRewards: () => bulkGetRewards2,
|
|
25
28
|
createReward: () => createReward2,
|
|
@@ -462,6 +465,27 @@ function listRewards(payload) {
|
|
|
462
465
|
return __listRewards;
|
|
463
466
|
}
|
|
464
467
|
|
|
468
|
+
// src/loyalty-v1-reward-rewards.types.ts
|
|
469
|
+
var RewardType = /* @__PURE__ */ ((RewardType2) => {
|
|
470
|
+
RewardType2["UNDEFINED"] = "UNDEFINED";
|
|
471
|
+
RewardType2["DISCOUNT_AMOUNT"] = "DISCOUNT_AMOUNT";
|
|
472
|
+
RewardType2["COUPON_REWARD"] = "COUPON_REWARD";
|
|
473
|
+
return RewardType2;
|
|
474
|
+
})(RewardType || {});
|
|
475
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
476
|
+
SortOrder2["ASC"] = "ASC";
|
|
477
|
+
SortOrder2["DESC"] = "DESC";
|
|
478
|
+
return SortOrder2;
|
|
479
|
+
})(SortOrder || {});
|
|
480
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
481
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
482
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
483
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
484
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
485
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
486
|
+
return WebhookIdentityType2;
|
|
487
|
+
})(WebhookIdentityType || {});
|
|
488
|
+
|
|
465
489
|
// src/loyalty-v1-reward-rewards.meta.ts
|
|
466
490
|
function createReward2() {
|
|
467
491
|
const payload = {};
|
|
@@ -609,6 +633,9 @@ function listRewards2() {
|
|
|
609
633
|
}
|
|
610
634
|
// Annotate the CommonJS export names for ESM import in node:
|
|
611
635
|
0 && (module.exports = {
|
|
636
|
+
RewardTypeOriginal,
|
|
637
|
+
SortOrderOriginal,
|
|
638
|
+
WebhookIdentityTypeOriginal,
|
|
612
639
|
bulkCreateRewards,
|
|
613
640
|
bulkGetRewards,
|
|
614
641
|
createReward,
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/loyalty-v1-reward-rewards.http.ts","../../src/loyalty-v1-reward-rewards.meta.ts"],"sourcesContent":["export * from './src/loyalty-v1-reward-rewards.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/loyalty-rewards',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/loyalty-rewards',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_loyalty_rewards';\n\n/**\n * Creates a reward that customers can redeem with loyalty points.\n *\n * When a customer redeems a reward, a loyalty coupon is created\n * based on the specifications detailed in the `discountAmount` or `couponReward` fields. The customer can\n * then use this coupon to receive the discount. Note that while the Rewards API uses coupon scopes and specifications,\n * no coupon is actually created until a customer redeems a reward with points.\n * See the Coupons API for more information about coupons. You can't update the `type` of reward after it's created.\n *\n * A reward's `active` status defaults to `false`. To make the reward available to customers,\n * either set the `active` field to `true` during creation or call Update Reward\n * to change the status.\n *\n * To customize a reward for each loyalty tier, use `configsByTier`.\n * This allows you to specify the amount of the earned discount, the cost in loyalty points\n * to redeem the reward, and the tier to which this configuration applies. Each tier requires its own\n * `configsByTier` configuration. To create a reward that's available to loyalty accounts in the base tier,\n * leave the `tierId` field empty. See the Tiers API for more information on tiers.\n */\nexport function createReward(payload: object): RequestOptionsFactory<any> {\n function __createReward({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reward.createdDate' }, { path: 'reward.updatedDate' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n { path: 'reward.couponReward.percentage.configsByTier.percentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.CreateReward',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reward.createdDate' },\n { path: 'reward.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'reward.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createReward;\n}\n\n/** Creates multiple rewards. */\nexport function bulkCreateRewards(payload: object): RequestOptionsFactory<any> {\n function __bulkCreateRewards({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'rewards.createdDate' },\n { path: 'rewards.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'rewards.couponReward.minimumSubtotal' },\n { path: 'rewards.couponReward.fixedAmount.configsByTier.amount' },\n { path: 'rewards.couponReward.percentage.configsByTier.percentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.BulkCreateRewards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/bulk/rewards/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.couponReward.minimumSubtotal' },\n {\n path: 'results.item.couponReward.fixedAmount.configsByTier.amount',\n },\n {\n path: 'results.item.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateRewards;\n}\n\n/** Retrieves a reward. */\nexport function getReward(payload: object): RequestOptionsFactory<any> {\n function __getReward({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.GetReward',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reward.createdDate' },\n { path: 'reward.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'reward.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getReward;\n}\n\n/**\n * Retrieves rewards from all metasites that the caller is a member of.\n *\n * Must be called with user identity.\n */\nexport function bulkGetRewards(payload: object): RequestOptionsFactory<any> {\n function __bulkGetRewards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.BulkGetRewards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/bulk/rewards',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'rewardsInSite.rewards.createdDate' },\n { path: 'rewardsInSite.rewards.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'rewardsInSite.rewards.couponReward.minimumSubtotal' },\n {\n path: 'rewardsInSite.rewards.couponReward.fixedAmount.configsByTier.amount',\n },\n {\n path: 'rewardsInSite.rewards.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkGetRewards;\n}\n\n/**\n * Retrieves a list of rewards with the specified paging, filtering, and sorting.\n *\n * Query Rewards runs with these defaults, which you can override: `cursorPaging.limit` is `50`.\n *\n * To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language),[Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging),and [Field Projection](https://dev.wix.com/docs/rest/articles/get-started/field-projection).\n */\nexport function queryRewards(payload: object): RequestOptionsFactory<any> {\n function __queryRewards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.QueryRewards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'rewards.createdDate' },\n { path: 'rewards.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'rewards.couponReward.minimumSubtotal' },\n { path: 'rewards.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'rewards.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryRewards;\n}\n\n/**\n * Updates a loyalty reward.\n *\n * Call this method to update details of a reward, such as the name, whether a reward is active,\n * or the amount of points it costs to redeem. Also call this method to add new tiers that are eligible to redeem a reward.\n *\n * You may not change the `type` of a reward. That's set upon creation and can't be updated.\n */\nexport function updateReward(payload: object): RequestOptionsFactory<any> {\n function __updateReward({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reward.createdDate' }, { path: 'reward.updatedDate' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n { path: 'reward.couponReward.percentage.configsByTier.percentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'PUT' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.UpdateReward',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards/{reward.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reward.createdDate' },\n { path: 'reward.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'reward.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateReward;\n}\n\n/** Deletes a reward. */\nexport function deleteReward(payload: object): RequestOptionsFactory<any> {\n function __deleteReward({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'DELETE' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.DeleteReward',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteReward;\n}\n\n/**\n * Retrieves a list of rewards.\n *\n * The list includes rewards that are currently nonredeemable due to insufficient points held by any customers.\n */\nexport function listRewards(payload: object): RequestOptionsFactory<any> {\n function __listRewards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.ListRewards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'rewards.createdDate' },\n { path: 'rewards.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'rewards.couponReward.minimumSubtotal' },\n { path: 'rewards.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'rewards.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listRewards;\n}\n","import * as ambassadorWixLoyaltyV1Reward from './loyalty-v1-reward-rewards.http.js';\nimport * as ambassadorWixLoyaltyV1RewardTypes from './loyalty-v1-reward-rewards.types.js';\nimport * as ambassadorWixLoyaltyV1RewardUniversalTypes from './loyalty-v1-reward-rewards.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createReward(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.CreateRewardRequest,\n ambassadorWixLoyaltyV1RewardTypes.CreateRewardRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.CreateRewardResponse,\n ambassadorWixLoyaltyV1RewardTypes.CreateRewardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.createReward(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/rewards',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCreateRewards(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.BulkCreateRewardsRequest,\n ambassadorWixLoyaltyV1RewardTypes.BulkCreateRewardsRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.BulkCreateRewardsResponse,\n ambassadorWixLoyaltyV1RewardTypes.BulkCreateRewardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyV1Reward.bulkCreateRewards(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/rewards/create',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getReward(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixLoyaltyV1RewardUniversalTypes.GetRewardRequest,\n ambassadorWixLoyaltyV1RewardTypes.GetRewardRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.GetRewardResponse,\n ambassadorWixLoyaltyV1RewardTypes.GetRewardResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.getReward(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/rewards/{id}',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkGetRewards(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.BulkGetRewardsRequest,\n ambassadorWixLoyaltyV1RewardTypes.BulkGetRewardsRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.BulkGetRewardsResponse,\n ambassadorWixLoyaltyV1RewardTypes.BulkGetRewardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyV1Reward.bulkGetRewards(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/bulk/rewards',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryRewards(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.QueryRewardsRequest,\n ambassadorWixLoyaltyV1RewardTypes.QueryRewardsRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.QueryRewardsResponse,\n ambassadorWixLoyaltyV1RewardTypes.QueryRewardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.queryRewards(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/rewards/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateReward(): __PublicMethodMetaInfo<\n 'PUT',\n { rewardId: string },\n ambassadorWixLoyaltyV1RewardUniversalTypes.UpdateRewardRequest,\n ambassadorWixLoyaltyV1RewardTypes.UpdateRewardRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.UpdateRewardResponse,\n ambassadorWixLoyaltyV1RewardTypes.UpdateRewardResponse\n> {\n const payload = { reward: { id: ':rewardId' } } as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.updateReward(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/rewards/{reward.id}',\n pathParams: { rewardId: 'rewardId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteReward(): __PublicMethodMetaInfo<\n 'DELETE',\n { id: string },\n ambassadorWixLoyaltyV1RewardUniversalTypes.DeleteRewardRequest,\n ambassadorWixLoyaltyV1RewardTypes.DeleteRewardRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.DeleteRewardResponse,\n ambassadorWixLoyaltyV1RewardTypes.DeleteRewardResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.deleteReward(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/rewards/{id}',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listRewards(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.ListRewardsRequest,\n ambassadorWixLoyaltyV1RewardTypes.ListRewardsRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.ListRewardsResponse,\n ambassadorWixLoyaltyV1RewardTypes.ListRewardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.listRewards(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/rewards',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,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;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,UAAU,WAAW;AAAA,IACnC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBAAiD,aAAa,OAAO;AAE3E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,eAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAAiD,YAAY,OAAO;AAE1E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkCreateRewards","bulkGetRewards","createReward","deleteReward","getReward","listRewards","queryRewards","updateReward","import_float","import_timestamp","import_rest_modules","payload","createReward","bulkCreateRewards","getReward","bulkGetRewards","queryRewards","updateReward","deleteReward","listRewards"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/loyalty-v1-reward-rewards.http.ts","../../src/loyalty-v1-reward-rewards.types.ts","../../src/loyalty-v1-reward-rewards.meta.ts"],"sourcesContent":["export * from './src/loyalty-v1-reward-rewards.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/loyalty-rewards',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/loyalty-rewards',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/loyalty-rewards',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_loyalty_rewards';\n\n/**\n * Creates a reward that customers can redeem with loyalty points.\n *\n * When a customer redeems a reward, a loyalty coupon is created\n * based on the specifications detailed in the `discountAmount` or `couponReward` fields. The customer can\n * then use this coupon to receive the discount. Note that while the Rewards API uses coupon scopes and specifications,\n * no coupon is actually created until a customer redeems a reward with points.\n * See the Coupons API for more information about coupons. You can't update the `type` of reward after it's created.\n *\n * A reward's `active` status defaults to `false`. To make the reward available to customers,\n * either set the `active` field to `true` during creation or call Update Reward\n * to change the status.\n *\n * To customize a reward for each loyalty tier, use `configsByTier`.\n * This allows you to specify the amount of the earned discount, the cost in loyalty points\n * to redeem the reward, and the tier to which this configuration applies. Each tier requires its own\n * `configsByTier` configuration. To create a reward that's available to loyalty accounts in the base tier,\n * leave the `tierId` field empty. See the Tiers API for more information on tiers.\n */\nexport function createReward(payload: object): RequestOptionsFactory<any> {\n function __createReward({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reward.createdDate' }, { path: 'reward.updatedDate' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n { path: 'reward.couponReward.percentage.configsByTier.percentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.CreateReward',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reward.createdDate' },\n { path: 'reward.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'reward.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createReward;\n}\n\n/** Creates multiple rewards. */\nexport function bulkCreateRewards(payload: object): RequestOptionsFactory<any> {\n function __bulkCreateRewards({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'rewards.createdDate' },\n { path: 'rewards.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'rewards.couponReward.minimumSubtotal' },\n { path: 'rewards.couponReward.fixedAmount.configsByTier.amount' },\n { path: 'rewards.couponReward.percentage.configsByTier.percentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.BulkCreateRewards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/bulk/rewards/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.couponReward.minimumSubtotal' },\n {\n path: 'results.item.couponReward.fixedAmount.configsByTier.amount',\n },\n {\n path: 'results.item.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateRewards;\n}\n\n/** Retrieves a reward. */\nexport function getReward(payload: object): RequestOptionsFactory<any> {\n function __getReward({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.GetReward',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reward.createdDate' },\n { path: 'reward.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'reward.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getReward;\n}\n\n/**\n * Retrieves rewards from all metasites that the caller is a member of.\n *\n * Must be called with user identity.\n */\nexport function bulkGetRewards(payload: object): RequestOptionsFactory<any> {\n function __bulkGetRewards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.BulkGetRewards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/bulk/rewards',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'rewardsInSite.rewards.createdDate' },\n { path: 'rewardsInSite.rewards.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'rewardsInSite.rewards.couponReward.minimumSubtotal' },\n {\n path: 'rewardsInSite.rewards.couponReward.fixedAmount.configsByTier.amount',\n },\n {\n path: 'rewardsInSite.rewards.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkGetRewards;\n}\n\n/**\n * Retrieves a list of rewards with the specified paging, filtering, and sorting.\n *\n * Query Rewards runs with these defaults, which you can override: `cursorPaging.limit` is `50`.\n *\n * To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language),[Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging),and [Field Projection](https://dev.wix.com/docs/rest/articles/get-started/field-projection).\n */\nexport function queryRewards(payload: object): RequestOptionsFactory<any> {\n function __queryRewards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.QueryRewards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'rewards.createdDate' },\n { path: 'rewards.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'rewards.couponReward.minimumSubtotal' },\n { path: 'rewards.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'rewards.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryRewards;\n}\n\n/**\n * Updates a loyalty reward.\n *\n * Call this method to update details of a reward, such as the name, whether a reward is active,\n * or the amount of points it costs to redeem. Also call this method to add new tiers that are eligible to redeem a reward.\n *\n * You may not change the `type` of a reward. That's set upon creation and can't be updated.\n */\nexport function updateReward(payload: object): RequestOptionsFactory<any> {\n function __updateReward({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'reward.createdDate' }, { path: 'reward.updatedDate' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n { path: 'reward.couponReward.percentage.configsByTier.percentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'PUT' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.UpdateReward',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards/{reward.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'reward.createdDate' },\n { path: 'reward.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'reward.couponReward.minimumSubtotal' },\n { path: 'reward.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'reward.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateReward;\n}\n\n/** Deletes a reward. */\nexport function deleteReward(payload: object): RequestOptionsFactory<any> {\n function __deleteReward({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'DELETE' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.DeleteReward',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteReward;\n}\n\n/**\n * Retrieves a list of rewards.\n *\n * The list includes rewards that are currently nonredeemable due to insufficient points held by any customers.\n */\nexport function listRewards(payload: object): RequestOptionsFactory<any> {\n function __listRewards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.v1.reward',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.loyalty.reward.LoyaltyRewards.ListRewards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressLoyaltyRewardLoyaltyRewardsUrl({\n protoPath: '/v1/rewards',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'rewards.createdDate' },\n { path: 'rewards.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'rewards.couponReward.minimumSubtotal' },\n { path: 'rewards.couponReward.fixedAmount.configsByTier.amount' },\n {\n path: 'rewards.couponReward.percentage.configsByTier.percentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listRewards;\n}\n","/**\n * A loyalty reward is an object a customer can redeem with loyalty points.\n * Redeeming a reward then creates a loyalty coupon that the customer can use.\n */\nexport interface Reward extends RewardTypeDetailsOneOf {\n /** Discount details. */\n discountAmount?: DiscountAmount;\n /** Coupon details. */\n couponReward?: CouponReward;\n /**\n * Reward ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Reward name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Whether the reward is active. Default: `FALSE` */\n active?: boolean;\n /** Reward type. */\n type?: RewardTypeWithLiterals;\n /**\n * Revision number, which increments by 1 each time the loyalty reward is updated.\n *\n * To prevent conflicting changes, the current `revision` must be passed when updating the loyalty reward.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the reward was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the reward was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n}\n\n/** @oneof */\nexport interface RewardTypeDetailsOneOf {\n /** Discount details. */\n discountAmount?: DiscountAmount;\n /** Coupon details. */\n couponReward?: CouponReward;\n}\n\n/** Available reward types. */\nexport enum RewardType {\n /** Undefined reward type. */\n UNDEFINED = 'UNDEFINED',\n /** Discount reward. Special flexible reward type used in checkout. */\n DISCOUNT_AMOUNT = 'DISCOUNT_AMOUNT',\n /** Coupon reward. [Learn more about coupons](https://support.wix.com/en/article/using-coupons-as-loyalty-rewards). */\n COUPON_REWARD = 'COUPON_REWARD',\n}\n\n/** @enumType */\nexport type RewardTypeWithLiterals =\n | RewardType\n | 'UNDEFINED'\n | 'DISCOUNT_AMOUNT'\n | 'COUPON_REWARD';\n\nexport interface DiscountAmount {\n /**\n * Discount details for each tier.\n * @maxSize 21\n */\n configsByTier?: DiscountAmountConfig[];\n}\n\nexport interface DiscountAmountConfig {\n /**\n * Discount amount. Must be a positive value.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, maxScale:2 }\n */\n amount?: string;\n /**\n * Tier ID, or empty if config applies to the base tier.\n * @format GUID\n */\n tierId?: string | null;\n /**\n * Amount of points required to redeem the reward.\n * @min 1\n * @max 9999999\n */\n costInPoints?: number;\n}\n\nexport interface CouponReward\n extends CouponRewardDiscountTypeOneOf,\n CouponRewardScopeOrMinSubtotalOneOf {\n /** Discount as a fixed amount. */\n fixedAmount?: FixedAmountDiscount;\n /** Discount as a percentage. */\n percentage?: PercentageDiscount;\n /** Free shipping. */\n freeShipping?: FreeShippingDiscount;\n /** Limit the coupon to carts with a subtotal greater than this number. */\n minimumSubtotal?: number;\n /**\n * Specifies the type of line items this coupon applies to.\n *\n * For more information, see [valid scope values](https://dev.wix.com/docs/rest/business-management/marketing/coupons/coupons/valid-scope-values).\n */\n scope?: CouponScope;\n /** Whether the coupon is limited to 1 item. */\n limitedToOneItem?: boolean | null;\n /** Whether the coupon also applies to subscriptions. */\n appliesToSubscriptions?: boolean | null;\n /**\n * Specifies the amount of discounted cycles for a subscription item.\n *\n * Can only be set when `appliesToSubscriptions` is `true` and `scope.namespace` is `pricingPlans`.\n * If `discountedCycleCount` is empty, the coupon applies to all available cycles.\n * @min 1\n * @max 999\n */\n discountedCycleCount?: number | null;\n}\n\n/** @oneof */\nexport interface CouponRewardDiscountTypeOneOf {\n /** Discount as a fixed amount. */\n fixedAmount?: FixedAmountDiscount;\n /** Discount as a percentage. */\n percentage?: PercentageDiscount;\n /** Free shipping. */\n freeShipping?: FreeShippingDiscount;\n}\n\n/** @oneof */\nexport interface CouponRewardScopeOrMinSubtotalOneOf {\n /** Limit the coupon to carts with a subtotal greater than this number. */\n minimumSubtotal?: number;\n /**\n * Specifies the type of line items this coupon applies to.\n *\n * For more information, see [valid scope values](https://dev.wix.com/docs/rest/business-management/marketing/coupons/coupons/valid-scope-values).\n */\n scope?: CouponScope;\n}\n\nexport interface FixedAmountDiscount {\n /**\n * Discount details for each tier.\n * @minSize 1\n * @maxSize 21\n */\n configsByTier?: FixedAmountDiscountConfig[];\n}\n\nexport interface FixedAmountDiscountConfig {\n /**\n * Tier ID, or empty if config applies to the base tier.\n * @format GUID\n */\n tierId?: string | null;\n /**\n * Amount of points required to redeem the reward.\n * @min 1\n * @max 9999999\n */\n costInPoints?: number;\n /**\n * Discount amount.\n * @min 0.01\n */\n amount?: number;\n}\n\nexport interface PercentageDiscount {\n /**\n * Discount details for each tier.\n * @minSize 1\n * @maxSize 21\n */\n configsByTier?: PercentageDiscountConfig[];\n}\n\nexport interface PercentageDiscountConfig {\n /**\n * Tier ID, or empty if config applies to the base tier.\n * @format GUID\n */\n tierId?: string | null;\n /**\n * Amount of points required to redeem the reward.\n * @min 1\n * @max 9999999\n */\n costInPoints?: number;\n /** Percentage discount. */\n percentage?: number;\n}\n\nexport interface FreeShippingDiscount {\n /**\n * Discount details for each tier.\n * @minSize 1\n * @maxSize 21\n */\n configsByTier?: FreeShippingDiscountConfig[];\n}\n\nexport interface FreeShippingDiscountConfig {\n /**\n * Tier ID, or empty if config applies to the base tier.\n * @format GUID\n */\n tierId?: string | null;\n /**\n * Amount of points required to redeem the reward.\n * @min 1\n * @max 9999999\n */\n costInPoints?: number;\n}\n\nexport interface CouponScope {\n /**\n * Scope namespace.\n *\n * See [valid scope values](https://dev.wix.com/docs/rest/business-management/marketing/coupons/coupons/valid-scope-values) for valid namespaces.\n */\n namespace?: string;\n /**\n * Coupon scope's applied group.\n *\n * See [valid scope values](https://dev.wix.com/docs/rest/business-management/marketing/coupons/coupons/valid-scope-values) for valid groups.\n */\n group?: Group;\n}\n\nexport interface Group {\n /**\n * Name of coupon scope's group.\n *\n * See [valid scope values](https://dev.wix.com/docs/rest/business-management/marketing/coupons/coupons/valid-scope-values) for valid groups.\n */\n name?: string;\n /** Entity ID, if the coupon scope is limited to just 1 item. */\n entityId?: string | null;\n}\n\nexport interface SpiDiscountAmount {\n /**\n * Discount details for each tier.\n * @maxSize 21\n */\n configsByTier?: DiscountAmountConfig[];\n /**\n * Description of the SPI discount amount reward. Taken from user input in the SPI config.\n * @maxLength 200\n */\n description?: string;\n}\n\nexport interface RewardDisabled {}\n\nexport interface CreateRewardRequest {\n /** Reward to create. */\n reward: Reward;\n}\n\nexport interface CreateRewardResponse {\n /** Created reward. */\n reward?: Reward;\n}\n\nexport interface BulkCreateRewardsRequest {\n /**\n * Rewards to create.\n * @minSize 1\n * @maxSize 10\n */\n rewards: Reward[];\n}\n\nexport interface BulkCreateRewardsResponse {\n /** Created rewards. */\n results?: BulkRewardResult[];\n /** Total successes and failures of the bulk create rewards action. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkRewardResult {\n /** Item metadata. */\n itemMetadata?: ItemMetadata;\n /** Created reward. */\n item?: Reward;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface GetRewardRequest {\n /**\n * ID of the reward to retrieve.\n * @format GUID\n */\n id: string;\n}\n\nexport interface GetRewardResponse {\n /** Retrieved reward. */\n reward?: Reward;\n}\n\nexport interface BulkGetRewardsRequest {}\n\nexport interface BulkGetRewardsResponse {\n /** Found rewards per site. */\n rewardsInSite?: RewardsInSite[];\n}\n\nexport interface RewardsInSite {\n /**\n * Metasite ID.\n * @format GUID\n */\n metaSiteId?: string;\n /** Rewards. */\n rewards?: Reward[];\n}\n\nexport interface QueryRewardsRequest {\n /** Query parameters. */\n query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryRewardsResponse {\n /** Retrieved loyalty rewards. */\n rewards?: Reward[];\n /** Details on the paged set of results returned. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateRewardRequest {\n /** Reward information to update. */\n reward: Reward;\n}\n\nexport interface UpdateRewardResponse {\n /** Updated reward. */\n reward?: Reward;\n}\n\nexport interface DeleteRewardRequest {\n /**\n * ID of the reward to delete.\n * @format GUID\n */\n id: string;\n /**\n * Revision number, which increments by 1 each time the reward is updated.\n *\n * To prevent conflicting changes, pass the current `revision` when deleting the reward.\n */\n revision?: string;\n}\n\nexport interface DeleteRewardResponse {}\n\nexport interface ListRewardsRequest {\n /** Pagination options. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface ListRewardsResponse {\n /** Retrieved loyalty rewards. */\n rewards?: Reward[];\n /** Details on the paged set of results returned. */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface ListRewardsInTierRequest {\n /**\n * Tier ID.\n * @format GUID\n * @readonly\n */\n tierId?: string | null;\n /** Pagination options. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface ListRewardsInTierResponse {\n /** Retrieved loyalty rewards. */\n rewards?: Reward[];\n /** Details on the paged set of results returned. */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixLoyaltyV1Reward from './loyalty-v1-reward-rewards.http.js';\nimport * as ambassadorWixLoyaltyV1RewardTypes from './loyalty-v1-reward-rewards.types.js';\nimport * as ambassadorWixLoyaltyV1RewardUniversalTypes from './loyalty-v1-reward-rewards.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createReward(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.CreateRewardRequest,\n ambassadorWixLoyaltyV1RewardTypes.CreateRewardRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.CreateRewardResponse,\n ambassadorWixLoyaltyV1RewardTypes.CreateRewardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.createReward(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/rewards',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCreateRewards(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.BulkCreateRewardsRequest,\n ambassadorWixLoyaltyV1RewardTypes.BulkCreateRewardsRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.BulkCreateRewardsResponse,\n ambassadorWixLoyaltyV1RewardTypes.BulkCreateRewardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyV1Reward.bulkCreateRewards(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/rewards/create',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getReward(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixLoyaltyV1RewardUniversalTypes.GetRewardRequest,\n ambassadorWixLoyaltyV1RewardTypes.GetRewardRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.GetRewardResponse,\n ambassadorWixLoyaltyV1RewardTypes.GetRewardResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.getReward(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/rewards/{id}',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkGetRewards(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.BulkGetRewardsRequest,\n ambassadorWixLoyaltyV1RewardTypes.BulkGetRewardsRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.BulkGetRewardsResponse,\n ambassadorWixLoyaltyV1RewardTypes.BulkGetRewardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltyV1Reward.bulkGetRewards(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/bulk/rewards',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryRewards(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.QueryRewardsRequest,\n ambassadorWixLoyaltyV1RewardTypes.QueryRewardsRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.QueryRewardsResponse,\n ambassadorWixLoyaltyV1RewardTypes.QueryRewardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.queryRewards(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/rewards/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateReward(): __PublicMethodMetaInfo<\n 'PUT',\n { rewardId: string },\n ambassadorWixLoyaltyV1RewardUniversalTypes.UpdateRewardRequest,\n ambassadorWixLoyaltyV1RewardTypes.UpdateRewardRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.UpdateRewardResponse,\n ambassadorWixLoyaltyV1RewardTypes.UpdateRewardResponse\n> {\n const payload = { reward: { id: ':rewardId' } } as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.updateReward(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/rewards/{reward.id}',\n pathParams: { rewardId: 'rewardId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteReward(): __PublicMethodMetaInfo<\n 'DELETE',\n { id: string },\n ambassadorWixLoyaltyV1RewardUniversalTypes.DeleteRewardRequest,\n ambassadorWixLoyaltyV1RewardTypes.DeleteRewardRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.DeleteRewardResponse,\n ambassadorWixLoyaltyV1RewardTypes.DeleteRewardResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.deleteReward(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/rewards/{id}',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listRewards(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixLoyaltyV1RewardUniversalTypes.ListRewardsRequest,\n ambassadorWixLoyaltyV1RewardTypes.ListRewardsRequest,\n ambassadorWixLoyaltyV1RewardUniversalTypes.ListRewardsResponse,\n ambassadorWixLoyaltyV1RewardTypes.ListRewardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixLoyaltyV1Reward.listRewards(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/rewards',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Reward as RewardOriginal,\n RewardTypeDetailsOneOf as RewardTypeDetailsOneOfOriginal,\n RewardType as RewardTypeOriginal,\n RewardTypeWithLiterals as RewardTypeWithLiteralsOriginal,\n DiscountAmount as DiscountAmountOriginal,\n DiscountAmountConfig as DiscountAmountConfigOriginal,\n CouponReward as CouponRewardOriginal,\n CouponRewardDiscountTypeOneOf as CouponRewardDiscountTypeOneOfOriginal,\n CouponRewardScopeOrMinSubtotalOneOf as CouponRewardScopeOrMinSubtotalOneOfOriginal,\n FixedAmountDiscount as FixedAmountDiscountOriginal,\n FixedAmountDiscountConfig as FixedAmountDiscountConfigOriginal,\n PercentageDiscount as PercentageDiscountOriginal,\n PercentageDiscountConfig as PercentageDiscountConfigOriginal,\n FreeShippingDiscount as FreeShippingDiscountOriginal,\n FreeShippingDiscountConfig as FreeShippingDiscountConfigOriginal,\n CouponScope as CouponScopeOriginal,\n Group as GroupOriginal,\n SpiDiscountAmount as SpiDiscountAmountOriginal,\n RewardDisabled as RewardDisabledOriginal,\n CreateRewardRequest as CreateRewardRequestOriginal,\n CreateRewardResponse as CreateRewardResponseOriginal,\n BulkCreateRewardsRequest as BulkCreateRewardsRequestOriginal,\n BulkCreateRewardsResponse as BulkCreateRewardsResponseOriginal,\n BulkRewardResult as BulkRewardResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n GetRewardRequest as GetRewardRequestOriginal,\n GetRewardResponse as GetRewardResponseOriginal,\n BulkGetRewardsRequest as BulkGetRewardsRequestOriginal,\n BulkGetRewardsResponse as BulkGetRewardsResponseOriginal,\n RewardsInSite as RewardsInSiteOriginal,\n QueryRewardsRequest as QueryRewardsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryRewardsResponse as QueryRewardsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpdateRewardRequest as UpdateRewardRequestOriginal,\n UpdateRewardResponse as UpdateRewardResponseOriginal,\n DeleteRewardRequest as DeleteRewardRequestOriginal,\n DeleteRewardResponse as DeleteRewardResponseOriginal,\n ListRewardsRequest as ListRewardsRequestOriginal,\n ListRewardsResponse as ListRewardsResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n ListRewardsInTierRequest as ListRewardsInTierRequestOriginal,\n ListRewardsInTierResponse as ListRewardsInTierResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './loyalty-v1-reward-rewards.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,iBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,U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AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,UAAU,WAAW;AAAA,IACnC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBAAiD,aAAa,OAAO;AAE3E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,eAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAAiD,YAAY,OAAO;AAE1E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkCreateRewards","bulkGetRewards","createReward","deleteReward","getReward","listRewards","queryRewards","updateReward","import_float","import_timestamp","import_rest_modules","payload","RewardType","SortOrder","WebhookIdentityType","createReward","bulkCreateRewards","getReward","bulkGetRewards","queryRewards","updateReward","deleteReward","listRewards"]}
|