@deliverart/sdk-js-global-types 2.6.0 → 2.6.1
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/dist/index.cjs +5 -0
- package/dist/index.d.cts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -60,6 +60,7 @@ __export(index_exports, {
|
|
|
60
60
|
menuItemPriceOverrideTypes: () => menuItemPriceOverrideTypes,
|
|
61
61
|
menuItemTypeSchema: () => menuItemTypeSchema,
|
|
62
62
|
menuItemTypes: () => menuItemTypes,
|
|
63
|
+
mixedPaginationSchema: () => mixedPaginationSchema,
|
|
63
64
|
orderMenuItemActionSchema: () => orderMenuItemActionSchema,
|
|
64
65
|
orderMenuItemActions: () => orderMenuItemActions,
|
|
65
66
|
orderPreparationStatusSchema: () => orderPreparationStatusSchema,
|
|
@@ -11504,6 +11505,9 @@ function createPaginatedSchema(itemSchema) {
|
|
|
11504
11505
|
pagination: paginationSchema
|
|
11505
11506
|
});
|
|
11506
11507
|
}
|
|
11508
|
+
function mixedPaginationSchema(itemSchema) {
|
|
11509
|
+
return external_exports.union([createPaginatedSchema(itemSchema), external_exports.array(itemSchema)]);
|
|
11510
|
+
}
|
|
11507
11511
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11508
11512
|
0 && (module.exports = {
|
|
11509
11513
|
IriObject,
|
|
@@ -11546,6 +11550,7 @@ function createPaginatedSchema(itemSchema) {
|
|
|
11546
11550
|
menuItemPriceOverrideTypes,
|
|
11547
11551
|
menuItemTypeSchema,
|
|
11548
11552
|
menuItemTypes,
|
|
11553
|
+
mixedPaginationSchema,
|
|
11549
11554
|
orderMenuItemActionSchema,
|
|
11550
11555
|
orderMenuItemActions,
|
|
11551
11556
|
orderPreparationStatusSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -295,5 +295,16 @@ declare function createPaginatedSchema<T extends z.ZodTypeAny>(itemSchema: T): z
|
|
|
295
295
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
296
296
|
}, z.core.$strip>;
|
|
297
297
|
}, z.core.$strip>;
|
|
298
|
+
declare function mixedPaginationSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodUnion<readonly [z.ZodObject<{
|
|
299
|
+
data: z.ZodArray<T>;
|
|
300
|
+
pagination: z.ZodObject<{
|
|
301
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
302
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
303
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
304
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
305
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
306
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
}, z.core.$strip>, z.ZodArray<T>]>;
|
|
298
309
|
|
|
299
|
-
export { type Address, type ApiTokenMode, type ApiTokenType, type ArrayContainsMatchOption, type BillingDataIT, type BundleBundleBrokenReason, type BundleStatus, type BundleType, type Datetime, type DayOfWeek, type DeliveryFeeType, IriObject, type Location, type MenuChannel, type MenuItemAllergen, type MenuItemDiet, type MenuItemModifierTargetItemType, type MenuItemPriceOverrideType, type MenuItemType, type OrderMenuItemAction, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type Paginated, type Pagination, type PaymentMethod, type PaymentStatus, type QueryParamDateCompare, type QueryParamNumberCompare, type SortDir, type TimestampsFilter, type WebhookEntity, type WebhookEvent, type WebhookLogStatus, addressSchema, apiTokenModeSchema, apiTokenModes, apiTokenTypeSchema, apiTokenTypes, arrayContainsMatchOptions, arrayContainsMatchSchema, billingDataITSchema, billingDataSchema, billingSchemasByCountry, booleanSchema, bundleBundleBrokenReasonSchema, bundleBundleBrokenReasons, bundleStatusSchema, bundleStatuses, bundleTypeSchema, bundleTypes, createPaginatedSchema, datetimeSchema, dayOfWeekSchema, daysOfWeek, deliveryFeeTypeSchema, deliveryFeeTypes, emptyResponseSchema, iriNullableSchema, iriSchema, locationSchema, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemDietSchema, menuItemDiets, menuItemModifierTargetItemTypeSchema, menuItemModifierTargetItemTypes, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemTypeSchema, menuItemTypes, orderMenuItemActionSchema, orderMenuItemActions, orderPreparationStatusSchema, orderPreparationStatuses, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, paginationSchema, paymentMethodSchema, paymentMethods, paymentStatusSchema, paymentStatuses, queryParamDateCompareSchema, queryParamNumberCompareSchema, queryParamsDateCompare, queryParamsNumberCompare, responseToPagination, sortDirSchema, sortDirections, timestampsFilterSchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses };
|
|
310
|
+
export { type Address, type ApiTokenMode, type ApiTokenType, type ArrayContainsMatchOption, type BillingDataIT, type BundleBundleBrokenReason, type BundleStatus, type BundleType, type Datetime, type DayOfWeek, type DeliveryFeeType, IriObject, type Location, type MenuChannel, type MenuItemAllergen, type MenuItemDiet, type MenuItemModifierTargetItemType, type MenuItemPriceOverrideType, type MenuItemType, type OrderMenuItemAction, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type Paginated, type Pagination, type PaymentMethod, type PaymentStatus, type QueryParamDateCompare, type QueryParamNumberCompare, type SortDir, type TimestampsFilter, type WebhookEntity, type WebhookEvent, type WebhookLogStatus, addressSchema, apiTokenModeSchema, apiTokenModes, apiTokenTypeSchema, apiTokenTypes, arrayContainsMatchOptions, arrayContainsMatchSchema, billingDataITSchema, billingDataSchema, billingSchemasByCountry, booleanSchema, bundleBundleBrokenReasonSchema, bundleBundleBrokenReasons, bundleStatusSchema, bundleStatuses, bundleTypeSchema, bundleTypes, createPaginatedSchema, datetimeSchema, dayOfWeekSchema, daysOfWeek, deliveryFeeTypeSchema, deliveryFeeTypes, emptyResponseSchema, iriNullableSchema, iriSchema, locationSchema, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemDietSchema, menuItemDiets, menuItemModifierTargetItemTypeSchema, menuItemModifierTargetItemTypes, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemTypeSchema, menuItemTypes, mixedPaginationSchema, orderMenuItemActionSchema, orderMenuItemActions, orderPreparationStatusSchema, orderPreparationStatuses, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, paginationSchema, paymentMethodSchema, paymentMethods, paymentStatusSchema, paymentStatuses, queryParamDateCompareSchema, queryParamNumberCompareSchema, queryParamsDateCompare, queryParamsNumberCompare, responseToPagination, sortDirSchema, sortDirections, timestampsFilterSchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses };
|
package/dist/index.d.ts
CHANGED
|
@@ -295,5 +295,16 @@ declare function createPaginatedSchema<T extends z.ZodTypeAny>(itemSchema: T): z
|
|
|
295
295
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
296
296
|
}, z.core.$strip>;
|
|
297
297
|
}, z.core.$strip>;
|
|
298
|
+
declare function mixedPaginationSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodUnion<readonly [z.ZodObject<{
|
|
299
|
+
data: z.ZodArray<T>;
|
|
300
|
+
pagination: z.ZodObject<{
|
|
301
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
302
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
303
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
304
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
305
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
306
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
}, z.core.$strip>, z.ZodArray<T>]>;
|
|
298
309
|
|
|
299
|
-
export { type Address, type ApiTokenMode, type ApiTokenType, type ArrayContainsMatchOption, type BillingDataIT, type BundleBundleBrokenReason, type BundleStatus, type BundleType, type Datetime, type DayOfWeek, type DeliveryFeeType, IriObject, type Location, type MenuChannel, type MenuItemAllergen, type MenuItemDiet, type MenuItemModifierTargetItemType, type MenuItemPriceOverrideType, type MenuItemType, type OrderMenuItemAction, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type Paginated, type Pagination, type PaymentMethod, type PaymentStatus, type QueryParamDateCompare, type QueryParamNumberCompare, type SortDir, type TimestampsFilter, type WebhookEntity, type WebhookEvent, type WebhookLogStatus, addressSchema, apiTokenModeSchema, apiTokenModes, apiTokenTypeSchema, apiTokenTypes, arrayContainsMatchOptions, arrayContainsMatchSchema, billingDataITSchema, billingDataSchema, billingSchemasByCountry, booleanSchema, bundleBundleBrokenReasonSchema, bundleBundleBrokenReasons, bundleStatusSchema, bundleStatuses, bundleTypeSchema, bundleTypes, createPaginatedSchema, datetimeSchema, dayOfWeekSchema, daysOfWeek, deliveryFeeTypeSchema, deliveryFeeTypes, emptyResponseSchema, iriNullableSchema, iriSchema, locationSchema, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemDietSchema, menuItemDiets, menuItemModifierTargetItemTypeSchema, menuItemModifierTargetItemTypes, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemTypeSchema, menuItemTypes, orderMenuItemActionSchema, orderMenuItemActions, orderPreparationStatusSchema, orderPreparationStatuses, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, paginationSchema, paymentMethodSchema, paymentMethods, paymentStatusSchema, paymentStatuses, queryParamDateCompareSchema, queryParamNumberCompareSchema, queryParamsDateCompare, queryParamsNumberCompare, responseToPagination, sortDirSchema, sortDirections, timestampsFilterSchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses };
|
|
310
|
+
export { type Address, type ApiTokenMode, type ApiTokenType, type ArrayContainsMatchOption, type BillingDataIT, type BundleBundleBrokenReason, type BundleStatus, type BundleType, type Datetime, type DayOfWeek, type DeliveryFeeType, IriObject, type Location, type MenuChannel, type MenuItemAllergen, type MenuItemDiet, type MenuItemModifierTargetItemType, type MenuItemPriceOverrideType, type MenuItemType, type OrderMenuItemAction, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type Paginated, type Pagination, type PaymentMethod, type PaymentStatus, type QueryParamDateCompare, type QueryParamNumberCompare, type SortDir, type TimestampsFilter, type WebhookEntity, type WebhookEvent, type WebhookLogStatus, addressSchema, apiTokenModeSchema, apiTokenModes, apiTokenTypeSchema, apiTokenTypes, arrayContainsMatchOptions, arrayContainsMatchSchema, billingDataITSchema, billingDataSchema, billingSchemasByCountry, booleanSchema, bundleBundleBrokenReasonSchema, bundleBundleBrokenReasons, bundleStatusSchema, bundleStatuses, bundleTypeSchema, bundleTypes, createPaginatedSchema, datetimeSchema, dayOfWeekSchema, daysOfWeek, deliveryFeeTypeSchema, deliveryFeeTypes, emptyResponseSchema, iriNullableSchema, iriSchema, locationSchema, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemDietSchema, menuItemDiets, menuItemModifierTargetItemTypeSchema, menuItemModifierTargetItemTypes, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemTypeSchema, menuItemTypes, mixedPaginationSchema, orderMenuItemActionSchema, orderMenuItemActions, orderPreparationStatusSchema, orderPreparationStatuses, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, paginationSchema, paymentMethodSchema, paymentMethods, paymentStatusSchema, paymentStatuses, queryParamDateCompareSchema, queryParamNumberCompareSchema, queryParamsDateCompare, queryParamsNumberCompare, responseToPagination, sortDirSchema, sortDirections, timestampsFilterSchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses };
|
package/dist/index.js
CHANGED
|
@@ -11416,6 +11416,9 @@ function createPaginatedSchema(itemSchema) {
|
|
|
11416
11416
|
pagination: paginationSchema
|
|
11417
11417
|
});
|
|
11418
11418
|
}
|
|
11419
|
+
function mixedPaginationSchema(itemSchema) {
|
|
11420
|
+
return external_exports.union([createPaginatedSchema(itemSchema), external_exports.array(itemSchema)]);
|
|
11421
|
+
}
|
|
11419
11422
|
export {
|
|
11420
11423
|
IriObject,
|
|
11421
11424
|
addressSchema,
|
|
@@ -11457,6 +11460,7 @@ export {
|
|
|
11457
11460
|
menuItemPriceOverrideTypes,
|
|
11458
11461
|
menuItemTypeSchema,
|
|
11459
11462
|
menuItemTypes,
|
|
11463
|
+
mixedPaginationSchema,
|
|
11460
11464
|
orderMenuItemActionSchema,
|
|
11461
11465
|
orderMenuItemActions,
|
|
11462
11466
|
orderPreparationStatusSchema,
|