@wix/auto_sdk_pricing-plans_top-ups 1.0.2 → 1.0.4
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 +7 -7
- package/build/cjs/index.js +12 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +26 -19
- package/build/cjs/index.typings.js +9 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -5
- package/build/cjs/meta.js +10 -10
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +7 -7
- package/build/es/index.mjs +11 -11
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +26 -19
- package/build/es/index.typings.mjs +8 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -5
- package/build/es/meta.mjs +9 -9
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +7 -7
- package/build/internal/cjs/index.typings.d.ts +26 -19
- package/build/internal/cjs/meta.d.ts +5 -5
- package/build/internal/es/index.d.mts +7 -7
- package/build/internal/es/index.typings.d.mts +26 -19
- package/build/internal/es/meta.d.mts +5 -5
- package/package.json +2 -2
|
@@ -203,14 +203,14 @@ interface Cursors {
|
|
|
203
203
|
*/
|
|
204
204
|
prev?: string | null;
|
|
205
205
|
}
|
|
206
|
-
interface
|
|
206
|
+
interface ListPurchasableTopUpOffersRequest {
|
|
207
207
|
/**
|
|
208
208
|
* ID of the plan subscription to retrieve the top-up offers for.
|
|
209
209
|
* @format GUID
|
|
210
210
|
*/
|
|
211
211
|
planSubscriptionId: string | null;
|
|
212
212
|
}
|
|
213
|
-
interface
|
|
213
|
+
interface ListPurchasableTopUpOffersResponse {
|
|
214
214
|
/**
|
|
215
215
|
* Active or renewing pools of the plan subscription that have a credit configuration, for the pool definitions of the plan's top-up offers.
|
|
216
216
|
* @maxSize 100
|
|
@@ -540,6 +540,8 @@ declare function getTopUp(topUpId: string): Promise<NonNullablePaths<TopUp, `bal
|
|
|
540
540
|
*
|
|
541
541
|
* Site members retrieve only their own top-ups.
|
|
542
542
|
*
|
|
543
|
+
* Supported fields for filtering and sorting: `id`, `planSubscriptionId`, `memberId`, `orderId`, `createdDate`.
|
|
544
|
+
*
|
|
543
545
|
* To learn how to query top-ups, see [API Query Language][2].
|
|
544
546
|
*
|
|
545
547
|
* [1]: https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging
|
|
@@ -569,49 +571,49 @@ interface TopUpsQueryBuilder {
|
|
|
569
571
|
* @param value - Value to compare against.
|
|
570
572
|
* @documentationMaturity preview
|
|
571
573
|
*/
|
|
572
|
-
eq: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
574
|
+
eq: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
573
575
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
574
576
|
* @param value - Value to compare against.
|
|
575
577
|
* @documentationMaturity preview
|
|
576
578
|
*/
|
|
577
|
-
ne: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
579
|
+
ne: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
578
580
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
579
581
|
* @param value - Value to compare against.
|
|
580
582
|
* @documentationMaturity preview
|
|
581
583
|
*/
|
|
582
|
-
ge: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
584
|
+
ge: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
583
585
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
584
586
|
* @param value - Value to compare against.
|
|
585
587
|
* @documentationMaturity preview
|
|
586
588
|
*/
|
|
587
|
-
gt: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
589
|
+
gt: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
588
590
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
589
591
|
* @param value - Value to compare against.
|
|
590
592
|
* @documentationMaturity preview
|
|
591
593
|
*/
|
|
592
|
-
le: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
594
|
+
le: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
593
595
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
594
596
|
* @param value - Value to compare against.
|
|
595
597
|
* @documentationMaturity preview
|
|
596
598
|
*/
|
|
597
|
-
lt: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
599
|
+
lt: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
598
600
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
599
601
|
* @param string - String to compare against. Case-insensitive.
|
|
600
602
|
* @documentationMaturity preview
|
|
601
603
|
*/
|
|
602
|
-
startsWith: (propertyName: '_id' | 'planSubscriptionId' | 'memberId', value: string) => TopUpsQueryBuilder;
|
|
604
|
+
startsWith: (propertyName: '_id' | 'planSubscriptionId' | 'memberId' | 'orderId', value: string) => TopUpsQueryBuilder;
|
|
603
605
|
/** @documentationMaturity preview */
|
|
604
|
-
in: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
606
|
+
in: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
605
607
|
/** @documentationMaturity preview */
|
|
606
|
-
exists: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: boolean) => TopUpsQueryBuilder;
|
|
608
|
+
exists: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: boolean) => TopUpsQueryBuilder;
|
|
607
609
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
608
610
|
* @documentationMaturity preview
|
|
609
611
|
*/
|
|
610
|
-
ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'planSubscriptionId' | 'memberId'>) => TopUpsQueryBuilder;
|
|
612
|
+
ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId'>) => TopUpsQueryBuilder;
|
|
611
613
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
612
614
|
* @documentationMaturity preview
|
|
613
615
|
*/
|
|
614
|
-
descending: (...propertyNames: Array<'_id' | '_createdDate' | 'planSubscriptionId' | 'memberId'>) => TopUpsQueryBuilder;
|
|
616
|
+
descending: (...propertyNames: Array<'_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId'>) => TopUpsQueryBuilder;
|
|
615
617
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
616
618
|
* @documentationMaturity preview
|
|
617
619
|
*/
|
|
@@ -633,7 +635,13 @@ interface TopUpQuerySpec extends QuerySpec {
|
|
|
633
635
|
paging: 'cursor';
|
|
634
636
|
wql: [
|
|
635
637
|
{
|
|
636
|
-
fields: [
|
|
638
|
+
fields: [
|
|
639
|
+
'_createdDate',
|
|
640
|
+
'_id',
|
|
641
|
+
'memberId',
|
|
642
|
+
'orderId',
|
|
643
|
+
'planSubscriptionId'
|
|
644
|
+
];
|
|
637
645
|
operators: '*';
|
|
638
646
|
sort: 'BOTH';
|
|
639
647
|
}
|
|
@@ -702,10 +710,9 @@ declare const utils: {
|
|
|
702
710
|
* @public
|
|
703
711
|
* @documentationMaturity preview
|
|
704
712
|
* @requiredField planSubscriptionId
|
|
705
|
-
* @permissionId pricing_plans:v3:top_up:
|
|
706
|
-
* @
|
|
707
|
-
* @fqn wix.pricing_plans.v3.TopUpService.GetPurchasableTopUpOffers
|
|
713
|
+
* @permissionId pricing_plans:v3:top_up:list_purchasable_top_up_offers
|
|
714
|
+
* @fqn wix.pricing_plans.v3.TopUpService.ListPurchasableTopUpOffers
|
|
708
715
|
*/
|
|
709
|
-
declare function
|
|
716
|
+
declare function listPurchasableTopUpOffers(planSubscriptionId: string): Promise<NonNullablePaths<ListPurchasableTopUpOffersResponse, `pools` | `topUpOffers` | `topUpOffers.${number}.pricingStrategy.type`, 3>>;
|
|
710
717
|
|
|
711
|
-
export { type AccountInfo, type ActionEvent, type BalanceAdjustment, type CommonQueryWithEntityContext, type CreditGrant, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FlatRateOptions, type
|
|
718
|
+
export { type AccountInfo, type ActionEvent, type BalanceAdjustment, type CommonQueryWithEntityContext, type CreditGrant, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FlatRateOptions, type GetTopUpRequest, type GetTopUpResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListPurchasableTopUpOffersRequest, type ListPurchasableTopUpOffersResponse, type MessageEnvelope, type Perk, type PlanSubscriptionPool, type PricingStrategy, type PricingStrategyStrategyOptionsOneOf, type QueryTopUpsRequest, type QueryTopUpsResponse, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, type TopUp, type TopUpOffer, type TopUpQuery, type TopUpQuerySpec, type TopUpsQueryBuilder, type TopUpsQueryResult, Type, type TypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getTopUp, listPurchasableTopUpOffers, queryTopUps, typedQueryTopUps, utils };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetTopUpRequest as GetTopUpRequest$1, GetTopUpResponse as GetTopUpResponse$1, QueryTopUpsRequest as QueryTopUpsRequest$1, QueryTopUpsResponse as QueryTopUpsResponse$1,
|
|
1
|
+
import { GetTopUpRequest as GetTopUpRequest$1, GetTopUpResponse as GetTopUpResponse$1, QueryTopUpsRequest as QueryTopUpsRequest$1, QueryTopUpsResponse as QueryTopUpsResponse$1, ListPurchasableTopUpOffersRequest as ListPurchasableTopUpOffersRequest$1, ListPurchasableTopUpOffersResponse as ListPurchasableTopUpOffersResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -203,14 +203,14 @@ interface Cursors {
|
|
|
203
203
|
*/
|
|
204
204
|
prev?: string | null;
|
|
205
205
|
}
|
|
206
|
-
interface
|
|
206
|
+
interface ListPurchasableTopUpOffersRequest {
|
|
207
207
|
/**
|
|
208
208
|
* ID of the plan subscription to retrieve the top-up offers for.
|
|
209
209
|
* @format GUID
|
|
210
210
|
*/
|
|
211
211
|
planSubscriptionId: string | null;
|
|
212
212
|
}
|
|
213
|
-
interface
|
|
213
|
+
interface ListPurchasableTopUpOffersResponse {
|
|
214
214
|
/**
|
|
215
215
|
* Active or renewing pools of the plan subscription that have a credit configuration, for the pool definitions of the plan's top-up offers.
|
|
216
216
|
* @maxSize 100
|
|
@@ -580,6 +580,6 @@ declare function getTopUp(): __PublicMethodMetaInfo<'GET', {
|
|
|
580
580
|
topUpId: string;
|
|
581
581
|
}, GetTopUpRequest$1, GetTopUpRequest, GetTopUpResponse$1, GetTopUpResponse>;
|
|
582
582
|
declare function queryTopUps(): __PublicMethodMetaInfo<'GET', {}, QueryTopUpsRequest$1, QueryTopUpsRequest, QueryTopUpsResponse$1, QueryTopUpsResponse>;
|
|
583
|
-
declare function
|
|
583
|
+
declare function listPurchasableTopUpOffers(): __PublicMethodMetaInfo<'POST', {}, ListPurchasableTopUpOffersRequest$1, ListPurchasableTopUpOffersRequest, ListPurchasableTopUpOffersResponse$1, ListPurchasableTopUpOffersResponse>;
|
|
584
584
|
|
|
585
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type BalanceAdjustment as BalanceAdjustmentOriginal, type CreditGrant as CreditGrantOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FlatRateOptions as FlatRateOptionsOriginal, type
|
|
585
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type BalanceAdjustment as BalanceAdjustmentOriginal, type CreditGrant as CreditGrantOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FlatRateOptions as FlatRateOptionsOriginal, type GetTopUpRequest as GetTopUpRequestOriginal, type GetTopUpResponse as GetTopUpResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListPurchasableTopUpOffersRequest as ListPurchasableTopUpOffersRequestOriginal, type ListPurchasableTopUpOffersResponse as ListPurchasableTopUpOffersResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Perk as PerkOriginal, type PlanSubscriptionPool as PlanSubscriptionPoolOriginal, type PricingStrategy as PricingStrategyOriginal, type PricingStrategyStrategyOptionsOneOf as PricingStrategyStrategyOptionsOneOfOriginal, type QueryTopUpsRequest as QueryTopUpsRequestOriginal, type QueryTopUpsResponse as QueryTopUpsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RolloverConfiguration as RolloverConfigurationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TopUpOffer as TopUpOfferOriginal, type TopUp as TopUpOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getTopUp, listPurchasableTopUpOffers, queryTopUps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { TopUp,
|
|
3
|
-
export { AccountInfo, ActionEvent, BalanceAdjustment, CommonQueryWithEntityContext, CreditGrant, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FlatRateOptions,
|
|
2
|
+
import { TopUp, ListPurchasableTopUpOffersResponse, TopUpsQueryBuilder, TopUpQuery, typedQueryTopUps } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, ActionEvent, BalanceAdjustment, CommonQueryWithEntityContext, CreditGrant, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FlatRateOptions, GetTopUpRequest, GetTopUpResponse, IdentificationData, IdentificationDataIdOneOf, ListPurchasableTopUpOffersRequest, MessageEnvelope, Perk, PlanSubscriptionPool, PricingStrategy, PricingStrategyStrategyOptionsOneOf, QueryTopUpsRequest, QueryTopUpsResponse, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, TopUpOffer, TopUpQuerySpec, TopUpsQueryResult, Type, TypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function getTopUp$1(httpClient: HttpClient): GetTopUpSignature;
|
|
6
6
|
interface GetTopUpSignature {
|
|
@@ -13,8 +13,8 @@ interface GetTopUpSignature {
|
|
|
13
13
|
*/
|
|
14
14
|
(topUpId: string): Promise<NonNullablePaths<TopUp, `balanceAdjustments`, 0>>;
|
|
15
15
|
}
|
|
16
|
-
declare function
|
|
17
|
-
interface
|
|
16
|
+
declare function listPurchasableTopUpOffers$1(httpClient: HttpClient): ListPurchasableTopUpOffersSignature;
|
|
17
|
+
interface ListPurchasableTopUpOffersSignature {
|
|
18
18
|
/**
|
|
19
19
|
* Retrieves the top-up offers the member who holds a plan subscription can buy, with the pools that receive their credits.
|
|
20
20
|
*
|
|
@@ -27,7 +27,7 @@ interface GetPurchasableTopUpOffersSignature {
|
|
|
27
27
|
* error for a plan subscription that doesn't exist or belongs to another member.
|
|
28
28
|
* @param - ID of the plan subscription to retrieve the top-up offers for.
|
|
29
29
|
*/
|
|
30
|
-
(planSubscriptionId: string): Promise<NonNullablePaths<
|
|
30
|
+
(planSubscriptionId: string): Promise<NonNullablePaths<ListPurchasableTopUpOffersResponse, `pools` | `topUpOffers` | `topUpOffers.${number}.pricingStrategy.type`, 3>>;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
declare function customQueryTopUps(httpClient: HttpClient): {
|
|
@@ -35,7 +35,7 @@ declare function customQueryTopUps(httpClient: HttpClient): {
|
|
|
35
35
|
(query: TopUpQuery): ReturnType<typeof typedQueryTopUps>;
|
|
36
36
|
};
|
|
37
37
|
declare const getTopUp: MaybeContext<BuildRESTFunction<typeof getTopUp$1> & typeof getTopUp$1>;
|
|
38
|
-
declare const
|
|
38
|
+
declare const listPurchasableTopUpOffers: MaybeContext<BuildRESTFunction<typeof listPurchasableTopUpOffers$1> & typeof listPurchasableTopUpOffers$1>;
|
|
39
39
|
declare const queryTopUps: MaybeContext<BuildRESTFunction<typeof customQueryTopUps> & typeof customQueryTopUps>;
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { ListPurchasableTopUpOffersResponse, TopUp, TopUpQuery, TopUpsQueryBuilder, getTopUp, listPurchasableTopUpOffers, queryTopUps };
|
|
@@ -203,14 +203,14 @@ interface Cursors {
|
|
|
203
203
|
*/
|
|
204
204
|
prev?: string | null;
|
|
205
205
|
}
|
|
206
|
-
interface
|
|
206
|
+
interface ListPurchasableTopUpOffersRequest {
|
|
207
207
|
/**
|
|
208
208
|
* ID of the plan subscription to retrieve the top-up offers for.
|
|
209
209
|
* @format GUID
|
|
210
210
|
*/
|
|
211
211
|
planSubscriptionId: string | null;
|
|
212
212
|
}
|
|
213
|
-
interface
|
|
213
|
+
interface ListPurchasableTopUpOffersResponse {
|
|
214
214
|
/**
|
|
215
215
|
* Active or renewing pools of the plan subscription that have a credit configuration, for the pool definitions of the plan's top-up offers.
|
|
216
216
|
* @maxSize 100
|
|
@@ -540,6 +540,8 @@ declare function getTopUp(topUpId: string): Promise<NonNullablePaths<TopUp, `bal
|
|
|
540
540
|
*
|
|
541
541
|
* Site members retrieve only their own top-ups.
|
|
542
542
|
*
|
|
543
|
+
* Supported fields for filtering and sorting: `id`, `planSubscriptionId`, `memberId`, `orderId`, `createdDate`.
|
|
544
|
+
*
|
|
543
545
|
* To learn how to query top-ups, see [API Query Language][2].
|
|
544
546
|
*
|
|
545
547
|
* [1]: https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging
|
|
@@ -569,49 +571,49 @@ interface TopUpsQueryBuilder {
|
|
|
569
571
|
* @param value - Value to compare against.
|
|
570
572
|
* @documentationMaturity preview
|
|
571
573
|
*/
|
|
572
|
-
eq: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
574
|
+
eq: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
573
575
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
574
576
|
* @param value - Value to compare against.
|
|
575
577
|
* @documentationMaturity preview
|
|
576
578
|
*/
|
|
577
|
-
ne: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
579
|
+
ne: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
578
580
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
579
581
|
* @param value - Value to compare against.
|
|
580
582
|
* @documentationMaturity preview
|
|
581
583
|
*/
|
|
582
|
-
ge: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
584
|
+
ge: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
583
585
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
584
586
|
* @param value - Value to compare against.
|
|
585
587
|
* @documentationMaturity preview
|
|
586
588
|
*/
|
|
587
|
-
gt: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
589
|
+
gt: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
588
590
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
589
591
|
* @param value - Value to compare against.
|
|
590
592
|
* @documentationMaturity preview
|
|
591
593
|
*/
|
|
592
|
-
le: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
594
|
+
le: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
593
595
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
594
596
|
* @param value - Value to compare against.
|
|
595
597
|
* @documentationMaturity preview
|
|
596
598
|
*/
|
|
597
|
-
lt: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
599
|
+
lt: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
598
600
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
599
601
|
* @param string - String to compare against. Case-insensitive.
|
|
600
602
|
* @documentationMaturity preview
|
|
601
603
|
*/
|
|
602
|
-
startsWith: (propertyName: '_id' | 'planSubscriptionId' | 'memberId', value: string) => TopUpsQueryBuilder;
|
|
604
|
+
startsWith: (propertyName: '_id' | 'planSubscriptionId' | 'memberId' | 'orderId', value: string) => TopUpsQueryBuilder;
|
|
603
605
|
/** @documentationMaturity preview */
|
|
604
|
-
in: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: any) => TopUpsQueryBuilder;
|
|
606
|
+
in: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: any) => TopUpsQueryBuilder;
|
|
605
607
|
/** @documentationMaturity preview */
|
|
606
|
-
exists: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId', value: boolean) => TopUpsQueryBuilder;
|
|
608
|
+
exists: (propertyName: '_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId', value: boolean) => TopUpsQueryBuilder;
|
|
607
609
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
608
610
|
* @documentationMaturity preview
|
|
609
611
|
*/
|
|
610
|
-
ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'planSubscriptionId' | 'memberId'>) => TopUpsQueryBuilder;
|
|
612
|
+
ascending: (...propertyNames: Array<'_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId'>) => TopUpsQueryBuilder;
|
|
611
613
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
612
614
|
* @documentationMaturity preview
|
|
613
615
|
*/
|
|
614
|
-
descending: (...propertyNames: Array<'_id' | '_createdDate' | 'planSubscriptionId' | 'memberId'>) => TopUpsQueryBuilder;
|
|
616
|
+
descending: (...propertyNames: Array<'_id' | '_createdDate' | 'planSubscriptionId' | 'memberId' | 'orderId'>) => TopUpsQueryBuilder;
|
|
615
617
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
616
618
|
* @documentationMaturity preview
|
|
617
619
|
*/
|
|
@@ -633,7 +635,13 @@ interface TopUpQuerySpec extends QuerySpec {
|
|
|
633
635
|
paging: 'cursor';
|
|
634
636
|
wql: [
|
|
635
637
|
{
|
|
636
|
-
fields: [
|
|
638
|
+
fields: [
|
|
639
|
+
'_createdDate',
|
|
640
|
+
'_id',
|
|
641
|
+
'memberId',
|
|
642
|
+
'orderId',
|
|
643
|
+
'planSubscriptionId'
|
|
644
|
+
];
|
|
637
645
|
operators: '*';
|
|
638
646
|
sort: 'BOTH';
|
|
639
647
|
}
|
|
@@ -702,10 +710,9 @@ declare const utils: {
|
|
|
702
710
|
* @public
|
|
703
711
|
* @documentationMaturity preview
|
|
704
712
|
* @requiredField planSubscriptionId
|
|
705
|
-
* @permissionId pricing_plans:v3:top_up:
|
|
706
|
-
* @
|
|
707
|
-
* @fqn wix.pricing_plans.v3.TopUpService.GetPurchasableTopUpOffers
|
|
713
|
+
* @permissionId pricing_plans:v3:top_up:list_purchasable_top_up_offers
|
|
714
|
+
* @fqn wix.pricing_plans.v3.TopUpService.ListPurchasableTopUpOffers
|
|
708
715
|
*/
|
|
709
|
-
declare function
|
|
716
|
+
declare function listPurchasableTopUpOffers(planSubscriptionId: string): Promise<NonNullablePaths<ListPurchasableTopUpOffersResponse, `pools` | `topUpOffers` | `topUpOffers.${number}.pricingStrategy.type`, 3>>;
|
|
710
717
|
|
|
711
|
-
export { type AccountInfo, type ActionEvent, type BalanceAdjustment, type CommonQueryWithEntityContext, type CreditGrant, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FlatRateOptions, type
|
|
718
|
+
export { type AccountInfo, type ActionEvent, type BalanceAdjustment, type CommonQueryWithEntityContext, type CreditGrant, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FlatRateOptions, type GetTopUpRequest, type GetTopUpResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListPurchasableTopUpOffersRequest, type ListPurchasableTopUpOffersResponse, type MessageEnvelope, type Perk, type PlanSubscriptionPool, type PricingStrategy, type PricingStrategyStrategyOptionsOneOf, type QueryTopUpsRequest, type QueryTopUpsResponse, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, type TopUp, type TopUpOffer, type TopUpQuery, type TopUpQuerySpec, type TopUpsQueryBuilder, type TopUpsQueryResult, Type, type TypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getTopUp, listPurchasableTopUpOffers, queryTopUps, typedQueryTopUps, utils };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetTopUpRequest as GetTopUpRequest$1, GetTopUpResponse as GetTopUpResponse$1, QueryTopUpsRequest as QueryTopUpsRequest$1, QueryTopUpsResponse as QueryTopUpsResponse$1,
|
|
1
|
+
import { GetTopUpRequest as GetTopUpRequest$1, GetTopUpResponse as GetTopUpResponse$1, QueryTopUpsRequest as QueryTopUpsRequest$1, QueryTopUpsResponse as QueryTopUpsResponse$1, ListPurchasableTopUpOffersRequest as ListPurchasableTopUpOffersRequest$1, ListPurchasableTopUpOffersResponse as ListPurchasableTopUpOffersResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -203,14 +203,14 @@ interface Cursors {
|
|
|
203
203
|
*/
|
|
204
204
|
prev?: string | null;
|
|
205
205
|
}
|
|
206
|
-
interface
|
|
206
|
+
interface ListPurchasableTopUpOffersRequest {
|
|
207
207
|
/**
|
|
208
208
|
* ID of the plan subscription to retrieve the top-up offers for.
|
|
209
209
|
* @format GUID
|
|
210
210
|
*/
|
|
211
211
|
planSubscriptionId: string | null;
|
|
212
212
|
}
|
|
213
|
-
interface
|
|
213
|
+
interface ListPurchasableTopUpOffersResponse {
|
|
214
214
|
/**
|
|
215
215
|
* Active or renewing pools of the plan subscription that have a credit configuration, for the pool definitions of the plan's top-up offers.
|
|
216
216
|
* @maxSize 100
|
|
@@ -580,6 +580,6 @@ declare function getTopUp(): __PublicMethodMetaInfo<'GET', {
|
|
|
580
580
|
topUpId: string;
|
|
581
581
|
}, GetTopUpRequest$1, GetTopUpRequest, GetTopUpResponse$1, GetTopUpResponse>;
|
|
582
582
|
declare function queryTopUps(): __PublicMethodMetaInfo<'GET', {}, QueryTopUpsRequest$1, QueryTopUpsRequest, QueryTopUpsResponse$1, QueryTopUpsResponse>;
|
|
583
|
-
declare function
|
|
583
|
+
declare function listPurchasableTopUpOffers(): __PublicMethodMetaInfo<'POST', {}, ListPurchasableTopUpOffersRequest$1, ListPurchasableTopUpOffersRequest, ListPurchasableTopUpOffersResponse$1, ListPurchasableTopUpOffersResponse>;
|
|
584
584
|
|
|
585
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type BalanceAdjustment as BalanceAdjustmentOriginal, type CreditGrant as CreditGrantOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FlatRateOptions as FlatRateOptionsOriginal, type
|
|
585
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type BalanceAdjustment as BalanceAdjustmentOriginal, type CreditGrant as CreditGrantOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FlatRateOptions as FlatRateOptionsOriginal, type GetTopUpRequest as GetTopUpRequestOriginal, type GetTopUpResponse as GetTopUpResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListPurchasableTopUpOffersRequest as ListPurchasableTopUpOffersRequestOriginal, type ListPurchasableTopUpOffersResponse as ListPurchasableTopUpOffersResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Perk as PerkOriginal, type PlanSubscriptionPool as PlanSubscriptionPoolOriginal, type PricingStrategy as PricingStrategyOriginal, type PricingStrategyStrategyOptionsOneOf as PricingStrategyStrategyOptionsOneOfOriginal, type QueryTopUpsRequest as QueryTopUpsRequestOriginal, type QueryTopUpsResponse as QueryTopUpsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RolloverConfiguration as RolloverConfigurationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TopUpOffer as TopUpOfferOriginal, type TopUp as TopUpOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getTopUp, listPurchasableTopUpOffers, queryTopUps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_pricing-plans_top-ups",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.pricing_plans.v3.top_up"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "53a2b253d959bb7f81d823a7ee4fa3f7b912ae5cb12eb70495608f5e"
|
|
54
54
|
}
|