@wix/auto_sdk_ecom_local-delivery-options 1.0.32 → 1.0.34

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.
@@ -1,4 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
1
+ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  interface LocalDeliveryOption extends LocalDeliveryOptionConfigOneOf {
4
4
  zipConfig?: ZipCodeConfig;
@@ -836,7 +836,66 @@ interface LocalDeliveryOptionsQueryBuilder {
836
836
  * @fqn com.wix.ecom.shipments.localdelivery.LocalDelivery.QueryLocalDeliveryOptions
837
837
  * @requiredField query
838
838
  */
839
- declare function typedQueryLocalDeliveryOptions(query: QueryV2): Promise<NonNullablePaths<QueryLocalDeliveryOptionsResponse, `localDeliveryOptions` | `localDeliveryOptions.${number}.radiusConfig.radius` | `localDeliveryOptions.${number}.radiusConfig.lengthUnit`, 5>>;
839
+ declare function typedQueryLocalDeliveryOptions(query: LocalDeliveryOptionQuery): Promise<NonNullablePaths<QueryLocalDeliveryOptionsResponse, `localDeliveryOptions` | `localDeliveryOptions.${number}.radiusConfig.radius` | `localDeliveryOptions.${number}.radiusConfig.lengthUnit`, 5>>;
840
+ interface LocalDeliveryOptionQuerySpec extends QuerySpec {
841
+ paging: 'cursor';
842
+ wql: [
843
+ {
844
+ fields: ['deliveryRegionIds'];
845
+ operators: ['$hasAll', '$hasSome'];
846
+ sort: 'NONE';
847
+ },
848
+ {
849
+ fields: ['_id', 'areaName', 'estimatedDeliveryTime'];
850
+ operators: '*';
851
+ sort: 'NONE';
852
+ }
853
+ ];
854
+ }
855
+ type CommonQueryWithEntityContext = Query<LocalDeliveryOption, LocalDeliveryOptionQuerySpec>;
856
+ type LocalDeliveryOptionQuery = {
857
+ /**
858
+ Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.
859
+ */
860
+ cursorPaging?: {
861
+ /**
862
+ Maximum number of items to return in the results.
863
+ @max: 100
864
+ */
865
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
866
+ /**
867
+ Pointer to the next or previous page in the list of results.
868
+
869
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
870
+ Not relevant for the first request.
871
+ @maxLength: 16000
872
+ */
873
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
874
+ };
875
+ /**
876
+ Filter object.
877
+
878
+ Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
879
+ */
880
+ filter?: CommonQueryWithEntityContext['filter'] | null;
881
+ /**
882
+ Sort object.
883
+
884
+ Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
885
+ @maxSize: 5
886
+ */
887
+ sort?: {
888
+ /**
889
+ Name of the field to sort by.
890
+ @maxLength: 512
891
+ */
892
+ fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
893
+ /**
894
+ Sort order.
895
+ */
896
+ order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
897
+ }[];
898
+ };
840
899
  /** @param _id - LocalDeliveryOptionId - unique identifier of local delivery option
841
900
  * @public
842
901
  * @documentationMaturity preview
@@ -1159,4 +1218,4 @@ interface RemoveDeliveryRegionOptions {
1159
1218
  revision?: string | null;
1160
1219
  }
1161
1220
 
1162
- export { type ActionEvent, type AddDeliveryRegionOptions, type AddDeliveryRegionRequest, type AddDeliveryRegionResponse, type AddressLocation, type BulkCreateLocalDeliveryOptionApplicationErrors, type BulkCreateLocalDeliveryOptionRequest, type BulkCreateLocalDeliveryOptionResponse, type BulkDeleteLocalDeliveryOptionRequest, type BulkDeleteLocalDeliveryOptionResponse, type BulkUpdateLocalDeliveryOptionRequest, type BulkUpdateLocalDeliveryOptionResponse, type Condition, ConditionType, type ConditionTypeWithLiterals, type ConditionalRates, type CreateLocalDeliveryOptionApplicationErrors, type CreateLocalDeliveryOptionRequest, type CreateLocalDeliveryOptionResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type CustomAreaConfig, DayOfWeek, type DayOfWeekWithLiterals, type DaySlot, type Days, type DeleteLocalDeliveryOptionOptions, type DeleteLocalDeliveryOptionRequest, type DeleteLocalDeliveryOptionResponse, type Destination, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetLocalDeliveryOptionOptions, type GetLocalDeliveryOptionRequest, type GetLocalDeliveryOptionResponse, type IdentificationData, type IdentificationDataIdOneOf, LengthUnit, type LengthUnitWithLiterals, type ListLocalDeliveryOptionsRequest, type ListLocalDeliveryOptionsResponse, type LocalDeliveryAddress, type LocalDeliveryOption, type LocalDeliveryOptionConfigOneOf, type LocalDeliveryOptionError, type LocalDeliveryOptionsQueryBuilder, type LocalDeliveryOptionsQueryResult, LogicalOperator, type LogicalOperatorWithLiterals, type MessageEnvelope, type Paging, type QueryLocalDeliveryOptionsRequest, type QueryLocalDeliveryOptionsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RadiusConfig, type RemoveDeliveryRegionOptions, type RemoveDeliveryRegionRequest, type RemoveDeliveryRegionResponse, type RestoreInfo, type ScheduledDelivery, SortOrder, type SortOrderWithLiterals, type Sorting, type TimeOfDay, type TimePoint, type TimeSlot, type TimeWindow, type UpdateLocalDeliveryOption, type UpdateLocalDeliveryOptionRequest, type UpdateLocalDeliveryOptionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type ZipCodeConfig, addDeliveryRegion, bulkCreateLocalDeliveryOption, bulkDeleteLocalDeliveryOption, bulkUpdateLocalDeliveryOption, createLocalDeliveryOption, deleteLocalDeliveryOption, getLocalDeliveryOption, listLocalDeliveryOptions, queryLocalDeliveryOptions, removeDeliveryRegion, typedQueryLocalDeliveryOptions, updateLocalDeliveryOption };
1221
+ export { type ActionEvent, type AddDeliveryRegionOptions, type AddDeliveryRegionRequest, type AddDeliveryRegionResponse, type AddressLocation, type BulkCreateLocalDeliveryOptionApplicationErrors, type BulkCreateLocalDeliveryOptionRequest, type BulkCreateLocalDeliveryOptionResponse, type BulkDeleteLocalDeliveryOptionRequest, type BulkDeleteLocalDeliveryOptionResponse, type BulkUpdateLocalDeliveryOptionRequest, type BulkUpdateLocalDeliveryOptionResponse, type CommonQueryWithEntityContext, type Condition, ConditionType, type ConditionTypeWithLiterals, type ConditionalRates, type CreateLocalDeliveryOptionApplicationErrors, type CreateLocalDeliveryOptionRequest, type CreateLocalDeliveryOptionResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type CustomAreaConfig, DayOfWeek, type DayOfWeekWithLiterals, type DaySlot, type Days, type DeleteLocalDeliveryOptionOptions, type DeleteLocalDeliveryOptionRequest, type DeleteLocalDeliveryOptionResponse, type Destination, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetLocalDeliveryOptionOptions, type GetLocalDeliveryOptionRequest, type GetLocalDeliveryOptionResponse, type IdentificationData, type IdentificationDataIdOneOf, LengthUnit, type LengthUnitWithLiterals, type ListLocalDeliveryOptionsRequest, type ListLocalDeliveryOptionsResponse, type LocalDeliveryAddress, type LocalDeliveryOption, type LocalDeliveryOptionConfigOneOf, type LocalDeliveryOptionError, type LocalDeliveryOptionQuery, type LocalDeliveryOptionQuerySpec, type LocalDeliveryOptionsQueryBuilder, type LocalDeliveryOptionsQueryResult, LogicalOperator, type LogicalOperatorWithLiterals, type MessageEnvelope, type Paging, type QueryLocalDeliveryOptionsRequest, type QueryLocalDeliveryOptionsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RadiusConfig, type RemoveDeliveryRegionOptions, type RemoveDeliveryRegionRequest, type RemoveDeliveryRegionResponse, type RestoreInfo, type ScheduledDelivery, SortOrder, type SortOrderWithLiterals, type Sorting, type TimeOfDay, type TimePoint, type TimeSlot, type TimeWindow, type UpdateLocalDeliveryOption, type UpdateLocalDeliveryOptionRequest, type UpdateLocalDeliveryOptionResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type ZipCodeConfig, addDeliveryRegion, bulkCreateLocalDeliveryOption, bulkDeleteLocalDeliveryOption, bulkUpdateLocalDeliveryOption, createLocalDeliveryOption, deleteLocalDeliveryOption, getLocalDeliveryOption, listLocalDeliveryOptions, queryLocalDeliveryOptions, removeDeliveryRegion, typedQueryLocalDeliveryOptions, updateLocalDeliveryOption };