@wix/auto_sdk_pricing-plans_plans 1.0.110 → 1.0.111
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 +12 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +17 -1
- package/build/cjs/index.typings.js +12 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +12 -1
- package/build/cjs/meta.js +12 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +12 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +17 -1
- package/build/es/index.typings.mjs +12 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +12 -1
- package/build/es/meta.mjs +12 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +12 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +17 -1
- package/build/internal/cjs/index.typings.js +12 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +12 -1
- package/build/internal/cjs/meta.js +12 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +12 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +17 -1
- package/build/internal/es/index.typings.mjs +12 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +12 -1
- package/build/internal/es/meta.mjs +12 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -310,6 +310,11 @@ interface Sorting {
|
|
|
310
310
|
fieldName?: string;
|
|
311
311
|
/** Sort order. */
|
|
312
312
|
order?: SortOrderWithLiterals;
|
|
313
|
+
/**
|
|
314
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
315
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
316
|
+
*/
|
|
317
|
+
origin?: AddressLocation;
|
|
313
318
|
}
|
|
314
319
|
declare enum SortOrder {
|
|
315
320
|
ASC = "ASC",
|
|
@@ -317,6 +322,12 @@ declare enum SortOrder {
|
|
|
317
322
|
}
|
|
318
323
|
/** @enumType */
|
|
319
324
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
325
|
+
interface AddressLocation {
|
|
326
|
+
/** Address latitude. */
|
|
327
|
+
latitude?: number | null;
|
|
328
|
+
/** Address longitude. */
|
|
329
|
+
longitude?: number | null;
|
|
330
|
+
}
|
|
320
331
|
interface Paging {
|
|
321
332
|
/** Number of items to load. */
|
|
322
333
|
limit?: number | null;
|
|
@@ -1193,6 +1204,11 @@ type PlanQuery = {
|
|
|
1193
1204
|
Sort order.
|
|
1194
1205
|
*/
|
|
1195
1206
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1207
|
+
/**
|
|
1208
|
+
Origin point for geo-distance sorting on a GEO field
|
|
1209
|
+
results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
1210
|
+
*/
|
|
1211
|
+
origin?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['origin'];
|
|
1196
1212
|
}[];
|
|
1197
1213
|
/**
|
|
1198
1214
|
Pointer to page of results using offset. Can't be used together with 'cursorPaging'.
|
|
@@ -1481,4 +1497,4 @@ declare function archivePlan(_id: string): Promise<NonNullablePaths<ArchivePlanR
|
|
|
1481
1497
|
__applicationErrorsType?: ArchivePlanApplicationErrors;
|
|
1482
1498
|
}>;
|
|
1483
1499
|
|
|
1484
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ApplicationError, AppliedAt, type AppliedAtWithLiterals, type ArchivePlanApplicationErrors, type ArchivePlanRequest, type ArchivePlanResponse, ArchivedFilter, type ArchivedFilterWithLiterals, type ArrangePlansRequest, type ArrangePlansResponse, type BaseEventMetadata, type BulkActionMetadata, type BulkArchivePlanRequest, type BulkArchivePlanResponse, type BulkPlanResult, type BuyerCanCancelUpdated, type ClearPrimaryApplicationErrors, type ClearPrimaryRequest, type ClearPrimaryResponse, type CommonQueryWithEntityContext, type CountPlansRequest, type CountPlansResponse, type CreatePlanApplicationErrors, type CreatePlanRequest, type CreatePlanResponse, type CreatePlanValidationErrors, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type Duration, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type Fee, type FeeConfig, type GetPlanApplicationErrors, type GetPlanRequest, type GetPlanResponse, type GetPlanStatsApplicationErrors, type GetPlanStatsRequest, type GetPlanStatsResponse, type GetPlansPremiumStatusRequest, type GetPlansPremiumStatusResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type ListPlansApplicationErrors, type ListPlansOptions, type ListPlansRequest, type ListPlansResponse, type ListPlansValidationErrors, type ListPublicPlansApplicationErrors, type ListPublicPlansOptions, type ListPublicPlansRequest, type ListPublicPlansResponse, type MakePlanPrimaryApplicationErrors, type MakePlanPrimaryRequest, type MakePlanPrimaryResponse, type MessageEnvelope, type Money, type Paging, type PagingMetadataV2, PeriodUnit, type PeriodUnitWithLiterals, type Plan, type PlanArchived, type PlanArchivedEnvelope, type PlanBuyerCanCancelUpdatedEnvelope, type PlanCreatedEnvelope, type PlanQuery, type PlanQuerySpec, type PlanUpdatedEnvelope, type PlansQueryBuilder, type PlansQueryResult, type Pricing, type PricingPricingModelOneOf, PublicFilter, type PublicFilterWithLiterals, type PublicPlan, type QueryPublicPlansApplicationErrors, type QueryPublicPlansRequest, type QueryPublicPlansResponse, type QueryPublicPlansValidationErrors, type QueryV2, type Recurrence, type RestoreInfo, type SearchPlansRequest, type SearchPlansResponse, type SetPlanVisibilityApplicationErrors, type SetPlanVisibilityRequest, type SetPlanVisibilityResponse, SortOrder, type SortOrderWithLiterals, type Sorting, type StringList, type UpdatePlan, type UpdatePlanApplicationErrors, type UpdatePlanRequest, type UpdatePlanResponse, type UpdatePlanValidationErrors, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, onPlanArchived, onPlanBuyerCanCancelUpdated, onPlanCreated, onPlanUpdated, queryPublicPlans, setPlanVisibility, typedQueryPublicPlans, updatePlan, utils };
|
|
1500
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type ApplicationError, AppliedAt, type AppliedAtWithLiterals, type ArchivePlanApplicationErrors, type ArchivePlanRequest, type ArchivePlanResponse, ArchivedFilter, type ArchivedFilterWithLiterals, type ArrangePlansRequest, type ArrangePlansResponse, type BaseEventMetadata, type BulkActionMetadata, type BulkArchivePlanRequest, type BulkArchivePlanResponse, type BulkPlanResult, type BuyerCanCancelUpdated, type ClearPrimaryApplicationErrors, type ClearPrimaryRequest, type ClearPrimaryResponse, type CommonQueryWithEntityContext, type CountPlansRequest, type CountPlansResponse, type CreatePlanApplicationErrors, type CreatePlanRequest, type CreatePlanResponse, type CreatePlanValidationErrors, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type Duration, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type Fee, type FeeConfig, type GetPlanApplicationErrors, type GetPlanRequest, type GetPlanResponse, type GetPlanStatsApplicationErrors, type GetPlanStatsRequest, type GetPlanStatsResponse, type GetPlansPremiumStatusRequest, type GetPlansPremiumStatusResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type ListPlansApplicationErrors, type ListPlansOptions, type ListPlansRequest, type ListPlansResponse, type ListPlansValidationErrors, type ListPublicPlansApplicationErrors, type ListPublicPlansOptions, type ListPublicPlansRequest, type ListPublicPlansResponse, type MakePlanPrimaryApplicationErrors, type MakePlanPrimaryRequest, type MakePlanPrimaryResponse, type MessageEnvelope, type Money, type Paging, type PagingMetadataV2, PeriodUnit, type PeriodUnitWithLiterals, type Plan, type PlanArchived, type PlanArchivedEnvelope, type PlanBuyerCanCancelUpdatedEnvelope, type PlanCreatedEnvelope, type PlanQuery, type PlanQuerySpec, type PlanUpdatedEnvelope, type PlansQueryBuilder, type PlansQueryResult, type Pricing, type PricingPricingModelOneOf, PublicFilter, type PublicFilterWithLiterals, type PublicPlan, type QueryPublicPlansApplicationErrors, type QueryPublicPlansRequest, type QueryPublicPlansResponse, type QueryPublicPlansValidationErrors, type QueryV2, type Recurrence, type RestoreInfo, type SearchPlansRequest, type SearchPlansResponse, type SetPlanVisibilityApplicationErrors, type SetPlanVisibilityRequest, type SetPlanVisibilityResponse, SortOrder, type SortOrderWithLiterals, type Sorting, type StringList, type UpdatePlan, type UpdatePlanApplicationErrors, type UpdatePlanRequest, type UpdatePlanResponse, type UpdatePlanValidationErrors, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, onPlanArchived, onPlanBuyerCanCancelUpdated, onPlanCreated, onPlanUpdated, queryPublicPlans, setPlanVisibility, typedQueryPublicPlans, updatePlan, utils };
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
|
|
9
9
|
// src/pricing-plans-v2-plan-plans.http.ts
|
|
10
10
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
11
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
11
12
|
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
12
13
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
13
14
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
@@ -145,6 +146,15 @@ function listPublicPlans(payload) {
|
|
|
145
146
|
}
|
|
146
147
|
function queryPublicPlans(payload) {
|
|
147
148
|
function __queryPublicPlans({ host }) {
|
|
149
|
+
const serializedData = transformPaths(payload, [
|
|
150
|
+
{
|
|
151
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
152
|
+
paths: [
|
|
153
|
+
{ path: "query.sort.origin.latitude" },
|
|
154
|
+
{ path: "query.sort.origin.longitude" }
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
]);
|
|
148
158
|
const metadata = {
|
|
149
159
|
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
150
160
|
method: "POST",
|
|
@@ -155,10 +165,10 @@ function queryPublicPlans(payload) {
|
|
|
155
165
|
},
|
|
156
166
|
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
157
167
|
protoPath: "/v2/plans/public/query",
|
|
158
|
-
data:
|
|
168
|
+
data: serializedData,
|
|
159
169
|
host
|
|
160
170
|
}),
|
|
161
|
-
data:
|
|
171
|
+
data: serializedData,
|
|
162
172
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
163
173
|
{
|
|
164
174
|
transformFn: transformRESTTimestampToSDKTimestamp,
|