@wix/auto_sdk_restaurants_fulfillment-methods 1.0.31 → 1.0.32
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 +21 -14
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.mts +21 -14
- package/build/es/index.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +21 -14
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/es/index.d.mts +21 -14
- package/build/internal/es/index.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { FulfillmentMethod, BulkCreateFulfillmentMethodsOptions, BulkCreateFulfillmentMethodsResponse, UpdateFulfillmentMethod, FulfillmentMethodsQueryBuilder, ListFulfillmentMethodsOptions, ListFulfillmentMethodsResponse, ListAvailableFulfillmentMethodsForAddressOptions, ListAvailableFulfillmentMethodsForAddressResponse, GetAccumulatedFulfillmentMethodsAvailabilityOptions, GetAccumulatedFulfillmentMethodsAvailabilityResponse, GetCombinedMethodAvailabilityResponse, GetAggregatedMethodAvailabilityResponse, BulkUpdateFulfillmentMethodTagsOptions, BulkUpdateFulfillmentMethodTagsResponse, BulkUpdateFulfillmentMethodTagsApplicationErrors, BulkUpdateFulfillmentMethodTagsByFilterOptions, BulkUpdateFulfillmentMethodTagsByFilterResponse, BulkUpdateFulfillmentMethodTagsByFilterApplicationErrors, FulfillmentMethodCreatedEnvelope, FulfillmentMethodDeletedEnvelope, FulfillmentMethodUpdatedEnvelope } from './index.typings.js';
|
|
3
3
|
export { ActionEvent, Address, AddressHint, AddressLocation, App, ApplicationError, Availability, BaseEventMetadata, BulkActionMetadata, BulkCreateFulfillmentMethodResult, BulkCreateFulfillmentMethodsRequest, BulkUpdateFulfillmentMethodTagsByFilterRequest, BulkUpdateFulfillmentMethodTagsRequest, BulkUpdateFulfillmentMethodTagsResult, BusinessSchedule, Categories, ChangeContext, ChangeContextPayloadOneOf, CommonAddress, CommonAddressStreetOneOf, CommonBulkActionMetadata, CommonItemMetadata, ConsentPolicy, CreateFulfillmentMethodRequest, CreateFulfillmentMethodResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomArea, CustomTag, DayOfWeek, DayOfWeekAvailability, DeleteFulfillmentMethodRequest, DeleteFulfillmentMethodResponse, DeliveryArea, DeliveryAreaAreaOptionsOneOf, DeliveryInfo, DomainEvent, DomainEventBodyOneOf, Empty, EntitiesDayOfWeek, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, FulfillmentMethodMethodOptionsOneOf, FulfillmentMethodType, FulfillmentMethodsQueryResult, GeoCoordinates, GetAccumulatedFulfillmentMethodsAvailabilityRequest, GetAggregatedMethodAvailabilityRequest, GetCombinedMethodAvailabilityRequest, GetFulfillmentMethodRequest, GetFulfillmentMethodResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ListActiveFulfillmentMethodsRequest, ListActiveFulfillmentMethodsResponse, ListAvailableFulfillmentMethodsForAddressRequest, ListFulfillmentMethodsRequest, Locale, MessageEnvelope, Multilingual, Page, PickupInfo, PlacementType, PostalCode, Properties, PropertiesChange, QueryFulfillmentMethodsRequest, QueryFulfillmentMethodsResponse, Radius, ResolutionMethod, RestoreInfo, SiteCloned, SiteCreated, SitePropertiesEvent, SitePropertiesNotification, SortOrder, Sorting, SpecialHourPeriod, StreetAddress, Subdivision, SubdivisionType, SupportedLanguage, TagList, Tags, TimeOfDay, TimeOfDayRange, TimePeriod, Translation, Type, URI, Unit, UpdateFulfillmentMethodRequest, UpdateFulfillmentMethodResponse, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type FulfillmentMethodNonNullablePaths = `pickupOptions.address.streetAddress.number` | `pickupOptions.address.streetAddress.name` | `deliveryOptions.deliveryArea.radiusOptions.centerPointAddress.streetAddress.number` | `deliveryOptions.deliveryArea.radiusOptions.centerPointAddress.streetAddress.name` | `deliveryOptions.deliveryArea.radiusOptions.unit` | `deliveryOptions.deliveryArea.postalCodeOptions.postalCodes` | `deliveryOptions.deliveryArea.customOptions.geocodes` | `deliveryOptions.deliveryArea.type` | `type` | `availability.availableTimes` | `availability.availableTimes.${number}.dayOfWeek` | `tags.privateTags.tagIds`;
|
|
5
6
|
declare function createFulfillmentMethod$1(httpClient: HttpClient): CreateFulfillmentMethodSignature;
|
|
6
7
|
interface CreateFulfillmentMethodSignature {
|
|
7
8
|
/**
|
|
@@ -11,14 +12,16 @@ interface CreateFulfillmentMethodSignature {
|
|
|
11
12
|
* @param - Fulfillment method to create.
|
|
12
13
|
* @returns The created fulfillment method.
|
|
13
14
|
*/
|
|
14
|
-
(fulfillmentMethod: FulfillmentMethod): Promise<FulfillmentMethod
|
|
15
|
+
(fulfillmentMethod: NonNullablePaths<FulfillmentMethod, `deliveryOptions.deliveryArea` | `deliveryOptions.deliveryArea.postalCodeOptions.countryCode` | `deliveryOptions.deliveryArea.radiusOptions.centerPointAddress` | `deliveryOptions.deliveryArea.radiusOptions.maxDistance`>): Promise<NonNullablePaths<FulfillmentMethod, FulfillmentMethodNonNullablePaths>>;
|
|
15
16
|
}
|
|
16
17
|
declare function bulkCreateFulfillmentMethods$1(httpClient: HttpClient): BulkCreateFulfillmentMethodsSignature;
|
|
17
18
|
interface BulkCreateFulfillmentMethodsSignature {
|
|
18
19
|
/**
|
|
19
20
|
* Create multiple fulfillment methods at once.
|
|
20
21
|
*/
|
|
21
|
-
(options?: BulkCreateFulfillmentMethodsOptions
|
|
22
|
+
(options?: BulkCreateFulfillmentMethodsOptions): Promise<NonNullablePaths<BulkCreateFulfillmentMethodsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
23
|
+
[P in FulfillmentMethodNonNullablePaths]: `results.${number}.fulfillmentMethod.${P}`;
|
|
24
|
+
}[FulfillmentMethodNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
22
25
|
}
|
|
23
26
|
declare function getFulfillmentMethod$1(httpClient: HttpClient): GetFulfillmentMethodSignature;
|
|
24
27
|
interface GetFulfillmentMethodSignature {
|
|
@@ -27,7 +30,7 @@ interface GetFulfillmentMethodSignature {
|
|
|
27
30
|
* @param - The ID of the fulfillment method to retrieve.
|
|
28
31
|
* @returns The retrieved fulfillment method.
|
|
29
32
|
*/
|
|
30
|
-
(fulfillmentMethodId: string): Promise<FulfillmentMethod
|
|
33
|
+
(fulfillmentMethodId: string): Promise<NonNullablePaths<FulfillmentMethod, FulfillmentMethodNonNullablePaths>>;
|
|
31
34
|
}
|
|
32
35
|
declare function updateFulfillmentMethod$1(httpClient: HttpClient): UpdateFulfillmentMethodSignature;
|
|
33
36
|
interface UpdateFulfillmentMethodSignature {
|
|
@@ -39,7 +42,7 @@ interface UpdateFulfillmentMethodSignature {
|
|
|
39
42
|
* @param - Fulfillment method information to update.
|
|
40
43
|
* @returns The updated fulfillment method.
|
|
41
44
|
*/
|
|
42
|
-
(_id: string, fulfillmentMethod: UpdateFulfillmentMethod): Promise<FulfillmentMethod
|
|
45
|
+
(_id: string, fulfillmentMethod: NonNullablePaths<UpdateFulfillmentMethod, `revision`>): Promise<NonNullablePaths<FulfillmentMethod, FulfillmentMethodNonNullablePaths>>;
|
|
43
46
|
}
|
|
44
47
|
declare function deleteFulfillmentMethod$1(httpClient: HttpClient): DeleteFulfillmentMethodSignature;
|
|
45
48
|
interface DeleteFulfillmentMethodSignature {
|
|
@@ -75,7 +78,9 @@ interface ListFulfillmentMethodsSignature {
|
|
|
75
78
|
* Retrieves a list of up to 100 fulfillment methods.
|
|
76
79
|
* @param - Options for listing the fulfillment methods.
|
|
77
80
|
*/
|
|
78
|
-
(options?: ListFulfillmentMethodsOptions
|
|
81
|
+
(options?: ListFulfillmentMethodsOptions): Promise<NonNullablePaths<ListFulfillmentMethodsResponse, {
|
|
82
|
+
[P in FulfillmentMethodNonNullablePaths]: `fulfillmentMethods.${number}.${P}`;
|
|
83
|
+
}[FulfillmentMethodNonNullablePaths]>>;
|
|
79
84
|
}
|
|
80
85
|
declare function listAvailableFulfillmentMethodsForAddress$1(httpClient: HttpClient): ListAvailableFulfillmentMethodsForAddressSignature;
|
|
81
86
|
interface ListAvailableFulfillmentMethodsForAddressSignature {
|
|
@@ -87,7 +92,9 @@ interface ListAvailableFulfillmentMethodsForAddressSignature {
|
|
|
87
92
|
* - Delivery fulfillment methods that are available to the given address according to their delivery areas.
|
|
88
93
|
* @param - Options for listing the available fulfillment methods.
|
|
89
94
|
*/
|
|
90
|
-
(options?: ListAvailableFulfillmentMethodsForAddressOptions
|
|
95
|
+
(options?: ListAvailableFulfillmentMethodsForAddressOptions): Promise<NonNullablePaths<ListAvailableFulfillmentMethodsForAddressResponse, {
|
|
96
|
+
[P in FulfillmentMethodNonNullablePaths]: `fulfillmentMethods.${number}.${P}`;
|
|
97
|
+
}[FulfillmentMethodNonNullablePaths]>>;
|
|
91
98
|
}
|
|
92
99
|
declare function getAccumulatedFulfillmentMethodsAvailability$1(httpClient: HttpClient): GetAccumulatedFulfillmentMethodsAvailabilitySignature;
|
|
93
100
|
interface GetAccumulatedFulfillmentMethodsAvailabilitySignature {
|
|
@@ -95,7 +102,7 @@ interface GetAccumulatedFulfillmentMethodsAvailabilitySignature {
|
|
|
95
102
|
* Retrieves the accumulated availability of all fulfillment methods.
|
|
96
103
|
* @deprecated
|
|
97
104
|
*/
|
|
98
|
-
(options?: GetAccumulatedFulfillmentMethodsAvailabilityOptions
|
|
105
|
+
(options?: GetAccumulatedFulfillmentMethodsAvailabilityOptions): Promise<NonNullablePaths<GetAccumulatedFulfillmentMethodsAvailabilityResponse, `availability.availableTimes` | `availability.availableTimes.${number}.dayOfWeek` | `types`>>;
|
|
99
106
|
}
|
|
100
107
|
declare function getCombinedMethodAvailability$1(httpClient: HttpClient): GetCombinedMethodAvailabilitySignature;
|
|
101
108
|
interface GetCombinedMethodAvailabilitySignature {
|
|
@@ -106,7 +113,7 @@ interface GetCombinedMethodAvailabilitySignature {
|
|
|
106
113
|
* @param - IDs of fulfillment methods used to determine the combined availability.
|
|
107
114
|
* @deprecated
|
|
108
115
|
*/
|
|
109
|
-
(fulfillmentMethodIds: string[]): Promise<GetCombinedMethodAvailabilityResponse
|
|
116
|
+
(fulfillmentMethodIds: string[]): Promise<NonNullablePaths<GetCombinedMethodAvailabilityResponse, `combinedAvailability.availableTimes` | `combinedAvailability.availableTimes.${number}.dayOfWeek` | `fulfillmentTypes`>>;
|
|
110
117
|
}
|
|
111
118
|
declare function getAggregatedMethodAvailability$1(httpClient: HttpClient): GetAggregatedMethodAvailabilitySignature;
|
|
112
119
|
interface GetAggregatedMethodAvailabilitySignature {
|
|
@@ -116,7 +123,7 @@ interface GetAggregatedMethodAvailabilitySignature {
|
|
|
116
123
|
* The aggregated availability is a list of times during which one or more of the given fulfillment methods is available, and the types of those fulfillment methods.
|
|
117
124
|
* @param - IDs of fulfillment methods used to determine the aggregated availability.
|
|
118
125
|
*/
|
|
119
|
-
(fulfillmentMethodIds: string[]): Promise<GetAggregatedMethodAvailabilityResponse
|
|
126
|
+
(fulfillmentMethodIds: string[]): Promise<NonNullablePaths<GetAggregatedMethodAvailabilityResponse, `aggregatedAvailability.availableTimes` | `aggregatedAvailability.availableTimes.${number}.dayOfWeek` | `fulfillmentTypes`>>;
|
|
120
127
|
}
|
|
121
128
|
declare function bulkUpdateFulfillmentMethodTags$1(httpClient: HttpClient): BulkUpdateFulfillmentMethodTagsSignature;
|
|
122
129
|
interface BulkUpdateFulfillmentMethodTagsSignature {
|
|
@@ -125,8 +132,8 @@ interface BulkUpdateFulfillmentMethodTagsSignature {
|
|
|
125
132
|
* If you specify a tag in both `assignTags` and `unassignTags`, it is assigned.
|
|
126
133
|
* @param - IDs of the fulfillment methods to update tags for.
|
|
127
134
|
*/
|
|
128
|
-
(fulfillmentMethodIds: string[], options?: BulkUpdateFulfillmentMethodTagsOptions
|
|
129
|
-
__applicationErrorsType?: BulkUpdateFulfillmentMethodTagsApplicationErrors
|
|
135
|
+
(fulfillmentMethodIds: string[], options?: BulkUpdateFulfillmentMethodTagsOptions): Promise<NonNullablePaths<BulkUpdateFulfillmentMethodTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
136
|
+
__applicationErrorsType?: BulkUpdateFulfillmentMethodTagsApplicationErrors;
|
|
130
137
|
}>;
|
|
131
138
|
}
|
|
132
139
|
declare function bulkUpdateFulfillmentMethodTagsByFilter$1(httpClient: HttpClient): BulkUpdateFulfillmentMethodTagsByFilterSignature;
|
|
@@ -137,8 +144,8 @@ interface BulkUpdateFulfillmentMethodTagsByFilterSignature {
|
|
|
137
144
|
* If you specify a tag in both `assignTags` and `unassignTags`, it is assigned.
|
|
138
145
|
* @param - Filter that determines which fulfillment methods to update tags for.
|
|
139
146
|
*/
|
|
140
|
-
(filter: Record<string, any>, options?: BulkUpdateFulfillmentMethodTagsByFilterOptions
|
|
141
|
-
__applicationErrorsType?: BulkUpdateFulfillmentMethodTagsByFilterApplicationErrors
|
|
147
|
+
(filter: Record<string, any>, options?: BulkUpdateFulfillmentMethodTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateFulfillmentMethodTagsByFilterResponse, `jobId`> & {
|
|
148
|
+
__applicationErrorsType?: BulkUpdateFulfillmentMethodTagsByFilterApplicationErrors;
|
|
142
149
|
}>;
|
|
143
150
|
}
|
|
144
151
|
declare const onFulfillmentMethodCreated$1: EventDefinition<FulfillmentMethodCreatedEnvelope, "wix.restaurants.v1.fulfillment_method_created">;
|