@wix/auto_sdk_pricing-plans_pricing-plans-settings 1.0.8 → 1.0.10
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 +14 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +494 -1
- package/build/cjs/index.typings.js +14 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +494 -1
- package/build/cjs/meta.js +14 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +13 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +494 -1
- package/build/es/index.typings.mjs +13 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +494 -1
- package/build/es/meta.mjs +13 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +14 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +494 -1
- package/build/internal/cjs/index.typings.js +14 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +494 -1
- package/build/internal/cjs/meta.js +14 -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 +13 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +494 -1
- package/build/internal/es/index.typings.mjs +13 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +494 -1
- package/build/internal/es/meta.mjs +13 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -21,6 +21,12 @@ interface PricingPlansSettings {
|
|
|
21
21
|
taxableAddress?: TaxableAddressWithLiterals;
|
|
22
22
|
/** Data Extensions */
|
|
23
23
|
extendedFields?: ExtendedFields;
|
|
24
|
+
/**
|
|
25
|
+
* Platform fee percentage rate based on premium plan
|
|
26
|
+
* @decimalValue options { gte:0, maxScale:2 }
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
platformFeeRate?: string | null;
|
|
24
30
|
}
|
|
25
31
|
declare enum TaxableAddress {
|
|
26
32
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
@@ -54,6 +60,493 @@ interface UpdatePricingPlansSettingsResponse {
|
|
|
54
60
|
/** Updated PricingPlansSettings. */
|
|
55
61
|
pricingPlansSettings?: PricingPlansSettings;
|
|
56
62
|
}
|
|
63
|
+
interface FeatureEvent extends FeatureEventEventOneOf {
|
|
64
|
+
/**
|
|
65
|
+
* Information about an event that makes a feature eligible to the user.
|
|
66
|
+
* Triggered for example, for new features or when a feature is reassigned
|
|
67
|
+
* to an account or a site.
|
|
68
|
+
*/
|
|
69
|
+
enabled?: FeatureEnabled;
|
|
70
|
+
/**
|
|
71
|
+
* Information about an event that disables a feature for the user.
|
|
72
|
+
* Triggered for example, when a feature is unassigned from a site,
|
|
73
|
+
* reassigned to a different site, or the user switched to a different contract.
|
|
74
|
+
*/
|
|
75
|
+
disabled?: FeatureDisabled;
|
|
76
|
+
/**
|
|
77
|
+
* Information about an event that updates a feature. An `updated` event
|
|
78
|
+
* is triggered for example by the
|
|
79
|
+
* [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)
|
|
80
|
+
* and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)
|
|
81
|
+
* endpoints.
|
|
82
|
+
*/
|
|
83
|
+
updated?: FeatureUpdated;
|
|
84
|
+
/**
|
|
85
|
+
* Information about an event that cancels a feature for the user.
|
|
86
|
+
* Triggered for example, when a feature is canceled, transferred to
|
|
87
|
+
* another account, or the user switched to a different contract.
|
|
88
|
+
*/
|
|
89
|
+
cancelled?: FeatureCancelled;
|
|
90
|
+
/**
|
|
91
|
+
* Timestamp of the event in
|
|
92
|
+
* [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
|
|
93
|
+
*/
|
|
94
|
+
timestamp?: Date | null;
|
|
95
|
+
}
|
|
96
|
+
/** @oneof */
|
|
97
|
+
interface FeatureEventEventOneOf {
|
|
98
|
+
/**
|
|
99
|
+
* Information about an event that makes a feature eligible to the user.
|
|
100
|
+
* Triggered for example, for new features or when a feature is reassigned
|
|
101
|
+
* to an account or a site.
|
|
102
|
+
*/
|
|
103
|
+
enabled?: FeatureEnabled;
|
|
104
|
+
/**
|
|
105
|
+
* Information about an event that disables a feature for the user.
|
|
106
|
+
* Triggered for example, when a feature is unassigned from a site,
|
|
107
|
+
* reassigned to a different site, or the user switched to a different contract.
|
|
108
|
+
*/
|
|
109
|
+
disabled?: FeatureDisabled;
|
|
110
|
+
/**
|
|
111
|
+
* Information about an event that updates a feature. An `updated` event
|
|
112
|
+
* is triggered for example by the
|
|
113
|
+
* [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)
|
|
114
|
+
* and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)
|
|
115
|
+
* endpoints.
|
|
116
|
+
*/
|
|
117
|
+
updated?: FeatureUpdated;
|
|
118
|
+
/**
|
|
119
|
+
* Information about an event that cancels a feature for the user.
|
|
120
|
+
* Triggered for example, when a feature is canceled, transferred to
|
|
121
|
+
* another account, or the user switched to a different contract.
|
|
122
|
+
*/
|
|
123
|
+
cancelled?: FeatureCancelled;
|
|
124
|
+
}
|
|
125
|
+
/** Feature created or enabled after disabled state */
|
|
126
|
+
interface FeatureEnabled extends FeatureEnabledReasonOneOf {
|
|
127
|
+
/** Information about a transfer from another account. */
|
|
128
|
+
transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;
|
|
129
|
+
/** Information about a transfer from another site. */
|
|
130
|
+
reassignedFromSite?: ReassignedFromSiteReason;
|
|
131
|
+
/** Information about a feature that hadn't been assigned to site. */
|
|
132
|
+
assignedFromFloating?: AssignedFromFloatingReason;
|
|
133
|
+
/** Information about the new feature. */
|
|
134
|
+
newFeature?: NewFeatureReason;
|
|
135
|
+
/** Information about the contract switch. */
|
|
136
|
+
contractSwitched?: ContractSwitchedReason;
|
|
137
|
+
/** Information about the manually created features. */
|
|
138
|
+
manualFeatureCreation?: ManualFeatureCreationReason;
|
|
139
|
+
/** Information about a feature that was migrated from legacy. */
|
|
140
|
+
migratedFromLegacy?: MigratedFromLegacyReason;
|
|
141
|
+
/** Enabled feature. */
|
|
142
|
+
feature?: Feature;
|
|
143
|
+
/**
|
|
144
|
+
* Information about a transfer from another account.
|
|
145
|
+
* __Deprecated__. Use `reason.transferred_from_another_account` instead.
|
|
146
|
+
* @format GUID
|
|
147
|
+
*/
|
|
148
|
+
transferredFromAccount?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* Information about a transfer from another site.
|
|
151
|
+
* __Deprecated__. Use `reason.reassigned_from_site` instead.
|
|
152
|
+
* @format GUID
|
|
153
|
+
*/
|
|
154
|
+
reassignedFromMetasite?: string | null;
|
|
155
|
+
}
|
|
156
|
+
/** @oneof */
|
|
157
|
+
interface FeatureEnabledReasonOneOf {
|
|
158
|
+
/** Information about a transfer from another account. */
|
|
159
|
+
transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;
|
|
160
|
+
/** Information about a transfer from another site. */
|
|
161
|
+
reassignedFromSite?: ReassignedFromSiteReason;
|
|
162
|
+
/** Information about a feature that hadn't been assigned to site. */
|
|
163
|
+
assignedFromFloating?: AssignedFromFloatingReason;
|
|
164
|
+
/** Information about the new feature. */
|
|
165
|
+
newFeature?: NewFeatureReason;
|
|
166
|
+
/** Information about the contract switch. */
|
|
167
|
+
contractSwitched?: ContractSwitchedReason;
|
|
168
|
+
/** Information about the manually created features. */
|
|
169
|
+
manualFeatureCreation?: ManualFeatureCreationReason;
|
|
170
|
+
/** Information about a feature that was migrated from legacy. */
|
|
171
|
+
migratedFromLegacy?: MigratedFromLegacyReason;
|
|
172
|
+
}
|
|
173
|
+
interface Feature extends FeatureQuantityInfoOneOf {
|
|
174
|
+
/**
|
|
175
|
+
* Deprecated. Use `enabled` instead.
|
|
176
|
+
* @deprecated
|
|
177
|
+
*/
|
|
178
|
+
booleanFeature?: BooleanFeature;
|
|
179
|
+
/**
|
|
180
|
+
* Deprecated. Use `quotaInfo` instead.
|
|
181
|
+
* @deprecated
|
|
182
|
+
*/
|
|
183
|
+
quotaFeature?: QuotaFeature;
|
|
184
|
+
/**
|
|
185
|
+
* ID of the feature. __Note:__ Isn't unique. For example, all features that
|
|
186
|
+
* are available to free Wix accounts or site in some capacity have
|
|
187
|
+
* `{"id": "DEFAULT"}`. Use `uniqueName` as unique identifier for a feature.
|
|
188
|
+
* @readonly
|
|
189
|
+
*/
|
|
190
|
+
_id?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Unique name of the feature. Only lower case letters, numbers, and dashes
|
|
193
|
+
* `-` are supported. Used in the endpoints of the
|
|
194
|
+
* [Features Manager API](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/introduction)
|
|
195
|
+
* to specify the feature. Not visible to customers. We recommend to start
|
|
196
|
+
* the unique name with a prefix describing your organization or Wix company.
|
|
197
|
+
* For example, `bookings` or `crm`.
|
|
198
|
+
*
|
|
199
|
+
* Min: 2 characters
|
|
200
|
+
* Max: 50 characters
|
|
201
|
+
* @minLength 2
|
|
202
|
+
* @maxLength 50
|
|
203
|
+
*/
|
|
204
|
+
uniqueName?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Information about whether the feature belongs to a Wix account or site.
|
|
207
|
+
* Account features have `context.userId`. Site features have `context.metaSiteId` in case
|
|
208
|
+
* they're assigned to a specific site. Site features that aren't assigned to
|
|
209
|
+
* a specific site have neither ID.
|
|
210
|
+
*/
|
|
211
|
+
context?: FeatureContext;
|
|
212
|
+
/**
|
|
213
|
+
* Deprecated.
|
|
214
|
+
* @readonly
|
|
215
|
+
* @deprecated
|
|
216
|
+
*/
|
|
217
|
+
createdAt?: Date | null;
|
|
218
|
+
/**
|
|
219
|
+
* Deprecated.
|
|
220
|
+
* @readonly
|
|
221
|
+
* @deprecated
|
|
222
|
+
*/
|
|
223
|
+
updatedAt?: Date | null;
|
|
224
|
+
/**
|
|
225
|
+
* Aggregated information about how often customers can use the feature.
|
|
226
|
+
* Available only for quota features.
|
|
227
|
+
*/
|
|
228
|
+
quotaInfo?: QuotaInfo;
|
|
229
|
+
/**
|
|
230
|
+
* Whether the customer is currently allowed to use the feature.
|
|
231
|
+
* `true` means that the customer can use the feature. This means a boolean
|
|
232
|
+
* feature is active or a quota feature has remaining usage.
|
|
233
|
+
* `false` means that the customer can't use the feature.
|
|
234
|
+
* This means a boolean feature isn't active or a quota feature doesn't
|
|
235
|
+
* have remaining usage.
|
|
236
|
+
*/
|
|
237
|
+
enabled?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* ID of the [subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object)
|
|
240
|
+
* to which the feature instance belongs.
|
|
241
|
+
* @format GUID
|
|
242
|
+
*/
|
|
243
|
+
subscriptionId?: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* Metadata of the feature. Wix Premium uses the metadata object to indicate
|
|
246
|
+
* that customers who purchase a product with the feature also get
|
|
247
|
+
* access to an additional product. For these bundled products `metadata`
|
|
248
|
+
* looks like this: `{"tpa": "{"appDefId": "sample-app-def-id-1234567890", "vendorProductId": "sample-productId"}}"`.
|
|
249
|
+
* But you can use the `metadata` property for other purposes, too.
|
|
250
|
+
*/
|
|
251
|
+
metadata?: Record<string, string>;
|
|
252
|
+
}
|
|
253
|
+
/** @oneof */
|
|
254
|
+
interface FeatureQuantityInfoOneOf {
|
|
255
|
+
/**
|
|
256
|
+
* Deprecated. Use `enabled` instead.
|
|
257
|
+
* @deprecated
|
|
258
|
+
*/
|
|
259
|
+
booleanFeature?: BooleanFeature;
|
|
260
|
+
/**
|
|
261
|
+
* Deprecated. Use `quotaInfo` instead.
|
|
262
|
+
* @deprecated
|
|
263
|
+
*/
|
|
264
|
+
quotaFeature?: QuotaFeature;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Context this feature is currently connected to.
|
|
268
|
+
* Note: Do not confuse with feature scope which is configured in the product catalog
|
|
269
|
+
* and defines in which context the product can be used
|
|
270
|
+
*/
|
|
271
|
+
interface FeatureContext {
|
|
272
|
+
/**
|
|
273
|
+
* ID of the Wix account that the feature instance belongs to.
|
|
274
|
+
* Available for both site and account level feature instances.
|
|
275
|
+
* @format GUID
|
|
276
|
+
*/
|
|
277
|
+
userId?: string;
|
|
278
|
+
/**
|
|
279
|
+
* ID of the meta site that the feature instance is assigned to.
|
|
280
|
+
* Only available for site level feature instances that are assigned to a Wix
|
|
281
|
+
* site. Not available for account level and unassigned site level feature
|
|
282
|
+
* instances.
|
|
283
|
+
* @format GUID
|
|
284
|
+
*/
|
|
285
|
+
metaSiteId?: string | null;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* A feature that can be either "enabled" or "disabled". The default/freemium setting is always OFF, and the premium setting is always ON (meaning, unlimited usage without tracking).
|
|
289
|
+
* A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified).
|
|
290
|
+
*/
|
|
291
|
+
interface BooleanFeature {
|
|
292
|
+
}
|
|
293
|
+
/** A feature with a periodic usage limitation. The default limit is defined in the Feature Spec, the Premium limits are defined in the respective ProductFeature. */
|
|
294
|
+
interface QuotaFeature {
|
|
295
|
+
/** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */
|
|
296
|
+
limit?: string | null;
|
|
297
|
+
/** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */
|
|
298
|
+
period?: FeaturePeriodWithLiterals;
|
|
299
|
+
/** Usage measurement units (seconds? MBs? unitless?). Usage reported will be counted in multiples of this basic unit. */
|
|
300
|
+
units?: string | null;
|
|
301
|
+
}
|
|
302
|
+
/** Determines the reset cycle of the feature usage. */
|
|
303
|
+
declare enum FeaturePeriod {
|
|
304
|
+
NO_PERIOD = "NO_PERIOD",
|
|
305
|
+
MILLISECOND = "MILLISECOND",
|
|
306
|
+
SECOND = "SECOND",
|
|
307
|
+
MINUTE = "MINUTE",
|
|
308
|
+
HOUR = "HOUR",
|
|
309
|
+
DAY = "DAY",
|
|
310
|
+
WEEK = "WEEK",
|
|
311
|
+
MONTH = "MONTH",
|
|
312
|
+
YEAR = "YEAR"
|
|
313
|
+
}
|
|
314
|
+
/** @enumType */
|
|
315
|
+
type FeaturePeriodWithLiterals = FeaturePeriod | 'NO_PERIOD' | 'MILLISECOND' | 'SECOND' | 'MINUTE' | 'HOUR' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
|
|
316
|
+
interface QuotaInfo {
|
|
317
|
+
/**
|
|
318
|
+
* Aggregation of how often the customer is allowed to use the feature at the time of the request.
|
|
319
|
+
* `null` means that the customer has unlimited access to the feature.
|
|
320
|
+
*/
|
|
321
|
+
limit?: string | null;
|
|
322
|
+
/**
|
|
323
|
+
* Deprecated because a feature can have multiple periods defined. Use `period` in `breakdown` entries instead.
|
|
324
|
+
* Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`
|
|
325
|
+
* isn't automatically reset to the feature's `limit` after a specific period.
|
|
326
|
+
* You may still manually call
|
|
327
|
+
* [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).
|
|
328
|
+
* @deprecated
|
|
329
|
+
* @replacedBy breakdown.period
|
|
330
|
+
* @targetRemovalDate 2026-03-31
|
|
331
|
+
*/
|
|
332
|
+
period?: FeaturePeriodWithLiterals;
|
|
333
|
+
/**
|
|
334
|
+
* Aggregation of how often the customer has used the feature.
|
|
335
|
+
* This value is retrieved from the Quota Manager/Rate Limiter system. If the
|
|
336
|
+
* `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,
|
|
337
|
+
* this field will contain the value `-1`.
|
|
338
|
+
*/
|
|
339
|
+
currentUsage?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Aggregation of how often the customer can still use the feature.
|
|
342
|
+
* `null` means that the customer has unlimited access to the feature.
|
|
343
|
+
* This value is retrieved from the Quota Manager/Rate Limiter system. If the
|
|
344
|
+
* `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,
|
|
345
|
+
* this field will not be populated.
|
|
346
|
+
*/
|
|
347
|
+
remainingUsage?: string | null;
|
|
348
|
+
/**
|
|
349
|
+
* Breakdown of quota information entries, entry per feature instance.
|
|
350
|
+
* @maxSize 1000
|
|
351
|
+
*/
|
|
352
|
+
breakdown?: QuotaInfoEntry[];
|
|
353
|
+
}
|
|
354
|
+
interface QuotaInfoEntry {
|
|
355
|
+
/**
|
|
356
|
+
* If quota is of free feature, the id would be empty (None).
|
|
357
|
+
* If quota is of premium feature, this is the ID of the feature instance.
|
|
358
|
+
* @format GUID
|
|
359
|
+
*/
|
|
360
|
+
featureInstanceId?: string | null;
|
|
361
|
+
/**
|
|
362
|
+
* How often the customer is allowed to use the feature during the specified
|
|
363
|
+
* period. `null` means that the customer has unlimited access to the feature.
|
|
364
|
+
*/
|
|
365
|
+
limit?: string | null;
|
|
366
|
+
/**
|
|
367
|
+
* Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`
|
|
368
|
+
* isn't automatically reset to the feature's `limit` after a specific period.
|
|
369
|
+
* You may still manually call
|
|
370
|
+
* [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).
|
|
371
|
+
*/
|
|
372
|
+
period?: FeaturePeriodWithLiterals;
|
|
373
|
+
/**
|
|
374
|
+
* How often the customer has used the feature during the current
|
|
375
|
+
* period.
|
|
376
|
+
* This value is retrieved from the Quota Manager/Rate Limiter system. If the
|
|
377
|
+
* `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,
|
|
378
|
+
* this field will contain the value `-1`.
|
|
379
|
+
*/
|
|
380
|
+
currentUsage?: string;
|
|
381
|
+
/**
|
|
382
|
+
* How often the customer can still use the feature during the current
|
|
383
|
+
* period. `null` means that the customer has unlimited access to the feature.
|
|
384
|
+
* This value is retrieved from the Quota Manager/Rate Limiter system. If the
|
|
385
|
+
* `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,
|
|
386
|
+
* this field will not be populated.
|
|
387
|
+
*/
|
|
388
|
+
remainingUsage?: string | null;
|
|
389
|
+
/**
|
|
390
|
+
* ID of the subscription to which the feature instance belongs.
|
|
391
|
+
* @format GUID
|
|
392
|
+
*/
|
|
393
|
+
subscriptionId?: string | null;
|
|
394
|
+
/**
|
|
395
|
+
* Reset date of the quota.
|
|
396
|
+
* Relevant only for features with a period that is not `NO_PERIOD`, and only for features that are managed by the Quota Manager system.
|
|
397
|
+
*/
|
|
398
|
+
resetDate?: Date | null;
|
|
399
|
+
}
|
|
400
|
+
/** Subscription transferred from another account, features on the current account were enabled. */
|
|
401
|
+
interface TransferredFromAnotherAccountReason {
|
|
402
|
+
/**
|
|
403
|
+
* Information about a transfer from another account.
|
|
404
|
+
* @format GUID
|
|
405
|
+
*/
|
|
406
|
+
transferredFromAccount?: string;
|
|
407
|
+
}
|
|
408
|
+
/** Subscription moved from one site to another in the same account, features enabled on the target site */
|
|
409
|
+
interface ReassignedFromSiteReason {
|
|
410
|
+
/**
|
|
411
|
+
* Information about a transfer from another site.
|
|
412
|
+
* @format GUID
|
|
413
|
+
*/
|
|
414
|
+
reassignedFromMetasite?: string;
|
|
415
|
+
}
|
|
416
|
+
/** Subscription was floating and assigned to site, features enabled on the target site */
|
|
417
|
+
interface AssignedFromFloatingReason {
|
|
418
|
+
}
|
|
419
|
+
/** New subscription created and features created as enabled */
|
|
420
|
+
interface NewFeatureReason {
|
|
421
|
+
}
|
|
422
|
+
/** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */
|
|
423
|
+
interface ContractSwitchedReason {
|
|
424
|
+
}
|
|
425
|
+
/** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */
|
|
426
|
+
interface ManualFeatureCreationReason {
|
|
427
|
+
}
|
|
428
|
+
/** Subscription created due to migration from old premium model */
|
|
429
|
+
interface MigratedFromLegacyReason {
|
|
430
|
+
}
|
|
431
|
+
/** Feature disabled and can be enabled in the future */
|
|
432
|
+
interface FeatureDisabled extends FeatureDisabledReasonOneOf {
|
|
433
|
+
/** Information about a feature that's no longer assigned to a site. */
|
|
434
|
+
unassingedToFloating?: UnAssingedToFloatingReason;
|
|
435
|
+
/**
|
|
436
|
+
* Information about a feature that's been replaced by a feature from a
|
|
437
|
+
* different subscription.
|
|
438
|
+
*/
|
|
439
|
+
replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;
|
|
440
|
+
/**
|
|
441
|
+
* Information about a feature that's been reassigned to a different
|
|
442
|
+
* site.
|
|
443
|
+
*/
|
|
444
|
+
reassignedToAnotherSite?: ReassignedToAnotherSiteReason;
|
|
445
|
+
/**
|
|
446
|
+
* Disabled feature. Includes information about the feature's new state,
|
|
447
|
+
* possibly its new context.
|
|
448
|
+
*/
|
|
449
|
+
feature?: Feature;
|
|
450
|
+
/**
|
|
451
|
+
* ID of the meta site for which the feature has been disabled.
|
|
452
|
+
* @format GUID
|
|
453
|
+
*/
|
|
454
|
+
metaSiteId?: string | null;
|
|
455
|
+
}
|
|
456
|
+
/** @oneof */
|
|
457
|
+
interface FeatureDisabledReasonOneOf {
|
|
458
|
+
/** Information about a feature that's no longer assigned to a site. */
|
|
459
|
+
unassingedToFloating?: UnAssingedToFloatingReason;
|
|
460
|
+
/**
|
|
461
|
+
* Information about a feature that's been replaced by a feature from a
|
|
462
|
+
* different subscription.
|
|
463
|
+
*/
|
|
464
|
+
replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;
|
|
465
|
+
/**
|
|
466
|
+
* Information about a feature that's been reassigned to a different
|
|
467
|
+
* site.
|
|
468
|
+
*/
|
|
469
|
+
reassignedToAnotherSite?: ReassignedToAnotherSiteReason;
|
|
470
|
+
}
|
|
471
|
+
/** Subscription was unassigned from the site and moved into floating state */
|
|
472
|
+
interface UnAssingedToFloatingReason {
|
|
473
|
+
}
|
|
474
|
+
/** Another subscription was assigned to the site, causing existing features on this site to be disabled */
|
|
475
|
+
interface ReplacedByAnotherSubscriptionReason {
|
|
476
|
+
}
|
|
477
|
+
/** Subscription was assigned to another site, causing features on the origin site to be disabled. */
|
|
478
|
+
interface ReassignedToAnotherSiteReason {
|
|
479
|
+
/**
|
|
480
|
+
* Information about a transfer to the site.
|
|
481
|
+
* @format GUID
|
|
482
|
+
*/
|
|
483
|
+
reassignedToMetasite?: string;
|
|
484
|
+
}
|
|
485
|
+
/** Feature updated, for example Quota was increased due to upgrade */
|
|
486
|
+
interface FeatureUpdated extends FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf {
|
|
487
|
+
/** Information about a feature that doesn't have a usage quota. */
|
|
488
|
+
booleanFeature?: BooleanFeature;
|
|
489
|
+
/** Information about a feature that has a usage quota. */
|
|
490
|
+
quotaFeature?: QuotaFeature;
|
|
491
|
+
/** Information about the contract switch. */
|
|
492
|
+
contractSwitched?: ContractSwitchedReason;
|
|
493
|
+
/**
|
|
494
|
+
* Updated feature. Includes information about the feature's new state and
|
|
495
|
+
* possibly its new context.
|
|
496
|
+
*/
|
|
497
|
+
feature?: Feature;
|
|
498
|
+
}
|
|
499
|
+
/** @oneof */
|
|
500
|
+
interface FeatureUpdatedPreviousQuantityInfoOneOf {
|
|
501
|
+
/** Information about a feature that doesn't have a usage quota. */
|
|
502
|
+
booleanFeature?: BooleanFeature;
|
|
503
|
+
/** Information about a feature that has a usage quota. */
|
|
504
|
+
quotaFeature?: QuotaFeature;
|
|
505
|
+
}
|
|
506
|
+
/** @oneof */
|
|
507
|
+
interface FeatureUpdatedReasonOneOf {
|
|
508
|
+
/** Information about the contract switch. */
|
|
509
|
+
contractSwitched?: ContractSwitchedReason;
|
|
510
|
+
}
|
|
511
|
+
/** Feature was permanently cancelled */
|
|
512
|
+
interface FeatureCancelled extends FeatureCancelledReasonOneOf {
|
|
513
|
+
/** Information about a transfer to the account. */
|
|
514
|
+
transferredToAnotherAccount?: TransferredToAnotherAccountReason;
|
|
515
|
+
/** Information about the contract switch. */
|
|
516
|
+
contractSwitched?: ContractSwitchedReason;
|
|
517
|
+
/** Information about the feature cancellation. */
|
|
518
|
+
cancelRequest?: CancelRequestedReason;
|
|
519
|
+
/** Canceled feature. */
|
|
520
|
+
feature?: Feature;
|
|
521
|
+
/**
|
|
522
|
+
* Information about a transfer to the account.
|
|
523
|
+
* __Deprecated__. Use `reason.transferred_to_account` instead.
|
|
524
|
+
* @format GUID
|
|
525
|
+
*/
|
|
526
|
+
transferredToAccount?: string | null;
|
|
527
|
+
}
|
|
528
|
+
/** @oneof */
|
|
529
|
+
interface FeatureCancelledReasonOneOf {
|
|
530
|
+
/** Information about a transfer to the account. */
|
|
531
|
+
transferredToAnotherAccount?: TransferredToAnotherAccountReason;
|
|
532
|
+
/** Information about the contract switch. */
|
|
533
|
+
contractSwitched?: ContractSwitchedReason;
|
|
534
|
+
/** Information about the feature cancellation. */
|
|
535
|
+
cancelRequest?: CancelRequestedReason;
|
|
536
|
+
}
|
|
537
|
+
/** Subscription was transferred to another account, features in the origin account were cancelled */
|
|
538
|
+
interface TransferredToAnotherAccountReason {
|
|
539
|
+
/**
|
|
540
|
+
* Information about a transfer to the account.
|
|
541
|
+
* @format GUID
|
|
542
|
+
*/
|
|
543
|
+
transferredToAccount?: string;
|
|
544
|
+
}
|
|
545
|
+
/** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */
|
|
546
|
+
interface CancelRequestedReason {
|
|
547
|
+
}
|
|
548
|
+
interface Empty {
|
|
549
|
+
}
|
|
57
550
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
58
551
|
createdEvent?: EntityCreatedEvent;
|
|
59
552
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -216,4 +709,4 @@ declare function getPricingPlansSettings(): Promise<NonNullablePaths<PricingPlan
|
|
|
216
709
|
*/
|
|
217
710
|
declare function updatePricingPlansSettings(pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>>;
|
|
218
711
|
|
|
219
|
-
export { type ActionEvent, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetPricingPlansSettingsRequest, type GetPricingPlansSettingsResponse, type IdentificationData, type IdentificationDataIdOneOf, type MessageEnvelope, type PricingPlansSettings, type RestoreInfo, TaxableAddress, type TaxableAddressWithLiterals, type UpdatePricingPlansSettingsRequest, type UpdatePricingPlansSettingsResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getPricingPlansSettings, updatePricingPlansSettings };
|
|
712
|
+
export { type ActionEvent, type AssignedFromFloatingReason, type BooleanFeature, type CancelRequestedReason, type ContractSwitchedReason, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type Feature, type FeatureCancelled, type FeatureCancelledReasonOneOf, type FeatureContext, type FeatureDisabled, type FeatureDisabledReasonOneOf, type FeatureEnabled, type FeatureEnabledReasonOneOf, type FeatureEvent, type FeatureEventEventOneOf, FeaturePeriod, type FeaturePeriodWithLiterals, type FeatureQuantityInfoOneOf, type FeatureUpdated, type FeatureUpdatedPreviousQuantityInfoOneOf, type FeatureUpdatedReasonOneOf, type GetPricingPlansSettingsRequest, type GetPricingPlansSettingsResponse, type IdentificationData, type IdentificationDataIdOneOf, type ManualFeatureCreationReason, type MessageEnvelope, type MigratedFromLegacyReason, type NewFeatureReason, type PricingPlansSettings, type QuotaFeature, type QuotaInfo, type QuotaInfoEntry, type ReassignedFromSiteReason, type ReassignedToAnotherSiteReason, type ReplacedByAnotherSubscriptionReason, type RestoreInfo, TaxableAddress, type TaxableAddressWithLiterals, type TransferredFromAnotherAccountReason, type TransferredToAnotherAccountReason, type UnAssingedToFloatingReason, type UpdatePricingPlansSettingsRequest, type UpdatePricingPlansSettingsResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getPricingPlansSettings, updatePricingPlansSettings };
|
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.typings.ts
|
|
21
21
|
var index_typings_exports = {};
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
|
+
FeaturePeriod: () => FeaturePeriod,
|
|
23
24
|
TaxableAddress: () => TaxableAddress,
|
|
24
25
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
25
26
|
getPricingPlansSettings: () => getPricingPlansSettings2,
|
|
@@ -149,6 +150,18 @@ var TaxableAddress = /* @__PURE__ */ ((TaxableAddress2) => {
|
|
|
149
150
|
TaxableAddress2["BUSINESS"] = "BUSINESS";
|
|
150
151
|
return TaxableAddress2;
|
|
151
152
|
})(TaxableAddress || {});
|
|
153
|
+
var FeaturePeriod = /* @__PURE__ */ ((FeaturePeriod2) => {
|
|
154
|
+
FeaturePeriod2["NO_PERIOD"] = "NO_PERIOD";
|
|
155
|
+
FeaturePeriod2["MILLISECOND"] = "MILLISECOND";
|
|
156
|
+
FeaturePeriod2["SECOND"] = "SECOND";
|
|
157
|
+
FeaturePeriod2["MINUTE"] = "MINUTE";
|
|
158
|
+
FeaturePeriod2["HOUR"] = "HOUR";
|
|
159
|
+
FeaturePeriod2["DAY"] = "DAY";
|
|
160
|
+
FeaturePeriod2["WEEK"] = "WEEK";
|
|
161
|
+
FeaturePeriod2["MONTH"] = "MONTH";
|
|
162
|
+
FeaturePeriod2["YEAR"] = "YEAR";
|
|
163
|
+
return FeaturePeriod2;
|
|
164
|
+
})(FeaturePeriod || {});
|
|
152
165
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
153
166
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
154
167
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -211,6 +224,7 @@ async function updatePricingPlansSettings2(pricingPlansSettings) {
|
|
|
211
224
|
}
|
|
212
225
|
// Annotate the CommonJS export names for ESM import in node:
|
|
213
226
|
0 && (module.exports = {
|
|
227
|
+
FeaturePeriod,
|
|
214
228
|
TaxableAddress,
|
|
215
229
|
WebhookIdentityType,
|
|
216
230
|
getPricingPlansSettings,
|