@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. */
|
|
@@ -1280,4 +1290,4 @@ interface GenerateAiSocialMediaPostsSuggestionsOptions {
|
|
|
1280
1290
|
*/
|
|
1281
1291
|
declare function getReferralProgramPremiumFeatures(): Promise<NonNullablePaths<GetReferralProgramPremiumFeaturesResponse, `referralProgram`, 2>>;
|
|
1282
1292
|
|
|
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, 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, bulkGetReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, onProgramUpdated, pauseReferralProgram, updateReferralProgram };
|
|
1293
|
+
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, bulkGetReferralProgram, generateAiSocialMediaPostsSuggestions, getAiSocialMediaPostsSuggestions, getReferralProgram, getReferralProgramPremiumFeatures, onProgramUpdated, pauseReferralProgram, updateReferralProgram };
|
|
@@ -32,6 +32,7 @@ __export(index_typings_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,
|
|
@@ -128,6 +129,9 @@ function getReferralProgram(payload) {
|
|
|
128
129
|
method: "GET",
|
|
129
130
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GetReferralProgram",
|
|
130
131
|
packageName: PACKAGE_NAME,
|
|
132
|
+
migrationOptions: {
|
|
133
|
+
optInTransformResponse: true
|
|
134
|
+
},
|
|
131
135
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
132
136
|
protoPath: "/v1/program",
|
|
133
137
|
data: payload,
|
|
@@ -178,6 +182,9 @@ function bulkGetReferralProgram(payload) {
|
|
|
178
182
|
method: "GET",
|
|
179
183
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.BulkGetReferralProgram",
|
|
180
184
|
packageName: PACKAGE_NAME,
|
|
185
|
+
migrationOptions: {
|
|
186
|
+
optInTransformResponse: true
|
|
187
|
+
},
|
|
181
188
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
182
189
|
protoPath: "/v1/bulk/programs",
|
|
183
190
|
data: payload,
|
|
@@ -264,6 +271,9 @@ function updateReferralProgram(payload) {
|
|
|
264
271
|
method: "PATCH",
|
|
265
272
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.UpdateReferralProgram",
|
|
266
273
|
packageName: PACKAGE_NAME,
|
|
274
|
+
migrationOptions: {
|
|
275
|
+
optInTransformResponse: true
|
|
276
|
+
},
|
|
267
277
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
268
278
|
protoPath: "/v1/program",
|
|
269
279
|
data: serializedData,
|
|
@@ -314,6 +324,9 @@ function activateReferralProgram(payload) {
|
|
|
314
324
|
method: "PATCH",
|
|
315
325
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.ActivateReferralProgram",
|
|
316
326
|
packageName: PACKAGE_NAME,
|
|
327
|
+
migrationOptions: {
|
|
328
|
+
optInTransformResponse: true
|
|
329
|
+
},
|
|
317
330
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
318
331
|
protoPath: "/v1/program/activate",
|
|
319
332
|
data: payload,
|
|
@@ -364,6 +377,9 @@ function pauseReferralProgram(payload) {
|
|
|
364
377
|
method: "PATCH",
|
|
365
378
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.PauseReferralProgram",
|
|
366
379
|
packageName: PACKAGE_NAME,
|
|
380
|
+
migrationOptions: {
|
|
381
|
+
optInTransformResponse: true
|
|
382
|
+
},
|
|
367
383
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
368
384
|
protoPath: "/v1/program/pause",
|
|
369
385
|
data: payload,
|
|
@@ -414,6 +430,9 @@ function getAiSocialMediaPostsSuggestions(payload) {
|
|
|
414
430
|
method: "GET",
|
|
415
431
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GetAISocialMediaPostsSuggestions",
|
|
416
432
|
packageName: PACKAGE_NAME,
|
|
433
|
+
migrationOptions: {
|
|
434
|
+
optInTransformResponse: true
|
|
435
|
+
},
|
|
417
436
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
418
437
|
protoPath: "/v1/program/ai-social-media-posts-suggestions",
|
|
419
438
|
data: payload,
|
|
@@ -432,6 +451,9 @@ function generateAiSocialMediaPostsSuggestions(payload) {
|
|
|
432
451
|
method: "POST",
|
|
433
452
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GenerateAISocialMediaPostsSuggestions",
|
|
434
453
|
packageName: PACKAGE_NAME,
|
|
454
|
+
migrationOptions: {
|
|
455
|
+
optInTransformResponse: true
|
|
456
|
+
},
|
|
435
457
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
436
458
|
protoPath: "/v1/program/ai-social-media-posts-suggestions",
|
|
437
459
|
data: payload,
|
|
@@ -450,6 +472,9 @@ function getReferralProgramPremiumFeatures(payload) {
|
|
|
450
472
|
method: "GET",
|
|
451
473
|
methodFqn: "wix.loyalty.referral.program.v1.ReferralPrograms.GetReferralProgramPremiumFeatures",
|
|
452
474
|
packageName: PACKAGE_NAME,
|
|
475
|
+
migrationOptions: {
|
|
476
|
+
optInTransformResponse: true
|
|
477
|
+
},
|
|
453
478
|
url: resolveWixLoyaltyReferralProgramV1ReferralProgramsUrl({
|
|
454
479
|
protoPath: "/v1/program/premium-features",
|
|
455
480
|
data: payload,
|
|
@@ -543,6 +568,13 @@ var Initiator = /* @__PURE__ */ ((Initiator2) => {
|
|
|
543
568
|
Initiator2["PASSIVE"] = "PASSIVE";
|
|
544
569
|
return Initiator2;
|
|
545
570
|
})(Initiator || {});
|
|
571
|
+
var RefundType = /* @__PURE__ */ ((RefundType2) => {
|
|
572
|
+
RefundType2["UNKNOWN"] = "UNKNOWN";
|
|
573
|
+
RefundType2["NO_REFUND"] = "NO_REFUND";
|
|
574
|
+
RefundType2["FULL_REFUND"] = "FULL_REFUND";
|
|
575
|
+
RefundType2["PRORATED_REFUND"] = "PRORATED_REFUND";
|
|
576
|
+
return RefundType2;
|
|
577
|
+
})(RefundType || {});
|
|
546
578
|
var UnassignReason = /* @__PURE__ */ ((UnassignReason2) => {
|
|
547
579
|
UnassignReason2["UNKNOWN"] = "UNKNOWN";
|
|
548
580
|
UnassignReason2["USER_REQUESTED"] = "USER_REQUESTED";
|
|
@@ -802,6 +834,7 @@ async function getReferralProgramPremiumFeatures2() {
|
|
|
802
834
|
ProgramStatus,
|
|
803
835
|
ProviderName,
|
|
804
836
|
ReactivationReasonEnum,
|
|
837
|
+
RefundType,
|
|
805
838
|
RewardType,
|
|
806
839
|
SubscriptionStatus,
|
|
807
840
|
Type,
|