@deliverart/sdk-js-global-types 2.8.7 → 2.8.9
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 +19 -0
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +15 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44,6 +44,8 @@ __export(index_exports, {
|
|
|
44
44
|
daysOfWeek: () => daysOfWeek,
|
|
45
45
|
deliveryFeeTypeSchema: () => deliveryFeeTypeSchema,
|
|
46
46
|
deliveryFeeTypes: () => deliveryFeeTypes,
|
|
47
|
+
emailTemplateKeySchema: () => emailTemplateKeySchema,
|
|
48
|
+
emailTemplateKeys: () => emailTemplateKeys,
|
|
47
49
|
emptyResponseSchema: () => emptyResponseSchema,
|
|
48
50
|
iriNullableSchema: () => iriNullableSchema,
|
|
49
51
|
iriSchema: () => iriSchema,
|
|
@@ -63,6 +65,8 @@ __export(index_exports, {
|
|
|
63
65
|
mixedPaginatedSchema: () => mixedPaginatedSchema,
|
|
64
66
|
orderMenuItemActionSchema: () => orderMenuItemActionSchema,
|
|
65
67
|
orderMenuItemActions: () => orderMenuItemActions,
|
|
68
|
+
orderPartnerSchema: () => orderPartnerSchema,
|
|
69
|
+
orderPartners: () => orderPartners,
|
|
66
70
|
orderPreparationStatusSchema: () => orderPreparationStatusSchema,
|
|
67
71
|
orderPreparationStatuses: () => orderPreparationStatuses,
|
|
68
72
|
orderSourceSchema: () => orderSourceSchema,
|
|
@@ -11261,6 +11265,15 @@ function date4(params) {
|
|
|
11261
11265
|
config(en_default());
|
|
11262
11266
|
|
|
11263
11267
|
// src/enums.ts
|
|
11268
|
+
var emailTemplateKeys = [
|
|
11269
|
+
"delivery_started",
|
|
11270
|
+
"delivery_taken_over",
|
|
11271
|
+
"order_created",
|
|
11272
|
+
"order_delivered",
|
|
11273
|
+
"order_in_preparation",
|
|
11274
|
+
"order_preparation_done"
|
|
11275
|
+
];
|
|
11276
|
+
var emailTemplateKeySchema = external_exports.enum(emailTemplateKeys);
|
|
11264
11277
|
var apiTokenTypes = ["full_access", "point_of_sale"];
|
|
11265
11278
|
var apiTokenTypeSchema = external_exports.enum(apiTokenTypes);
|
|
11266
11279
|
var apiTokenModes = ["READ_ONLY", "READ_AND_WRITE"];
|
|
@@ -11269,6 +11282,8 @@ var deliveryFeeTypes = ["amount", "distance", "postal_code"];
|
|
|
11269
11282
|
var deliveryFeeTypeSchema = external_exports.enum(deliveryFeeTypes);
|
|
11270
11283
|
var menuChannels = ["application", "ecommerce", "deliveroo", "justeat", "glovo"];
|
|
11271
11284
|
var menuChannelSchema = external_exports.enum(menuChannels);
|
|
11285
|
+
var orderPartners = ["cassa_in_cloud", "deliveroo", "justeat", "glovo"];
|
|
11286
|
+
var orderPartnerSchema = external_exports.enum(orderPartners);
|
|
11272
11287
|
var menuItemAllergens = [
|
|
11273
11288
|
"peanuts-and-derivatives",
|
|
11274
11289
|
"crustaceans",
|
|
@@ -11547,6 +11562,8 @@ function mixedPaginatedSchema(itemSchema) {
|
|
|
11547
11562
|
daysOfWeek,
|
|
11548
11563
|
deliveryFeeTypeSchema,
|
|
11549
11564
|
deliveryFeeTypes,
|
|
11565
|
+
emailTemplateKeySchema,
|
|
11566
|
+
emailTemplateKeys,
|
|
11550
11567
|
emptyResponseSchema,
|
|
11551
11568
|
iriNullableSchema,
|
|
11552
11569
|
iriSchema,
|
|
@@ -11566,6 +11583,8 @@ function mixedPaginatedSchema(itemSchema) {
|
|
|
11566
11583
|
mixedPaginatedSchema,
|
|
11567
11584
|
orderMenuItemActionSchema,
|
|
11568
11585
|
orderMenuItemActions,
|
|
11586
|
+
orderPartnerSchema,
|
|
11587
|
+
orderPartners,
|
|
11569
11588
|
orderPreparationStatusSchema,
|
|
11570
11589
|
orderPreparationStatuses,
|
|
11571
11590
|
orderSourceSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -6,6 +6,16 @@ declare const queryParamsDateCompare: readonly ["before", "strictly_before", "af
|
|
|
6
6
|
declare const queryParamsNumberCompare: readonly ["gt", "gte", "lt", "lte"];
|
|
7
7
|
declare const arrayContainsMatchOptions: readonly ["all", "any"];
|
|
8
8
|
|
|
9
|
+
declare const emailTemplateKeys: readonly ["delivery_started", "delivery_taken_over", "order_created", "order_delivered", "order_in_preparation", "order_preparation_done"];
|
|
10
|
+
declare const emailTemplateKeySchema: z.ZodEnum<{
|
|
11
|
+
delivery_started: "delivery_started";
|
|
12
|
+
delivery_taken_over: "delivery_taken_over";
|
|
13
|
+
order_created: "order_created";
|
|
14
|
+
order_delivered: "order_delivered";
|
|
15
|
+
order_in_preparation: "order_in_preparation";
|
|
16
|
+
order_preparation_done: "order_preparation_done";
|
|
17
|
+
}>;
|
|
18
|
+
type EmailTemplateKey = z.infer<typeof emailTemplateKeySchema>;
|
|
9
19
|
declare const apiTokenTypes: readonly ["full_access", "point_of_sale"];
|
|
10
20
|
declare const apiTokenTypeSchema: z.ZodEnum<{
|
|
11
21
|
full_access: "full_access";
|
|
@@ -34,6 +44,14 @@ declare const menuChannelSchema: z.ZodEnum<{
|
|
|
34
44
|
glovo: "glovo";
|
|
35
45
|
}>;
|
|
36
46
|
type MenuChannel = z.infer<typeof menuChannelSchema>;
|
|
47
|
+
declare const orderPartners: readonly ["cassa_in_cloud", "deliveroo", "justeat", "glovo"];
|
|
48
|
+
declare const orderPartnerSchema: z.ZodEnum<{
|
|
49
|
+
deliveroo: "deliveroo";
|
|
50
|
+
justeat: "justeat";
|
|
51
|
+
glovo: "glovo";
|
|
52
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
53
|
+
}>;
|
|
54
|
+
type OrderPartner = z.infer<typeof orderPartnerSchema>;
|
|
37
55
|
declare const menuItemAllergens: readonly ["peanuts-and-derivatives", "crustaceans", "nuts", "gluten", "milk-and-derivatives", "lupins", "molluscs", "mustard", "fish", "celery", "sesame", "sulfur-dioxide", "soy", "eggs-and-derivatives", "mushrooms"];
|
|
38
56
|
declare const menuItemAllergenSchema: z.ZodEnum<{
|
|
39
57
|
"peanuts-and-derivatives": "peanuts-and-derivatives";
|
|
@@ -320,4 +338,4 @@ declare function mixedPaginatedSchema<T extends z.ZodTypeAny>(itemSchema: T): z.
|
|
|
320
338
|
}, z.core.$strip>;
|
|
321
339
|
}, z.core.$strip>, z.ZodArray<T>]>;
|
|
322
340
|
|
|
323
|
-
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 PrinterProtocol, type PrinterReceiptProfile, 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, printerProtocolSchema, printerProtocols, printerReceiptProfileSchema, printerReceiptProfiles, queryParamDateCompareSchema, queryParamNumberCompareSchema, queryParamsDateCompare, queryParamsNumberCompare, responseToPagination, sortDirSchema, sortDirections, timestampsFilterSchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses };
|
|
341
|
+
export { type Address, type ApiTokenMode, type ApiTokenType, type ArrayContainsMatchOption, type BillingDataIT, type BundleBundleBrokenReason, type BundleStatus, type BundleType, type Datetime, type DayOfWeek, type DeliveryFeeType, type EmailTemplateKey, IriObject, type Location, type MenuChannel, type MenuItemAllergen, type MenuItemDiet, type MenuItemModifierTargetItemType, type MenuItemPriceOverrideType, type MenuItemType, type OrderMenuItemAction, type OrderPartner, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type Paginated, type Pagination, type PaymentMethod, type PaymentStatus, type PrinterProtocol, type PrinterReceiptProfile, 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, emailTemplateKeySchema, emailTemplateKeys, emptyResponseSchema, iriNullableSchema, iriSchema, locationSchema, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemDietSchema, menuItemDiets, menuItemModifierTargetItemTypeSchema, menuItemModifierTargetItemTypes, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemTypeSchema, menuItemTypes, mixedPaginatedSchema, orderMenuItemActionSchema, orderMenuItemActions, orderPartnerSchema, orderPartners, orderPreparationStatusSchema, orderPreparationStatuses, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, paginationSchema, paymentMethodSchema, paymentMethods, paymentStatusSchema, paymentStatuses, printerProtocolSchema, printerProtocols, printerReceiptProfileSchema, printerReceiptProfiles, queryParamDateCompareSchema, queryParamNumberCompareSchema, queryParamsDateCompare, queryParamsNumberCompare, responseToPagination, sortDirSchema, sortDirections, timestampsFilterSchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,16 @@ declare const queryParamsDateCompare: readonly ["before", "strictly_before", "af
|
|
|
6
6
|
declare const queryParamsNumberCompare: readonly ["gt", "gte", "lt", "lte"];
|
|
7
7
|
declare const arrayContainsMatchOptions: readonly ["all", "any"];
|
|
8
8
|
|
|
9
|
+
declare const emailTemplateKeys: readonly ["delivery_started", "delivery_taken_over", "order_created", "order_delivered", "order_in_preparation", "order_preparation_done"];
|
|
10
|
+
declare const emailTemplateKeySchema: z.ZodEnum<{
|
|
11
|
+
delivery_started: "delivery_started";
|
|
12
|
+
delivery_taken_over: "delivery_taken_over";
|
|
13
|
+
order_created: "order_created";
|
|
14
|
+
order_delivered: "order_delivered";
|
|
15
|
+
order_in_preparation: "order_in_preparation";
|
|
16
|
+
order_preparation_done: "order_preparation_done";
|
|
17
|
+
}>;
|
|
18
|
+
type EmailTemplateKey = z.infer<typeof emailTemplateKeySchema>;
|
|
9
19
|
declare const apiTokenTypes: readonly ["full_access", "point_of_sale"];
|
|
10
20
|
declare const apiTokenTypeSchema: z.ZodEnum<{
|
|
11
21
|
full_access: "full_access";
|
|
@@ -34,6 +44,14 @@ declare const menuChannelSchema: z.ZodEnum<{
|
|
|
34
44
|
glovo: "glovo";
|
|
35
45
|
}>;
|
|
36
46
|
type MenuChannel = z.infer<typeof menuChannelSchema>;
|
|
47
|
+
declare const orderPartners: readonly ["cassa_in_cloud", "deliveroo", "justeat", "glovo"];
|
|
48
|
+
declare const orderPartnerSchema: z.ZodEnum<{
|
|
49
|
+
deliveroo: "deliveroo";
|
|
50
|
+
justeat: "justeat";
|
|
51
|
+
glovo: "glovo";
|
|
52
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
53
|
+
}>;
|
|
54
|
+
type OrderPartner = z.infer<typeof orderPartnerSchema>;
|
|
37
55
|
declare const menuItemAllergens: readonly ["peanuts-and-derivatives", "crustaceans", "nuts", "gluten", "milk-and-derivatives", "lupins", "molluscs", "mustard", "fish", "celery", "sesame", "sulfur-dioxide", "soy", "eggs-and-derivatives", "mushrooms"];
|
|
38
56
|
declare const menuItemAllergenSchema: z.ZodEnum<{
|
|
39
57
|
"peanuts-and-derivatives": "peanuts-and-derivatives";
|
|
@@ -320,4 +338,4 @@ declare function mixedPaginatedSchema<T extends z.ZodTypeAny>(itemSchema: T): z.
|
|
|
320
338
|
}, z.core.$strip>;
|
|
321
339
|
}, z.core.$strip>, z.ZodArray<T>]>;
|
|
322
340
|
|
|
323
|
-
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 PrinterProtocol, type PrinterReceiptProfile, 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, printerProtocolSchema, printerProtocols, printerReceiptProfileSchema, printerReceiptProfiles, queryParamDateCompareSchema, queryParamNumberCompareSchema, queryParamsDateCompare, queryParamsNumberCompare, responseToPagination, sortDirSchema, sortDirections, timestampsFilterSchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses };
|
|
341
|
+
export { type Address, type ApiTokenMode, type ApiTokenType, type ArrayContainsMatchOption, type BillingDataIT, type BundleBundleBrokenReason, type BundleStatus, type BundleType, type Datetime, type DayOfWeek, type DeliveryFeeType, type EmailTemplateKey, IriObject, type Location, type MenuChannel, type MenuItemAllergen, type MenuItemDiet, type MenuItemModifierTargetItemType, type MenuItemPriceOverrideType, type MenuItemType, type OrderMenuItemAction, type OrderPartner, type OrderPreparationStatus, type OrderSource, type OrderStatus, type OrderType, type Paginated, type Pagination, type PaymentMethod, type PaymentStatus, type PrinterProtocol, type PrinterReceiptProfile, 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, emailTemplateKeySchema, emailTemplateKeys, emptyResponseSchema, iriNullableSchema, iriSchema, locationSchema, menuChannelSchema, menuChannels, menuItemAllergenSchema, menuItemAllergens, menuItemDietSchema, menuItemDiets, menuItemModifierTargetItemTypeSchema, menuItemModifierTargetItemTypes, menuItemPriceOverrideTypeSchema, menuItemPriceOverrideTypes, menuItemTypeSchema, menuItemTypes, mixedPaginatedSchema, orderMenuItemActionSchema, orderMenuItemActions, orderPartnerSchema, orderPartners, orderPreparationStatusSchema, orderPreparationStatuses, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes, paginationSchema, paymentMethodSchema, paymentMethods, paymentStatusSchema, paymentStatuses, printerProtocolSchema, printerProtocols, printerReceiptProfileSchema, printerReceiptProfiles, queryParamDateCompareSchema, queryParamNumberCompareSchema, queryParamsDateCompare, queryParamsNumberCompare, responseToPagination, sortDirSchema, sortDirections, timestampsFilterSchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogStatusSchema, webhookLogStatuses };
|
package/dist/index.js
CHANGED
|
@@ -11168,6 +11168,15 @@ function date4(params) {
|
|
|
11168
11168
|
config(en_default());
|
|
11169
11169
|
|
|
11170
11170
|
// src/enums.ts
|
|
11171
|
+
var emailTemplateKeys = [
|
|
11172
|
+
"delivery_started",
|
|
11173
|
+
"delivery_taken_over",
|
|
11174
|
+
"order_created",
|
|
11175
|
+
"order_delivered",
|
|
11176
|
+
"order_in_preparation",
|
|
11177
|
+
"order_preparation_done"
|
|
11178
|
+
];
|
|
11179
|
+
var emailTemplateKeySchema = external_exports.enum(emailTemplateKeys);
|
|
11171
11180
|
var apiTokenTypes = ["full_access", "point_of_sale"];
|
|
11172
11181
|
var apiTokenTypeSchema = external_exports.enum(apiTokenTypes);
|
|
11173
11182
|
var apiTokenModes = ["READ_ONLY", "READ_AND_WRITE"];
|
|
@@ -11176,6 +11185,8 @@ var deliveryFeeTypes = ["amount", "distance", "postal_code"];
|
|
|
11176
11185
|
var deliveryFeeTypeSchema = external_exports.enum(deliveryFeeTypes);
|
|
11177
11186
|
var menuChannels = ["application", "ecommerce", "deliveroo", "justeat", "glovo"];
|
|
11178
11187
|
var menuChannelSchema = external_exports.enum(menuChannels);
|
|
11188
|
+
var orderPartners = ["cassa_in_cloud", "deliveroo", "justeat", "glovo"];
|
|
11189
|
+
var orderPartnerSchema = external_exports.enum(orderPartners);
|
|
11179
11190
|
var menuItemAllergens = [
|
|
11180
11191
|
"peanuts-and-derivatives",
|
|
11181
11192
|
"crustaceans",
|
|
@@ -11453,6 +11464,8 @@ export {
|
|
|
11453
11464
|
daysOfWeek,
|
|
11454
11465
|
deliveryFeeTypeSchema,
|
|
11455
11466
|
deliveryFeeTypes,
|
|
11467
|
+
emailTemplateKeySchema,
|
|
11468
|
+
emailTemplateKeys,
|
|
11456
11469
|
emptyResponseSchema,
|
|
11457
11470
|
iriNullableSchema,
|
|
11458
11471
|
iriSchema,
|
|
@@ -11472,6 +11485,8 @@ export {
|
|
|
11472
11485
|
mixedPaginatedSchema,
|
|
11473
11486
|
orderMenuItemActionSchema,
|
|
11474
11487
|
orderMenuItemActions,
|
|
11488
|
+
orderPartnerSchema,
|
|
11489
|
+
orderPartners,
|
|
11475
11490
|
orderPreparationStatusSchema,
|
|
11476
11491
|
orderPreparationStatuses,
|
|
11477
11492
|
orderSourceSchema,
|