@wix/auto_sdk_loyalty_earning-rules 1.0.14 → 1.0.16

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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { L as LoyaltyEarningRule, B as BulkCreateLoyaltyEarningRulesResponse, T as TypeWithLiterals, C as CreateCustomLoyaltyEarningRuleOptions, a as CreateCustomLoyaltyEarningRuleResponse, U as UpdateLoyaltyEarningRule, b as UpdateLoyaltyEarningRuleResponse, D as DeleteLoyaltyEarningRuleOptions, c as ListEarningRulesOptions, d as ListEarningRulesResponse, e as LoyaltyEarningRuleCreatedEnvelope, f as LoyaltyEarningRuleDeletedEnvelope, g as LoyaltyEarningRuleUpdatedEnvelope } from './loyalty-v1-loyalty-earning-rule-earning-rules.universal-C7uemg2R.js';
3
- export { a5 as ActionEvent, A as ApplicationError, ab as Asset, aB as BaseEventMetadata, w as BulkActionMetadata, u as BulkCreateLoyaltyEarningRulesRequest, v as BulkLoyaltyEarningRuleResult, r as CacheInvalidated, o as ConversionRate, p as ConversionRateConfig, x as CreateCustomLoyaltyEarningRuleRequest, s as CreateLoyaltyEarningRuleRequest, t as CreateLoyaltyEarningRuleResponse, X as CursorPaging, _ as Cursors, y as CustomLoyaltyEarningRule, z as CustomLoyaltyEarningRuleTypeOneOf, P as DeleteAutomationEarningRuleRequest, Q as DeleteAutomationEarningRuleResponse, af as DeleteContext, K as DeleteLoyaltyEarningRuleRequest, O as DeleteLoyaltyEarningRuleResponse, l as DeleteStatus, $ as DomainEvent, a0 as DomainEventBodyOneOf, E as EarningRuleDisabled, a6 as Empty, a1 as EntityCreatedEvent, a4 as EntityDeletedEvent, a3 as EntityUpdatedEvent, aC as EventMetadata, F as FixedAmount, n as FixedAmountConfig, G as GetLoyaltyEarningRuleRequest, H as GetLoyaltyEarningRuleResponse, az as IdentificationData, aA as IdentificationDataIdOneOf, a7 as InvalidateEarningRuleCacheRequest, a8 as InvalidateEarningRuleCacheResponse, I as ItemMetadata, V as ListEarningRulesInTierRequest, Y as ListEarningRulesInTierResponse, R as ListEarningRulesRequest, m as LoyaltyEarningRuleTypeOneOf, q as LoyaltyEarningRuleTypeTag, h as LoyaltyEarningRuleTypeTagType, ay as MessageEnvelope, a9 as MetaSiteSpecialEvent, aa as MetaSiteSpecialEventPayloadOneOf, M as Metadata, N as Namespace, ap as NamespaceChanged, au as OdeditorAssigned, av as OdeditorUnassigned, Z as PagingMetadataV2, aw as PicassoAssigned, ax as PicassoUnassigned, a2 as RestoreInfo, al as ServiceProvisioned, am as ServiceRemoved, ac as SiteCreated, k as SiteCreatedContext, ae as SiteDeleted, ao as SiteHardDeleted, aj as SiteMarkedAsTemplate, ak as SiteMarkedAsWixSite, ah as SitePublished, at as SitePurgedExternally, an as SiteRenamed, ad as SiteTransferred, ag as SiteUndeleted, ai as SiteUnpublished, as as SiteUrlChanged, j as State, S as Status, aq as StudioAssigned, ar as StudioUnassigned, i as Type, J as UpdateLoyaltyEarningRuleRequest, W as WebhookIdentityType } from './loyalty-v1-loyalty-earning-rule-earning-rules.universal-C7uemg2R.js';
2
+ import { LoyaltyEarningRule, BulkCreateLoyaltyEarningRulesResponse, TypeWithLiterals, CreateCustomLoyaltyEarningRuleOptions, CreateCustomLoyaltyEarningRuleResponse, UpdateLoyaltyEarningRule, UpdateLoyaltyEarningRuleResponse, DeleteLoyaltyEarningRuleOptions, ListEarningRulesOptions, ListEarningRulesResponse, LoyaltyEarningRuleCreatedEnvelope, LoyaltyEarningRuleDeletedEnvelope, LoyaltyEarningRuleUpdatedEnvelope } from './index.typings.js';
3
+ export { ActionEvent, ApplicationError, Asset, BaseEventMetadata, BulkActionMetadata, BulkCreateLoyaltyEarningRulesRequest, BulkLoyaltyEarningRuleResult, CacheInvalidated, ConversionRate, ConversionRateConfig, CreateCustomLoyaltyEarningRuleRequest, CreateLoyaltyEarningRuleRequest, CreateLoyaltyEarningRuleResponse, CursorPaging, Cursors, CustomLoyaltyEarningRule, CustomLoyaltyEarningRuleTypeOneOf, DeleteAutomationEarningRuleRequest, DeleteAutomationEarningRuleResponse, DeleteContext, DeleteLoyaltyEarningRuleRequest, DeleteLoyaltyEarningRuleResponse, DeleteStatus, DomainEvent, DomainEventBodyOneOf, EarningRuleDisabled, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FixedAmount, FixedAmountConfig, GetLoyaltyEarningRuleRequest, GetLoyaltyEarningRuleResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateEarningRuleCacheRequest, InvalidateEarningRuleCacheResponse, ItemMetadata, ListEarningRulesInTierRequest, ListEarningRulesInTierResponse, ListEarningRulesRequest, LoyaltyEarningRuleTypeOneOf, LoyaltyEarningRuleTypeTag, LoyaltyEarningRuleTypeTagType, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Metadata, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, PagingMetadataV2, PicassoAssigned, PicassoUnassigned, RestoreInfo, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, State, Status, StudioAssigned, StudioUnassigned, Type, UpdateLoyaltyEarningRuleRequest, WebhookIdentityType } from './index.typings.js';
4
4
 
5
5
  declare function createLoyaltyEarningRule$1(httpClient: HttpClient): CreateLoyaltyEarningRuleSignature;
6
6
  interface CreateLoyaltyEarningRuleSignature {
@@ -1,3 +1,5 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
1
3
  /**
2
4
  * A loyalty earning rule defines how customers earn points in a loyalty program.
3
5
  * You can create rules for different activities, such as making purchases.
@@ -1008,17 +1010,143 @@ interface LoyaltyEarningRuleCreatedEnvelope {
1008
1010
  entity: LoyaltyEarningRule;
1009
1011
  metadata: EventMetadata;
1010
1012
  }
1013
+ /**
1014
+ * Triggered when an earning rule is created.
1015
+ * @permissionScope Read Loyalty
1016
+ * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
1017
+ * @permissionScope Manage Loyalty
1018
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1019
+ * @permissionScope Manage Restaurants - all permissions
1020
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1021
+ * @permissionId LOYALTY.READ_EARNING_RULES
1022
+ * @webhook
1023
+ * @eventType wix.loyalty.v1.loyalty_earning_rule_created
1024
+ * @slug created
1025
+ */
1026
+ declare function onLoyaltyEarningRuleCreated(handler: (event: LoyaltyEarningRuleCreatedEnvelope) => void | Promise<void>): void;
1011
1027
  interface LoyaltyEarningRuleDeletedEnvelope {
1012
1028
  metadata: EventMetadata;
1013
1029
  }
1030
+ /**
1031
+ * Triggered when an earning rule is deleted.
1032
+ * @permissionScope Read Loyalty
1033
+ * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
1034
+ * @permissionScope Manage Loyalty
1035
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1036
+ * @permissionScope Manage Restaurants - all permissions
1037
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1038
+ * @permissionId LOYALTY.READ_EARNING_RULES
1039
+ * @webhook
1040
+ * @eventType wix.loyalty.v1.loyalty_earning_rule_deleted
1041
+ * @slug deleted
1042
+ */
1043
+ declare function onLoyaltyEarningRuleDeleted(handler: (event: LoyaltyEarningRuleDeletedEnvelope) => void | Promise<void>): void;
1014
1044
  interface LoyaltyEarningRuleUpdatedEnvelope {
1015
1045
  entity: LoyaltyEarningRule;
1016
1046
  metadata: EventMetadata;
1017
1047
  }
1048
+ /**
1049
+ * Triggered when an earning rule is updated.
1050
+ * @permissionScope Read Loyalty
1051
+ * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
1052
+ * @permissionScope Manage Loyalty
1053
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1054
+ * @permissionScope Manage Restaurants - all permissions
1055
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1056
+ * @permissionId LOYALTY.READ_EARNING_RULES
1057
+ * @webhook
1058
+ * @eventType wix.loyalty.v1.loyalty_earning_rule_updated
1059
+ * @slug updated
1060
+ */
1061
+ declare function onLoyaltyEarningRuleUpdated(handler: (event: LoyaltyEarningRuleUpdatedEnvelope) => void | Promise<void>): void;
1062
+ type LoyaltyEarningRuleNonNullablePaths = `fixedAmount.configs` | `fixedAmount.configs.${number}.points` | `conversionRate.configs` | `conversionRate.configs.${number}.moneyAmount` | `conversionRate.configs.${number}.points` | `sourceAppId` | `triggerAppId` | `triggerActivityType` | `title` | `status` | `metadata.canBeDeleted`;
1063
+ /**
1064
+ * Creates a non-automated earning rule.
1065
+ *
1066
+ * >**Note**: You can only create non-automated earning rules from a supported list.
1067
+ * For the supported list of services, see the introduction.
1068
+ * @param earningRule - Earning rule to create.
1069
+ * @public
1070
+ * @requiredField earningRule
1071
+ * @requiredField earningRule.sourceAppId
1072
+ * @requiredField earningRule.status
1073
+ * @requiredField earningRule.title
1074
+ * @requiredField earningRule.triggerActivityType
1075
+ * @requiredField earningRule.triggerAppId
1076
+ * @permissionId LOYALTY.MANAGE_EARNING_RULES
1077
+ * @applicableIdentity APP
1078
+ * @returns Created earning rule.
1079
+ * @fqn com.wixpress.loyalty.earningrule.LoyaltyEarningRules.CreateLoyaltyEarningRule
1080
+ */
1081
+ declare function createLoyaltyEarningRule(earningRule: NonNullablePaths<LoyaltyEarningRule, `sourceAppId` | `status` | `title` | `triggerActivityType` | `triggerAppId`>): Promise<NonNullablePaths<LoyaltyEarningRule, LoyaltyEarningRuleNonNullablePaths>>;
1082
+ /**
1083
+ * Creates multiple non-automated earning rules.
1084
+ *
1085
+ * >**Note**: You can only create non-automated earning rules from a supported list.
1086
+ * For the supported list of services, see the introduction.
1087
+ * @param earningRules - Earning rules to create.
1088
+ * @public
1089
+ * @requiredField earningRules
1090
+ * @requiredField earningRules.sourceAppId
1091
+ * @requiredField earningRules.status
1092
+ * @requiredField earningRules.title
1093
+ * @requiredField earningRules.triggerActivityType
1094
+ * @requiredField earningRules.triggerAppId
1095
+ * @permissionId LOYALTY.MANAGE_EARNING_RULES
1096
+ * @applicableIdentity APP
1097
+ * @fqn com.wixpress.loyalty.earningrule.LoyaltyEarningRules.BulkCreateLoyaltyEarningRules
1098
+ */
1099
+ declare function bulkCreateLoyaltyEarningRules(earningRules: NonNullablePaths<LoyaltyEarningRule, `sourceAppId` | `status` | `title` | `triggerActivityType` | `triggerAppId`>[]): Promise<NonNullablePaths<BulkCreateLoyaltyEarningRulesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
1100
+ [P in LoyaltyEarningRuleNonNullablePaths]: `results.${number}.item.${P}`;
1101
+ }[LoyaltyEarningRuleNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
1102
+ /**
1103
+ * Creates a custom automated earning rule.
1104
+ *
1105
+ * To learn more about the automated rules, read the introduction.
1106
+ * @param type - Type of the custom earning rule.
1107
+ * @public
1108
+ * @requiredField type
1109
+ * @permissionId LOYALTY.MANAGE_EARNING_RULES
1110
+ * @applicableIdentity APP
1111
+ * @fqn com.wixpress.loyalty.earningrule.LoyaltyEarningRules.CreateCustomLoyaltyEarningRule
1112
+ */
1113
+ declare function createCustomLoyaltyEarningRule(type: TypeWithLiterals, options?: CreateCustomLoyaltyEarningRuleOptions): Promise<NonNullablePaths<CreateCustomLoyaltyEarningRuleResponse, {
1114
+ [P in LoyaltyEarningRuleNonNullablePaths]: `earningRule.${P}`;
1115
+ }[LoyaltyEarningRuleNonNullablePaths]>>;
1018
1116
  interface CreateCustomLoyaltyEarningRuleOptions {
1019
1117
  /** Custom earning rule to create. */
1020
1118
  earningRule?: CustomLoyaltyEarningRule;
1021
1119
  }
1120
+ /**
1121
+ * Retrieves a specified non-automated earning rule.
1122
+ * @param _id - ID of the earning rule to retrieve.
1123
+ * @public
1124
+ * @requiredField _id
1125
+ * @permissionId LOYALTY.READ_EARNING_RULES
1126
+ * @applicableIdentity APP
1127
+ * @applicableIdentity VISITOR
1128
+ * @returns Retrieved earning rule.
1129
+ * @fqn com.wixpress.loyalty.earningrule.LoyaltyEarningRules.GetLoyaltyEarningRule
1130
+ */
1131
+ declare function getLoyaltyEarningRule(_id: string): Promise<NonNullablePaths<LoyaltyEarningRule, LoyaltyEarningRuleNonNullablePaths>>;
1132
+ /**
1133
+ * Updates an earning rule.
1134
+ *
1135
+ * Supports partial updates.
1136
+ *
1137
+ * Revision number, which increments by 1 each time the earning rule is updated. To prevent conflicting changes,
1138
+ * the current revision must be passed when updating the earning rule.
1139
+ * @param _id - Loyalty earning rule ID.
1140
+ * @public
1141
+ * @requiredField _id
1142
+ * @requiredField earningRule
1143
+ * @permissionId LOYALTY.MANAGE_EARNING_RULES
1144
+ * @applicableIdentity APP
1145
+ * @fqn com.wixpress.loyalty.earningrule.LoyaltyEarningRules.UpdateLoyaltyEarningRule
1146
+ */
1147
+ declare function updateLoyaltyEarningRule(_id: string, earningRule: UpdateLoyaltyEarningRule): Promise<NonNullablePaths<UpdateLoyaltyEarningRuleResponse, {
1148
+ [P in LoyaltyEarningRuleNonNullablePaths]: `earningRule.${P}`;
1149
+ }[LoyaltyEarningRuleNonNullablePaths]>>;
1022
1150
  interface UpdateLoyaltyEarningRule {
1023
1151
  /** Fixed amount of points awarded for each qualifying activity. */
1024
1152
  fixedAmount?: FixedAmount;
@@ -1076,6 +1204,16 @@ interface UpdateLoyaltyEarningRule {
1076
1204
  */
1077
1205
  metadata?: Metadata;
1078
1206
  }
1207
+ /**
1208
+ * Deletes a non-automated earning rule.
1209
+ * @param _id - ID of the earning rule to delete.
1210
+ * @public
1211
+ * @requiredField _id
1212
+ * @permissionId LOYALTY.MANAGE_EARNING_RULES
1213
+ * @applicableIdentity APP
1214
+ * @fqn com.wixpress.loyalty.earningrule.LoyaltyEarningRules.DeleteLoyaltyEarningRule
1215
+ */
1216
+ declare function deleteLoyaltyEarningRule(_id: string, options?: DeleteLoyaltyEarningRuleOptions): Promise<void>;
1079
1217
  interface DeleteLoyaltyEarningRuleOptions {
1080
1218
  /**
1081
1219
  * Revision of the earning rule. Incremented by 1 each time the earning rule is updated.
@@ -1083,6 +1221,33 @@ interface DeleteLoyaltyEarningRuleOptions {
1083
1221
  */
1084
1222
  revision?: string;
1085
1223
  }
1224
+ /**
1225
+ * Deletes a custom automated earning rule.
1226
+ *
1227
+ * > **Note:** Pre-installed automated rules can only be paused, not deleted.
1228
+ * @param _id - ID of the earning rule to delete.
1229
+ * @public
1230
+ * @requiredField _id
1231
+ * @permissionId LOYALTY.MANAGE_EARNING_RULES
1232
+ * @applicableIdentity APP
1233
+ * @fqn com.wixpress.loyalty.earningrule.LoyaltyEarningRules.DeleteAutomationEarningRule
1234
+ */
1235
+ declare function deleteAutomationEarningRule(_id: string): Promise<void>;
1236
+ /**
1237
+ * Retrieves a list of earning rules.
1238
+ *
1239
+ * Returns both automated and non-automated earning rules.
1240
+ *
1241
+ * You can filter the results by `triggerAppId` or `triggerActivityType`.
1242
+ * @public
1243
+ * @permissionId LOYALTY.READ_EARNING_RULES
1244
+ * @applicableIdentity APP
1245
+ * @applicableIdentity VISITOR
1246
+ * @fqn com.wixpress.loyalty.earningrule.LoyaltyEarningRules.ListEarningRules
1247
+ */
1248
+ declare function listEarningRules(options?: ListEarningRulesOptions): Promise<NonNullablePaths<ListEarningRulesResponse, {
1249
+ [P in LoyaltyEarningRuleNonNullablePaths]: `earningRules.${number}.${P}`;
1250
+ }[LoyaltyEarningRuleNonNullablePaths]>>;
1086
1251
  interface ListEarningRulesOptions {
1087
1252
  /** App ID that triggers the point assignment. For example, `9a5d83fd-8570-482e-81ab-cfa88942ee60`. */
1088
1253
  triggerAppId?: string | null;
@@ -1090,4 +1255,4 @@ interface ListEarningRulesOptions {
1090
1255
  triggerActivityType?: string | null;
1091
1256
  }
1092
1257
 
1093
- export { type DomainEvent as $, type ApplicationError as A, type BulkCreateLoyaltyEarningRulesResponse as B, type CreateCustomLoyaltyEarningRuleOptions as C, type DeleteLoyaltyEarningRuleOptions as D, type EarningRuleDisabled as E, type FixedAmount as F, type GetLoyaltyEarningRuleRequest as G, type GetLoyaltyEarningRuleResponse as H, type ItemMetadata as I, type UpdateLoyaltyEarningRuleRequest as J, type DeleteLoyaltyEarningRuleRequest as K, type LoyaltyEarningRule as L, type Metadata as M, Namespace as N, type DeleteLoyaltyEarningRuleResponse as O, type DeleteAutomationEarningRuleRequest as P, type DeleteAutomationEarningRuleResponse as Q, type ListEarningRulesRequest as R, Status as S, type TypeWithLiterals as T, type UpdateLoyaltyEarningRule as U, type ListEarningRulesInTierRequest as V, WebhookIdentityType as W, type CursorPaging as X, type ListEarningRulesInTierResponse as Y, type PagingMetadataV2 as Z, type Cursors as _, type CreateCustomLoyaltyEarningRuleResponse as a, type DomainEventBodyOneOf as a0, type EntityCreatedEvent as a1, type RestoreInfo as a2, type EntityUpdatedEvent as a3, type EntityDeletedEvent as a4, type ActionEvent as a5, type Empty as a6, type InvalidateEarningRuleCacheRequest as a7, type InvalidateEarningRuleCacheResponse as a8, type MetaSiteSpecialEvent as a9, type IdentificationDataIdOneOf as aA, type BaseEventMetadata as aB, type EventMetadata as aC, type MetaSiteSpecialEventPayloadOneOf as aa, type Asset as ab, type SiteCreated as ac, type SiteTransferred as ad, type SiteDeleted as ae, type DeleteContext as af, type SiteUndeleted as ag, type SitePublished as ah, type SiteUnpublished as ai, type SiteMarkedAsTemplate as aj, type SiteMarkedAsWixSite as ak, type ServiceProvisioned as al, type ServiceRemoved as am, type SiteRenamed as an, type SiteHardDeleted as ao, type NamespaceChanged as ap, type StudioAssigned as aq, type StudioUnassigned as ar, type SiteUrlChanged as as, type SitePurgedExternally as at, type OdeditorAssigned as au, type OdeditorUnassigned as av, type PicassoAssigned as aw, type PicassoUnassigned as ax, type MessageEnvelope as ay, type IdentificationData as az, type UpdateLoyaltyEarningRuleResponse as b, type ListEarningRulesOptions as c, type ListEarningRulesResponse as d, type LoyaltyEarningRuleCreatedEnvelope as e, type LoyaltyEarningRuleDeletedEnvelope as f, type LoyaltyEarningRuleUpdatedEnvelope as g, LoyaltyEarningRuleTypeTagType as h, Type as i, State as j, SiteCreatedContext as k, DeleteStatus as l, type LoyaltyEarningRuleTypeOneOf as m, type FixedAmountConfig as n, type ConversionRate as o, type ConversionRateConfig as p, type LoyaltyEarningRuleTypeTag as q, type CacheInvalidated as r, type CreateLoyaltyEarningRuleRequest as s, type CreateLoyaltyEarningRuleResponse as t, type BulkCreateLoyaltyEarningRulesRequest as u, type BulkLoyaltyEarningRuleResult as v, type BulkActionMetadata as w, type CreateCustomLoyaltyEarningRuleRequest as x, type CustomLoyaltyEarningRule as y, type CustomLoyaltyEarningRuleTypeOneOf as z };
1258
+ export { type ActionEvent, type ApplicationError, type Asset, type BaseEventMetadata, type BulkActionMetadata, type BulkCreateLoyaltyEarningRulesRequest, type BulkCreateLoyaltyEarningRulesResponse, type BulkLoyaltyEarningRuleResult, type CacheInvalidated, type ConversionRate, type ConversionRateConfig, type CreateCustomLoyaltyEarningRuleOptions, type CreateCustomLoyaltyEarningRuleRequest, type CreateCustomLoyaltyEarningRuleResponse, type CreateLoyaltyEarningRuleRequest, type CreateLoyaltyEarningRuleResponse, type CursorPaging, type Cursors, type CustomLoyaltyEarningRule, type CustomLoyaltyEarningRuleTypeOneOf, type DeleteAutomationEarningRuleRequest, type DeleteAutomationEarningRuleResponse, type DeleteContext, type DeleteLoyaltyEarningRuleOptions, type DeleteLoyaltyEarningRuleRequest, type DeleteLoyaltyEarningRuleResponse, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EarningRuleDisabled, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type FixedAmount, type FixedAmountConfig, type GetLoyaltyEarningRuleRequest, type GetLoyaltyEarningRuleResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidateEarningRuleCacheRequest, type InvalidateEarningRuleCacheResponse, type ItemMetadata, type ListEarningRulesInTierRequest, type ListEarningRulesInTierResponse, type ListEarningRulesOptions, type ListEarningRulesRequest, type ListEarningRulesResponse, type LoyaltyEarningRule, type LoyaltyEarningRuleCreatedEnvelope, type LoyaltyEarningRuleDeletedEnvelope, type LoyaltyEarningRuleTypeOneOf, type LoyaltyEarningRuleTypeTag, LoyaltyEarningRuleTypeTagType, type LoyaltyEarningRuleTypeTagTypeWithLiterals, type LoyaltyEarningRuleUpdatedEnvelope, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Metadata, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type PagingMetadataV2, type PicassoAssigned, type PicassoUnassigned, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioUnassigned, Type, type TypeWithLiterals, type UpdateLoyaltyEarningRule, type UpdateLoyaltyEarningRuleRequest, type UpdateLoyaltyEarningRuleResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateLoyaltyEarningRules, createCustomLoyaltyEarningRule, createLoyaltyEarningRule, deleteAutomationEarningRule, deleteLoyaltyEarningRule, getLoyaltyEarningRule, listEarningRules, onLoyaltyEarningRuleCreated, onLoyaltyEarningRuleDeleted, onLoyaltyEarningRuleUpdated, updateLoyaltyEarningRule };