@wix/auto_sdk_pricing-plans_plans 1.0.109 → 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 +21 -5
  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 +21 -5
  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 +21 -5
  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 +21 -5
  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;
@@ -941,7 +952,7 @@ interface PlanBuyerCanCancelUpdatedEnvelope {
941
952
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
942
953
  * @permissionScope Manage Events
943
954
  * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
944
- * @permissionScope Manage Online Programs (Challenges)
955
+ * @permissionScope Manage Online Programs
945
956
  * @permissionScopeId SCOPE.CHALLENGES.MANAGE
946
957
  * @permissionScope Manage Pricing Plans
947
958
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
@@ -969,7 +980,7 @@ interface PlanCreatedEnvelope {
969
980
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
970
981
  * @permissionScope Manage Events
971
982
  * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
972
- * @permissionScope Manage Online Programs (Challenges)
983
+ * @permissionScope Manage Online Programs
973
984
  * @permissionScopeId SCOPE.CHALLENGES.MANAGE
974
985
  * @permissionScope Manage Pricing Plans
975
986
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
@@ -996,7 +1007,7 @@ interface PlanArchivedEnvelope {
996
1007
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
997
1008
  * @permissionScope Manage Events
998
1009
  * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
999
- * @permissionScope Manage Online Programs (Challenges)
1010
+ * @permissionScope Manage Online Programs
1000
1011
  * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1001
1012
  * @permissionScope Manage Pricing Plans
1002
1013
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
@@ -1024,7 +1035,7 @@ interface PlanUpdatedEnvelope {
1024
1035
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS-AND-ORDERS
1025
1036
  * @permissionScope Manage Events
1026
1037
  * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1027
- * @permissionScope Manage Online Programs (Challenges)
1038
+ * @permissionScope Manage Online Programs
1028
1039
  * @permissionScopeId SCOPE.CHALLENGES.MANAGE
1029
1040
  * @permissionScope Manage Pricing Plans
1030
1041
  * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-PLANS
@@ -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: payload,
168
+ data: serializedData,
159
169
  host
160
170
  }),
161
- data: payload,
171
+ data: serializedData,
162
172
  transformResponse: (payload2) => transformPaths(payload2, [
163
173
  {
164
174
  transformFn: transformRESTTimestampToSDKTimestamp,