@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 };
|
|
@@ -49,6 +49,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
|
|
|
49
49
|
|
|
50
50
|
// src/pricing-plans-v2-plan-plans.http.ts
|
|
51
51
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
52
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
52
53
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
53
54
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
54
55
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
@@ -186,6 +187,15 @@ function listPublicPlans(payload) {
|
|
|
186
187
|
}
|
|
187
188
|
function queryPublicPlans(payload) {
|
|
188
189
|
function __queryPublicPlans({ host }) {
|
|
190
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
191
|
+
{
|
|
192
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
193
|
+
paths: [
|
|
194
|
+
{ path: "query.sort.origin.latitude" },
|
|
195
|
+
{ path: "query.sort.origin.longitude" }
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
]);
|
|
189
199
|
const metadata = {
|
|
190
200
|
entityFqdn: "wix.pricing_plans.v2.plan",
|
|
191
201
|
method: "POST",
|
|
@@ -196,10 +206,10 @@ function queryPublicPlans(payload) {
|
|
|
196
206
|
},
|
|
197
207
|
url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({
|
|
198
208
|
protoPath: "/v2/plans/public/query",
|
|
199
|
-
data:
|
|
209
|
+
data: serializedData,
|
|
200
210
|
host
|
|
201
211
|
}),
|
|
202
|
-
data:
|
|
212
|
+
data: serializedData,
|
|
203
213
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
204
214
|
{
|
|
205
215
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|