@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +12 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +17 -1
  5. package/build/cjs/index.typings.js +12 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +12 -1
  8. package/build/cjs/meta.js +12 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +12 -2
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +17 -1
  14. package/build/es/index.typings.mjs +12 -2
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +12 -1
  17. package/build/es/meta.mjs +12 -2
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +12 -2
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +17 -1
  23. package/build/internal/cjs/index.typings.js +12 -2
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +12 -1
  26. package/build/internal/cjs/meta.js +12 -2
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +12 -2
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +17 -1
  32. package/build/internal/es/index.typings.mjs +12 -2
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +12 -1
  35. package/build/internal/es/meta.mjs +12 -2
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. 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: payload,
209
+ data: serializedData,
200
210
  host
201
211
  }),
202
- data: payload,
212
+ data: serializedData,
203
213
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
204
214
  {
205
215
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,