@wix/auto_sdk_referral_programs 1.0.69 → 1.0.71
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 +33 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +11 -3
- package/build/cjs/index.typings.js +33 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +799 -1
- package/build/cjs/meta.js +198 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +32 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +11 -3
- package/build/es/index.typings.mjs +32 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +799 -1
- package/build/es/meta.mjs +180 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +33 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +11 -3
- package/build/internal/cjs/index.typings.js +33 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +799 -1
- package/build/internal/cjs/meta.js +198 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +32 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +11 -3
- package/build/internal/es/index.typings.mjs +32 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +799 -1
- package/build/internal/es/meta.mjs +180 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
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 { GetReferralProgramResponse, ReferralProgram, UpdateReferralProgramResponse, ActivateReferralProgramResponse, PauseReferralProgramResponse, GetAiSocialMediaPostsSuggestionsOptions, GetAISocialMediaPostsSuggestionsResponse, GenerateAiSocialMediaPostsSuggestionsOptions, GenerateAISocialMediaPostsSuggestionsResponse, GetReferralProgramPremiumFeaturesResponse, ProgramUpdatedEnvelope } from './index.typings.js';
|
|
3
|
-
export { AISocialMediaPostSuggestion, Action, ActionEvent, ActionWithLiterals, ActivateReferralProgramRequest, App, AppWithLiterals, BaseEventMetadata, BillingReference, BulkGetReferralProgramRequest, BulkGetReferralProgramResponse, CancellationDetails, ContractSwitchReason, ContractSwitchReasonWithLiterals, ContractSwitchType, ContractSwitchTypeWithLiterals, ContractSwitched, Coupon, CouponDiscountTypeOptionsOneOf, CouponScope, CouponScopeOrMinSubtotalOneOf, Cycle, CycleCycleSelectorOneOf, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Emails, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FixedAmountDiscount, GenerateAISocialMediaPostsSuggestionsRequest, GetAISocialMediaPostsSuggestionsRequest, GetReferralProgramPremiumFeaturesRequest, GetReferralProgramRequest, Group, HtmlSitePublished, IdentificationData, IdentificationDataIdOneOf, Initiator, InitiatorWithLiterals, Interval, IntervalUnit, IntervalUnitWithLiterals, LoyaltyPoints, MessageEnvelope, OneTime, Page, PauseReferralProgramRequest, PercentageDiscount, PremiumFeatures, PriceIncreaseTrigger, PriceIncreaseTriggerWithLiterals, ProductAdjustment, ProductAdjustmentWithLiterals, ProductPriceIncreaseData, ProgramInSite, ProgramStatus, ProgramStatusWithLiterals, ProviderName, ProviderNameWithLiterals, ReactivationData, ReactivationReasonEnum, ReactivationReasonEnumWithLiterals, RecurringChargeAttemptFailed, RecurringChargeSucceeded, ReferralAppInstallation, RestoreInfo, Reward, RewardOptionsOneOf, RewardType, RewardTypeWithLiterals, Subscription, SubscriptionAssigned, SubscriptionAutoRenewTurnedOff, SubscriptionAutoRenewTurnedOn, SubscriptionCancelled, SubscriptionCreated, SubscriptionEvent, SubscriptionEventEventOneOf, SubscriptionNearEndOfPeriod, SubscriptionPendingChange, SubscriptionStatus, SubscriptionStatusWithLiterals, SubscriptionTransferred, SubscriptionUnassigned, Type, TypeWithLiterals, UnassignReason, UnassignReasonWithLiterals, UpdateReferralProgramRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
3
|
+
export { AISocialMediaPostSuggestion, Action, ActionEvent, ActionWithLiterals, ActivateReferralProgramRequest, App, AppWithLiterals, BaseEventMetadata, BillingReference, BulkGetReferralProgramRequest, BulkGetReferralProgramResponse, CancellationDetails, ContractSwitchReason, ContractSwitchReasonWithLiterals, ContractSwitchType, ContractSwitchTypeWithLiterals, ContractSwitched, Coupon, CouponDiscountTypeOptionsOneOf, CouponScope, CouponScopeOrMinSubtotalOneOf, Cycle, CycleCycleSelectorOneOf, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Emails, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FixedAmountDiscount, GenerateAISocialMediaPostsSuggestionsRequest, GetAISocialMediaPostsSuggestionsRequest, GetReferralProgramPremiumFeaturesRequest, GetReferralProgramRequest, Group, HtmlSitePublished, IdentificationData, IdentificationDataIdOneOf, Initiator, InitiatorWithLiterals, Interval, IntervalUnit, IntervalUnitWithLiterals, LoyaltyPoints, MessageEnvelope, OneTime, Page, PauseReferralProgramRequest, PercentageDiscount, PremiumFeatures, PriceIncreaseTrigger, PriceIncreaseTriggerWithLiterals, ProductAdjustment, ProductAdjustmentWithLiterals, ProductPriceIncreaseData, ProgramInSite, ProgramStatus, ProgramStatusWithLiterals, ProviderName, ProviderNameWithLiterals, ReactivationData, ReactivationReasonEnum, ReactivationReasonEnumWithLiterals, RecurringChargeAttemptFailed, RecurringChargeSucceeded, ReferralAppInstallation, RefundType, RefundTypeWithLiterals, RestoreInfo, Reward, RewardOptionsOneOf, RewardType, RewardTypeWithLiterals, Subscription, SubscriptionAssigned, SubscriptionAutoRenewTurnedOff, SubscriptionAutoRenewTurnedOn, SubscriptionCancelled, SubscriptionCreated, SubscriptionEvent, SubscriptionEventEventOneOf, SubscriptionNearEndOfPeriod, SubscriptionPendingChange, SubscriptionStatus, SubscriptionStatusWithLiterals, SubscriptionTransferred, SubscriptionUnassigned, Type, TypeWithLiterals, UnassignReason, UnassignReasonWithLiterals, UpdateReferralProgramRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getReferralProgram$1(httpClient: HttpClient): GetReferralProgramSignature;
|
|
6
6
|
interface GetReferralProgramSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __export(index_exports, {
|
|
|
32
32
|
ProgramStatus: () => ProgramStatus,
|
|
33
33
|
ProviderName: () => ProviderName,
|
|
34
34
|
ReactivationReasonEnum: () => ReactivationReasonEnum,
|
|
35
|
+
RefundType: () => RefundType,
|
|
35
36
|
RewardType: () => RewardType,
|
|
36
37
|
SubscriptionStatus: () => SubscriptionStatus,
|
|
37
38
|
Type: () => Type,
|
|
@@ -136,6 +137,9 @@ function getReferralProgram(payload) {
|
|
|
136
137
|
method: "GET",
|
|
137
138
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GetReferralProgram",
|
|
138
139
|
packageName: PACKAGE_NAME,
|
|
140
|
+
migrationOptions: {
|
|
141
|
+
optInTransformResponse: true
|
|
142
|
+
},
|
|
139
143
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
140
144
|
protoPath: "/v1/program",
|
|
141
145
|
data: payload,
|
|
@@ -186,6 +190,9 @@ function bulkGetReferralProgram(payload) {
|
|
|
186
190
|
method: "GET",
|
|
187
191
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.BulkGetReferralProgram",
|
|
188
192
|
packageName: PACKAGE_NAME,
|
|
193
|
+
migrationOptions: {
|
|
194
|
+
optInTransformResponse: true
|
|
195
|
+
},
|
|
189
196
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
190
197
|
protoPath: "/v1/bulk/programs",
|
|
191
198
|
data: payload,
|
|
@@ -272,6 +279,9 @@ function updateReferralProgram(payload) {
|
|
|
272
279
|
method: "PATCH",
|
|
273
280
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.UpdateReferralProgram",
|
|
274
281
|
packageName: PACKAGE_NAME,
|
|
282
|
+
migrationOptions: {
|
|
283
|
+
optInTransformResponse: true
|
|
284
|
+
},
|
|
275
285
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
276
286
|
protoPath: "/v1/program",
|
|
277
287
|
data: serializedData,
|
|
@@ -322,6 +332,9 @@ function activateReferralProgram(payload) {
|
|
|
322
332
|
method: "PATCH",
|
|
323
333
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.ActivateReferralProgram",
|
|
324
334
|
packageName: PACKAGE_NAME,
|
|
335
|
+
migrationOptions: {
|
|
336
|
+
optInTransformResponse: true
|
|
337
|
+
},
|
|
325
338
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
326
339
|
protoPath: "/v1/program/activate",
|
|
327
340
|
data: payload,
|
|
@@ -372,6 +385,9 @@ function pauseReferralProgram(payload) {
|
|
|
372
385
|
method: "PATCH",
|
|
373
386
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.PauseReferralProgram",
|
|
374
387
|
packageName: PACKAGE_NAME,
|
|
388
|
+
migrationOptions: {
|
|
389
|
+
optInTransformResponse: true
|
|
390
|
+
},
|
|
375
391
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
376
392
|
protoPath: "/v1/program/pause",
|
|
377
393
|
data: payload,
|
|
@@ -422,6 +438,9 @@ function getAiSocialMediaPostsSuggestions(payload) {
|
|
|
422
438
|
method: "GET",
|
|
423
439
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GetAISocialMediaPostsSuggestions",
|
|
424
440
|
packageName: PACKAGE_NAME,
|
|
441
|
+
migrationOptions: {
|
|
442
|
+
optInTransformResponse: true
|
|
443
|
+
},
|
|
425
444
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
426
445
|
protoPath: "/v1/program/ai-social-media-posts-suggestions",
|
|
427
446
|
data: payload,
|
|
@@ -440,6 +459,9 @@ function generateAiSocialMediaPostsSuggestions(payload) {
|
|
|
440
459
|
method: "POST",
|
|
441
460
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GenerateAISocialMediaPostsSuggestions",
|
|
442
461
|
packageName: PACKAGE_NAME,
|
|
462
|
+
migrationOptions: {
|
|
463
|
+
optInTransformResponse: true
|
|
464
|
+
},
|
|
443
465
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
444
466
|
protoPath: "/v1/program/ai-social-media-posts-suggestions",
|
|
445
467
|
data: payload,
|
|
@@ -458,6 +480,9 @@ function getReferralProgramPremiumFeatures(payload) {
|
|
|
458
480
|
method: "GET",
|
|
459
481
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GetReferralProgramPremiumFeatures",
|
|
460
482
|
packageName: PACKAGE_NAME,
|
|
483
|
+
migrationOptions: {
|
|
484
|
+
optInTransformResponse: true
|
|
485
|
+
},
|
|
461
486
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
462
487
|
protoPath: "/v1/program/premium-features",
|
|
463
488
|
data: payload,
|
|
@@ -551,6 +576,13 @@ var Initiator = /* @__PURE__ */ ((Initiator2) => {
|
|
|
551
576
|
Initiator2["PASSIVE"] = "PASSIVE";
|
|
552
577
|
return Initiator2;
|
|
553
578
|
})(Initiator || {});
|
|
579
|
+
var RefundType = /* @__PURE__ */ ((RefundType2) => {
|
|
580
|
+
RefundType2["UNKNOWN"] = "UNKNOWN";
|
|
581
|
+
RefundType2["NO_REFUND"] = "NO_REFUND";
|
|
582
|
+
RefundType2["FULL_REFUND"] = "FULL_REFUND";
|
|
583
|
+
RefundType2["PRORATED_REFUND"] = "PRORATED_REFUND";
|
|
584
|
+
return RefundType2;
|
|
585
|
+
})(RefundType || {});
|
|
554
586
|
var UnassignReason = /* @__PURE__ */ ((UnassignReason2) => {
|
|
555
587
|
UnassignReason2["UNKNOWN"] = "UNKNOWN";
|
|
556
588
|
UnassignReason2["USER_REQUESTED"] = "USER_REQUESTED";
|
|
@@ -915,6 +947,7 @@ var onProgramUpdated2 = (0, import_event_definition_modules.createEventModule)(o
|
|
|
915
947
|
ProgramStatus,
|
|
916
948
|
ProviderName,
|
|
917
949
|
ReactivationReasonEnum,
|
|
950
|
+
RefundType,
|
|
918
951
|
RewardType,
|
|
919
952
|
SubscriptionStatus,
|
|
920
953
|
Type,
|