@deliverart/sdk-js-global-types 2.6.0 → 2.6.2

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 CHANGED
@@ -60,6 +60,7 @@ __export(index_exports, {
60
60
  menuItemPriceOverrideTypes: () => menuItemPriceOverrideTypes,
61
61
  menuItemTypeSchema: () => menuItemTypeSchema,
62
62
  menuItemTypes: () => menuItemTypes,
63
+ mixedPaginatedSchema: () => mixedPaginatedSchema,
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 mixedPaginatedSchema(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
+ mixedPaginatedSchema,
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 mixedPaginatedSchema<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, mixedPaginatedSchema, 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 mixedPaginatedSchema<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, mixedPaginatedSchema, 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 mixedPaginatedSchema(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
+ mixedPaginatedSchema,
11460
11464
  orderMenuItemActionSchema,
11461
11465
  orderMenuItemActions,
11462
11466
  orderPreparationStatusSchema,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-global-types",
3
3
  "description": "Global types for Deliverart SDK in JavaScript",
4
- "version": "2.6.0",
4
+ "version": "2.6.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",