@wix/auto_sdk_referral_programs 1.0.69 → 1.0.70
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 -1
- 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 -1
- 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 -1
- 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 -1
- 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
|
@@ -777,6 +777,8 @@ interface SubscriptionCancelled {
|
|
|
777
777
|
immediateCancel?: boolean;
|
|
778
778
|
/** Whether the subscription was canceled during the free trial period. */
|
|
779
779
|
canceledInFreeTrial?: boolean;
|
|
780
|
+
/** The type of refund applied to the cancellation. */
|
|
781
|
+
refundType?: RefundTypeWithLiterals;
|
|
780
782
|
}
|
|
781
783
|
/** Information about the cancellation flow including who canceled the subscription and why it was canceled. */
|
|
782
784
|
interface CancellationDetails {
|
|
@@ -828,6 +830,14 @@ declare enum Initiator {
|
|
|
828
830
|
}
|
|
829
831
|
/** @enumType */
|
|
830
832
|
type InitiatorWithLiterals = Initiator | 'UNKNOWN' | 'USER_REQUESTED' | 'APP_MANAGED' | 'PASSIVE';
|
|
833
|
+
declare enum RefundType {
|
|
834
|
+
UNKNOWN = "UNKNOWN",
|
|
835
|
+
NO_REFUND = "NO_REFUND",
|
|
836
|
+
FULL_REFUND = "FULL_REFUND",
|
|
837
|
+
PRORATED_REFUND = "PRORATED_REFUND"
|
|
838
|
+
}
|
|
839
|
+
/** @enumType */
|
|
840
|
+
type RefundTypeWithLiterals = RefundType | 'UNKNOWN' | 'NO_REFUND' | 'FULL_REFUND' | 'PRORATED_REFUND';
|
|
831
841
|
/** Triggered when the subscription's auto renew is turned on. */
|
|
832
842
|
interface SubscriptionAutoRenewTurnedOn {
|
|
833
843
|
/** Subscription for which auto renew is turned on. */
|
|
@@ -1270,4 +1280,4 @@ interface GenerateAiSocialMediaPostsSuggestionsOptions {
|
|
|
1270
1280
|
*/
|
|
1271
1281
|
declare function getReferralProgramPremiumFeatures(): Promise<NonNullablePaths<GetReferralProgramPremiumFeaturesResponse, `referralProgram`, 2>>;
|
|
1272
1282
|
|
|
1273
|
-
export { type AISocialMediaPostSuggestion, Action, type ActionEvent, type ActionWithLiterals, type ActivateReferralProgramRequest, type ActivateReferralProgramResponse, App, type AppWithLiterals, type BaseEventMetadata, type BillingReference, type BulkGetReferralProgramRequest, type BulkGetReferralProgramResponse, type CancellationDetails, ContractSwitchReason, type ContractSwitchReasonWithLiterals, ContractSwitchType, type ContractSwitchTypeWithLiterals, type ContractSwitched, type Coupon, type CouponDiscountTypeOptionsOneOf, type CouponScope, type CouponScopeOrMinSubtotalOneOf, type Cycle, type CycleCycleSelectorOneOf, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Emails, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type FixedAmountDiscount, type GenerateAISocialMediaPostsSuggestionsRequest, type GenerateAISocialMediaPostsSuggestionsResponse, type GenerateAiSocialMediaPostsSuggestionsOptions, type GetAISocialMediaPostsSuggestionsRequest, type GetAISocialMediaPostsSuggestionsResponse, type GetAiSocialMediaPostsSuggestionsOptions, type GetReferralProgramPremiumFeaturesRequest, type GetReferralProgramPremiumFeaturesResponse, type GetReferralProgramRequest, type GetReferralProgramResponse, type Group, type HtmlSitePublished, type IdentificationData, type IdentificationDataIdOneOf, Initiator, type InitiatorWithLiterals, type Interval, IntervalUnit, type IntervalUnitWithLiterals, type LoyaltyPoints, type MessageEnvelope, type OneTime, type Page, type PauseReferralProgramRequest, type PauseReferralProgramResponse, type PercentageDiscount, type PremiumFeatures, PriceIncreaseTrigger, type PriceIncreaseTriggerWithLiterals, ProductAdjustment, type ProductAdjustmentWithLiterals, type ProductPriceIncreaseData, type ProgramInSite, ProgramStatus, type ProgramStatusWithLiterals, type ProgramUpdatedEnvelope, ProviderName, type ProviderNameWithLiterals, type ReactivationData, ReactivationReasonEnum, type ReactivationReasonEnumWithLiterals, type RecurringChargeAttemptFailed, type RecurringChargeSucceeded, type ReferralAppInstallation, type ReferralProgram, type RestoreInfo, type Reward, type RewardOptionsOneOf, RewardType, type RewardTypeWithLiterals, type Subscription, type SubscriptionAssigned, type SubscriptionAutoRenewTurnedOff, type SubscriptionAutoRenewTurnedOn, type SubscriptionCancelled, type SubscriptionCreated, type SubscriptionEvent, type SubscriptionEventEventOneOf, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, Type, type TypeWithLiterals, UnassignReason, type UnassignReasonWithLiterals, type UpdateReferralProgramRequest, type UpdateReferralProgramResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, activateReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, onProgramUpdated, pauseReferralProgram, updateReferralProgram };
|
|
1283
|
+
export { type AISocialMediaPostSuggestion, Action, type ActionEvent, type ActionWithLiterals, type ActivateReferralProgramRequest, type ActivateReferralProgramResponse, App, type AppWithLiterals, type BaseEventMetadata, type BillingReference, type BulkGetReferralProgramRequest, type BulkGetReferralProgramResponse, type CancellationDetails, ContractSwitchReason, type ContractSwitchReasonWithLiterals, ContractSwitchType, type ContractSwitchTypeWithLiterals, type ContractSwitched, type Coupon, type CouponDiscountTypeOptionsOneOf, type CouponScope, type CouponScopeOrMinSubtotalOneOf, type Cycle, type CycleCycleSelectorOneOf, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Emails, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type FixedAmountDiscount, type GenerateAISocialMediaPostsSuggestionsRequest, type GenerateAISocialMediaPostsSuggestionsResponse, type GenerateAiSocialMediaPostsSuggestionsOptions, type GetAISocialMediaPostsSuggestionsRequest, type GetAISocialMediaPostsSuggestionsResponse, type GetAiSocialMediaPostsSuggestionsOptions, type GetReferralProgramPremiumFeaturesRequest, type GetReferralProgramPremiumFeaturesResponse, type GetReferralProgramRequest, type GetReferralProgramResponse, type Group, type HtmlSitePublished, type IdentificationData, type IdentificationDataIdOneOf, Initiator, type InitiatorWithLiterals, type Interval, IntervalUnit, type IntervalUnitWithLiterals, type LoyaltyPoints, type MessageEnvelope, type OneTime, type Page, type PauseReferralProgramRequest, type PauseReferralProgramResponse, type PercentageDiscount, type PremiumFeatures, PriceIncreaseTrigger, type PriceIncreaseTriggerWithLiterals, ProductAdjustment, type ProductAdjustmentWithLiterals, type ProductPriceIncreaseData, type ProgramInSite, ProgramStatus, type ProgramStatusWithLiterals, type ProgramUpdatedEnvelope, ProviderName, type ProviderNameWithLiterals, type ReactivationData, ReactivationReasonEnum, type ReactivationReasonEnumWithLiterals, type RecurringChargeAttemptFailed, type RecurringChargeSucceeded, type ReferralAppInstallation, type ReferralProgram, RefundType, type RefundTypeWithLiterals, type RestoreInfo, type Reward, type RewardOptionsOneOf, RewardType, type RewardTypeWithLiterals, type Subscription, type SubscriptionAssigned, type SubscriptionAutoRenewTurnedOff, type SubscriptionAutoRenewTurnedOn, type SubscriptionCancelled, type SubscriptionCreated, type SubscriptionEvent, type SubscriptionEventEventOneOf, type SubscriptionNearEndOfPeriod, type SubscriptionPendingChange, SubscriptionStatus, type SubscriptionStatusWithLiterals, type SubscriptionTransferred, type SubscriptionUnassigned, Type, type TypeWithLiterals, UnassignReason, type UnassignReasonWithLiterals, type UpdateReferralProgramRequest, type UpdateReferralProgramResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, activateReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, onProgramUpdated, pauseReferralProgram, updateReferralProgram };
|
|
@@ -81,6 +81,9 @@ function getReferralProgram(payload) {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GetReferralProgram",
|
|
83
83
|
packageName: PACKAGE_NAME,
|
|
84
|
+
migrationOptions: {
|
|
85
|
+
optInTransformResponse: true
|
|
86
|
+
},
|
|
84
87
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
85
88
|
protoPath: "/v1/program",
|
|
86
89
|
data: payload,
|
|
@@ -131,6 +134,9 @@ function bulkGetReferralProgram(payload) {
|
|
|
131
134
|
method: "GET",
|
|
132
135
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.BulkGetReferralProgram",
|
|
133
136
|
packageName: PACKAGE_NAME,
|
|
137
|
+
migrationOptions: {
|
|
138
|
+
optInTransformResponse: true
|
|
139
|
+
},
|
|
134
140
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
135
141
|
protoPath: "/v1/bulk/programs",
|
|
136
142
|
data: payload,
|
|
@@ -217,6 +223,9 @@ function updateReferralProgram(payload) {
|
|
|
217
223
|
method: "PATCH",
|
|
218
224
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.UpdateReferralProgram",
|
|
219
225
|
packageName: PACKAGE_NAME,
|
|
226
|
+
migrationOptions: {
|
|
227
|
+
optInTransformResponse: true
|
|
228
|
+
},
|
|
220
229
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
221
230
|
protoPath: "/v1/program",
|
|
222
231
|
data: serializedData,
|
|
@@ -267,6 +276,9 @@ function activateReferralProgram(payload) {
|
|
|
267
276
|
method: "PATCH",
|
|
268
277
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.ActivateReferralProgram",
|
|
269
278
|
packageName: PACKAGE_NAME,
|
|
279
|
+
migrationOptions: {
|
|
280
|
+
optInTransformResponse: true
|
|
281
|
+
},
|
|
270
282
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
271
283
|
protoPath: "/v1/program/activate",
|
|
272
284
|
data: payload,
|
|
@@ -317,6 +329,9 @@ function pauseReferralProgram(payload) {
|
|
|
317
329
|
method: "PATCH",
|
|
318
330
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.PauseReferralProgram",
|
|
319
331
|
packageName: PACKAGE_NAME,
|
|
332
|
+
migrationOptions: {
|
|
333
|
+
optInTransformResponse: true
|
|
334
|
+
},
|
|
320
335
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
321
336
|
protoPath: "/v1/program/pause",
|
|
322
337
|
data: payload,
|
|
@@ -367,6 +382,9 @@ function getAiSocialMediaPostsSuggestions(payload) {
|
|
|
367
382
|
method: "GET",
|
|
368
383
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GetAISocialMediaPostsSuggestions",
|
|
369
384
|
packageName: PACKAGE_NAME,
|
|
385
|
+
migrationOptions: {
|
|
386
|
+
optInTransformResponse: true
|
|
387
|
+
},
|
|
370
388
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
371
389
|
protoPath: "/v1/program/ai-social-media-posts-suggestions",
|
|
372
390
|
data: payload,
|
|
@@ -385,6 +403,9 @@ function generateAiSocialMediaPostsSuggestions(payload) {
|
|
|
385
403
|
method: "POST",
|
|
386
404
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GenerateAISocialMediaPostsSuggestions",
|
|
387
405
|
packageName: PACKAGE_NAME,
|
|
406
|
+
migrationOptions: {
|
|
407
|
+
optInTransformResponse: true
|
|
408
|
+
},
|
|
388
409
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
389
410
|
protoPath: "/v1/program/ai-social-media-posts-suggestions",
|
|
390
411
|
data: payload,
|
|
@@ -403,6 +424,9 @@ function getReferralProgramPremiumFeatures(payload) {
|
|
|
403
424
|
method: "GET",
|
|
404
425
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GetReferralProgramPremiumFeatures",
|
|
405
426
|
packageName: PACKAGE_NAME,
|
|
427
|
+
migrationOptions: {
|
|
428
|
+
optInTransformResponse: true
|
|
429
|
+
},
|
|
406
430
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
407
431
|
protoPath: "/v1/program/premium-features",
|
|
408
432
|
data: payload,
|
|
@@ -496,6 +520,13 @@ var Initiator = /* @__PURE__ */ ((Initiator2) => {
|
|
|
496
520
|
Initiator2["PASSIVE"] = "PASSIVE";
|
|
497
521
|
return Initiator2;
|
|
498
522
|
})(Initiator || {});
|
|
523
|
+
var RefundType = /* @__PURE__ */ ((RefundType2) => {
|
|
524
|
+
RefundType2["UNKNOWN"] = "UNKNOWN";
|
|
525
|
+
RefundType2["NO_REFUND"] = "NO_REFUND";
|
|
526
|
+
RefundType2["FULL_REFUND"] = "FULL_REFUND";
|
|
527
|
+
RefundType2["PRORATED_REFUND"] = "PRORATED_REFUND";
|
|
528
|
+
return RefundType2;
|
|
529
|
+
})(RefundType || {});
|
|
499
530
|
var UnassignReason = /* @__PURE__ */ ((UnassignReason2) => {
|
|
500
531
|
UnassignReason2["UNKNOWN"] = "UNKNOWN";
|
|
501
532
|
UnassignReason2["USER_REQUESTED"] = "USER_REQUESTED";
|
|
@@ -754,6 +785,7 @@ export {
|
|
|
754
785
|
ProgramStatus,
|
|
755
786
|
ProviderName,
|
|
756
787
|
ReactivationReasonEnum,
|
|
788
|
+
RefundType,
|
|
757
789
|
RewardType,
|
|
758
790
|
SubscriptionStatus,
|
|
759
791
|
Type,
|