@deliverart/sdk-js-point-of-sale 2.1.6 → 2.1.7
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 +24 -6
- package/dist/index.d.cts +109 -1
- package/dist/index.d.ts +109 -1
- package/dist/index.js +24 -7
- package/package.json +5 -4
package/dist/index.cjs
CHANGED
|
@@ -55,6 +55,8 @@ __export(index_exports, {
|
|
|
55
55
|
pointOfSaleSchema: () => pointOfSaleSchema,
|
|
56
56
|
pointOfSaleUserRoleSchema: () => pointOfSaleUserRoleSchema,
|
|
57
57
|
pointOfSaleUserRoles: () => pointOfSaleUserRoles,
|
|
58
|
+
pointOfSaleUserSchema: () => pointOfSaleUserSchema,
|
|
59
|
+
pointOfSaleUsersQuerySchema: () => pointOfSaleUsersQuerySchema,
|
|
58
60
|
pointOfSalesQuerySchema: () => pointOfSalesQuerySchema,
|
|
59
61
|
timeSettingSchema: () => timeSettingSchema,
|
|
60
62
|
updatePointOfSaleInputSchema: () => updatePointOfSaleInputSchema,
|
|
@@ -68,6 +70,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
68
70
|
// src/models.ts
|
|
69
71
|
var import_sdk_js_company = require("@deliverart/sdk-js-company");
|
|
70
72
|
var import_sdk_js_global_types2 = require("@deliverart/sdk-js-global-types");
|
|
73
|
+
var import_sdk_js_user = require("@deliverart/sdk-js-user");
|
|
71
74
|
|
|
72
75
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/external.js
|
|
73
76
|
var external_exports = {};
|
|
@@ -11265,6 +11268,14 @@ var userPointOfSaleSchema = external_exports.object({
|
|
|
11265
11268
|
pointOfSale: pointOfSaleSchema,
|
|
11266
11269
|
role: pointOfSaleUserRoleSchema
|
|
11267
11270
|
});
|
|
11271
|
+
var pointOfSaleUserSchema = external_exports.object({
|
|
11272
|
+
id: external_exports.string(),
|
|
11273
|
+
user: import_sdk_js_user.userSchema,
|
|
11274
|
+
pointOfSale: pointOfSaleSchema,
|
|
11275
|
+
role: pointOfSaleUserRoleSchema,
|
|
11276
|
+
createdAt: import_sdk_js_global_types2.datetimeSchema,
|
|
11277
|
+
updatedAt: import_sdk_js_global_types2.datetimeSchema
|
|
11278
|
+
});
|
|
11268
11279
|
var menuVersionSchema = external_exports.object({
|
|
11269
11280
|
id: external_exports.string(),
|
|
11270
11281
|
contentUrl: external_exports.string(),
|
|
@@ -11323,8 +11334,13 @@ var pointOfSalesQuerySchema = external_exports.object({
|
|
|
11323
11334
|
"order[updatedAt]": import_sdk_js_global_types2.sortDirSchema.optional(),
|
|
11324
11335
|
page: external_exports.coerce.number().optional()
|
|
11325
11336
|
});
|
|
11337
|
+
var pointOfSaleUsersQuerySchema = external_exports.object({
|
|
11338
|
+
"order[createdAt]": import_sdk_js_global_types2.sortDirSchema.optional(),
|
|
11339
|
+
"order[updatedAt]": import_sdk_js_global_types2.sortDirSchema.optional(),
|
|
11340
|
+
page: external_exports.coerce.number().optional()
|
|
11341
|
+
}).extend(import_sdk_js_global_types2.timestampsFilterSchema.shape);
|
|
11326
11342
|
|
|
11327
|
-
// src/requests/CreatePointOfSale.ts
|
|
11343
|
+
// src/requests/point-of-sales/CreatePointOfSale.ts
|
|
11328
11344
|
var import_sdk_js_core = require("@deliverart/sdk-js-core");
|
|
11329
11345
|
var createPointOfSaleInputSchema = writableCreatePointOfSaleSchema.required();
|
|
11330
11346
|
var createPointOfSaleResponseSchema = pointOfSaleDetailsSchema;
|
|
@@ -11344,7 +11360,7 @@ var CreatePointOfSale = class extends import_sdk_js_core.AbstractApiRequest {
|
|
|
11344
11360
|
}
|
|
11345
11361
|
};
|
|
11346
11362
|
|
|
11347
|
-
// src/requests/DeletePointOfSale.ts
|
|
11363
|
+
// src/requests/point-of-sales/DeletePointOfSale.ts
|
|
11348
11364
|
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
11349
11365
|
var deletePointOfSaleInputSchema = external_exports.undefined();
|
|
11350
11366
|
var deletePointOfSaleResponseSchema = external_exports.undefined();
|
|
@@ -11365,7 +11381,7 @@ var DeletePointOfSale = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
|
11365
11381
|
}
|
|
11366
11382
|
};
|
|
11367
11383
|
|
|
11368
|
-
// src/requests/GetCompanyPointOfSales.ts
|
|
11384
|
+
// src/requests/point-of-sales/GetCompanyPointOfSales.ts
|
|
11369
11385
|
var import_sdk_js_core3 = require("@deliverart/sdk-js-core");
|
|
11370
11386
|
var getCompanyPointOfSalesQuerySchema = pointOfSalesQuerySchema;
|
|
11371
11387
|
var getCompanyPointOfSalesInputSchema = external_exports.undefined();
|
|
@@ -11390,7 +11406,7 @@ var GetCompanyPointOfSales = class extends import_sdk_js_core3.AbstractApiReques
|
|
|
11390
11406
|
}
|
|
11391
11407
|
};
|
|
11392
11408
|
|
|
11393
|
-
// src/requests/GetPointOfSaleDetails.ts
|
|
11409
|
+
// src/requests/point-of-sales/GetPointOfSaleDetails.ts
|
|
11394
11410
|
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
11395
11411
|
var getPointOfSaleDetailsInputSchema = external_exports.undefined();
|
|
11396
11412
|
var getPointOfSaleDetailsResponseSchema = pointOfSaleDetailsSchema;
|
|
@@ -11411,7 +11427,7 @@ var GetPointOfSaleDetails = class extends import_sdk_js_core4.AbstractApiRequest
|
|
|
11411
11427
|
}
|
|
11412
11428
|
};
|
|
11413
11429
|
|
|
11414
|
-
// src/requests/GetPointOfSales.ts
|
|
11430
|
+
// src/requests/point-of-sales/GetPointOfSales.ts
|
|
11415
11431
|
var import_sdk_js_core5 = require("@deliverart/sdk-js-core");
|
|
11416
11432
|
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
11417
11433
|
var getPointOfSalesQuerySchema = pointOfSalesQuerySchema;
|
|
@@ -11440,7 +11456,7 @@ var GetPointOfSales = class extends import_sdk_js_core5.AbstractApiRequest {
|
|
|
11440
11456
|
}
|
|
11441
11457
|
};
|
|
11442
11458
|
|
|
11443
|
-
// src/requests/UpdatePointOfSale.ts
|
|
11459
|
+
// src/requests/point-of-sales/UpdatePointOfSale.ts
|
|
11444
11460
|
var import_sdk_js_core6 = require("@deliverart/sdk-js-core");
|
|
11445
11461
|
var updatePointOfSaleInputSchema = writablePointOfSaleSchema.partial();
|
|
11446
11462
|
var updatePointOfSaleResponseSchema = pointOfSaleDetailsSchema;
|
|
@@ -11497,6 +11513,8 @@ var UpdatePointOfSale = class extends import_sdk_js_core6.AbstractApiRequest {
|
|
|
11497
11513
|
pointOfSaleSchema,
|
|
11498
11514
|
pointOfSaleUserRoleSchema,
|
|
11499
11515
|
pointOfSaleUserRoles,
|
|
11516
|
+
pointOfSaleUserSchema,
|
|
11517
|
+
pointOfSaleUsersQuerySchema,
|
|
11500
11518
|
pointOfSalesQuerySchema,
|
|
11501
11519
|
timeSettingSchema,
|
|
11502
11520
|
updatePointOfSaleInputSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -100,6 +100,94 @@ declare const userPointOfSaleSchema: z.ZodObject<{
|
|
|
100
100
|
}>;
|
|
101
101
|
}, z.core.$strip>;
|
|
102
102
|
type UserPointOfSale = z.infer<typeof userPointOfSaleSchema>;
|
|
103
|
+
declare const pointOfSaleUserSchema: z.ZodObject<{
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
user: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
firstName: z.ZodString;
|
|
108
|
+
lastName: z.ZodString;
|
|
109
|
+
email: z.ZodEmail;
|
|
110
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
111
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
112
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
113
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
114
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
115
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
116
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
117
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
118
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
119
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
120
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
121
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
122
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
123
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
124
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
125
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
126
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
127
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
128
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
129
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
130
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
131
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
132
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
133
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
134
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
135
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
136
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
137
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
138
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
139
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
140
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
141
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
142
|
+
ROLE_USER: "ROLE_USER";
|
|
143
|
+
}>>;
|
|
144
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
145
|
+
registration: "registration";
|
|
146
|
+
verify_email: "verify_email";
|
|
147
|
+
create_company: "create_company";
|
|
148
|
+
create_point_of_sale: "create_point_of_sale";
|
|
149
|
+
}>>;
|
|
150
|
+
emailVerified: z.ZodBoolean;
|
|
151
|
+
suspended: z.ZodBoolean;
|
|
152
|
+
createdAt: z.ZodString;
|
|
153
|
+
updatedAt: z.ZodString;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
pointOfSale: z.ZodObject<{
|
|
156
|
+
id: z.ZodString;
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
address: z.ZodObject<{
|
|
159
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
timezone: z.ZodString;
|
|
167
|
+
location: z.ZodObject<{
|
|
168
|
+
latitude: z.ZodNumber;
|
|
169
|
+
longitude: z.ZodNumber;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
172
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
173
|
+
}>>;
|
|
174
|
+
openingStatus: z.ZodEnum<{
|
|
175
|
+
OPEN: "OPEN";
|
|
176
|
+
CLOSED: "CLOSED";
|
|
177
|
+
}>;
|
|
178
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
179
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
180
|
+
createdAt: z.ZodString;
|
|
181
|
+
updatedAt: z.ZodString;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
role: z.ZodEnum<{
|
|
184
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
185
|
+
ROLE_READER: "ROLE_READER";
|
|
186
|
+
}>;
|
|
187
|
+
createdAt: z.ZodString;
|
|
188
|
+
updatedAt: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
type PointOfSaleUser = z.infer<typeof pointOfSaleUserSchema>;
|
|
103
191
|
declare const menuVersionSchema: z.ZodObject<{
|
|
104
192
|
id: z.ZodString;
|
|
105
193
|
contentUrl: z.ZodString;
|
|
@@ -386,6 +474,26 @@ declare const pointOfSalesQuerySchema: z.ZodObject<{
|
|
|
386
474
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
387
475
|
}, z.core.$strip>;
|
|
388
476
|
type PointOfSalesQueryParams = z.infer<typeof pointOfSalesQuerySchema>;
|
|
477
|
+
declare const pointOfSaleUsersQuerySchema: z.ZodObject<{
|
|
478
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
479
|
+
asc: "asc";
|
|
480
|
+
desc: "desc";
|
|
481
|
+
}>>;
|
|
482
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
483
|
+
asc: "asc";
|
|
484
|
+
desc: "desc";
|
|
485
|
+
}>>;
|
|
486
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
487
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
488
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
489
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
490
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
491
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
492
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
493
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
494
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
495
|
+
}, z.core.$strip>;
|
|
496
|
+
type PointOfSaleUsersQueryParams = z.infer<typeof pointOfSaleUsersQuerySchema>;
|
|
389
497
|
|
|
390
498
|
declare const createPointOfSaleInputSchema: z.ZodObject<{
|
|
391
499
|
company: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/companies/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/companies/:id">, unknown>>>;
|
|
@@ -1555,4 +1663,4 @@ type PointOfSaleMenuVersionIri = z.infer<typeof pointOfSaleMenuVersionIriSchema>
|
|
|
1555
1663
|
declare const pointOfSaleMenuVersionNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1556
1664
|
type PointOfSaleMenuVersionNullableIri = z.infer<typeof pointOfSaleMenuVersionNullableIriSchema>;
|
|
1557
1665
|
|
|
1558
|
-
export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, type DeliveryTimeSetting, GetCompanyPointOfSales, type GetCompanyPointOfSalesInput, type GetCompanyPointOfSalesQueryParams, type GetCompanyPointOfSalesResponse, GetPointOfSaleDetails, type GetPointOfSaleDetailsInput, type GetPointOfSaleDetailsResponse, GetPointOfSales, type GetPointOfSalesInput, type GetPointOfSalesQueryParams, type GetPointOfSalesResponse, type MenuVersion, type MenuVersionDetails, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleIri, type PointOfSaleMenuVersionIri, type PointOfSaleMenuVersionNullableIri, type PointOfSaleNullableIri, type PointOfSaleOpeningStatus, type PointOfSaleUserRole, type PointOfSalesQueryParams, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deliveryTimeSettingSchema, getCompanyPointOfSalesInputSchema, getCompanyPointOfSalesQuerySchema, getCompanyPointOfSalesResponseSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, getPointOfSalesInputSchema, getPointOfSalesQuerySchema, getPointOfSalesResponseSchema, menuVersionDetailsSchema, menuVersionSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleIriSchema, pointOfSaleMenuVersionIriSchema, pointOfSaleMenuVersionNullableIriSchema, pointOfSaleNullableIriSchema, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, pointOfSalesQuerySchema, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
|
|
1666
|
+
export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, type DeliveryTimeSetting, GetCompanyPointOfSales, type GetCompanyPointOfSalesInput, type GetCompanyPointOfSalesQueryParams, type GetCompanyPointOfSalesResponse, GetPointOfSaleDetails, type GetPointOfSaleDetailsInput, type GetPointOfSaleDetailsResponse, GetPointOfSales, type GetPointOfSalesInput, type GetPointOfSalesQueryParams, type GetPointOfSalesResponse, type MenuVersion, type MenuVersionDetails, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleIri, type PointOfSaleMenuVersionIri, type PointOfSaleMenuVersionNullableIri, type PointOfSaleNullableIri, type PointOfSaleOpeningStatus, type PointOfSaleUser, type PointOfSaleUserRole, type PointOfSaleUsersQueryParams, type PointOfSalesQueryParams, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deliveryTimeSettingSchema, getCompanyPointOfSalesInputSchema, getCompanyPointOfSalesQuerySchema, getCompanyPointOfSalesResponseSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, getPointOfSalesInputSchema, getPointOfSalesQuerySchema, getPointOfSalesResponseSchema, menuVersionDetailsSchema, menuVersionSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleIriSchema, pointOfSaleMenuVersionIriSchema, pointOfSaleMenuVersionNullableIriSchema, pointOfSaleNullableIriSchema, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, pointOfSaleUserSchema, pointOfSaleUsersQuerySchema, pointOfSalesQuerySchema, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,94 @@ declare const userPointOfSaleSchema: z.ZodObject<{
|
|
|
100
100
|
}>;
|
|
101
101
|
}, z.core.$strip>;
|
|
102
102
|
type UserPointOfSale = z.infer<typeof userPointOfSaleSchema>;
|
|
103
|
+
declare const pointOfSaleUserSchema: z.ZodObject<{
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
user: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
firstName: z.ZodString;
|
|
108
|
+
lastName: z.ZodString;
|
|
109
|
+
email: z.ZodEmail;
|
|
110
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
111
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
112
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
113
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
114
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
115
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
116
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
117
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
118
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
119
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
120
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
121
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
122
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
123
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
124
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
125
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
126
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
127
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
128
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
129
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
130
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
131
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
132
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
133
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
134
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
135
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
136
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
137
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
138
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
139
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
140
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
141
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
142
|
+
ROLE_USER: "ROLE_USER";
|
|
143
|
+
}>>;
|
|
144
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
145
|
+
registration: "registration";
|
|
146
|
+
verify_email: "verify_email";
|
|
147
|
+
create_company: "create_company";
|
|
148
|
+
create_point_of_sale: "create_point_of_sale";
|
|
149
|
+
}>>;
|
|
150
|
+
emailVerified: z.ZodBoolean;
|
|
151
|
+
suspended: z.ZodBoolean;
|
|
152
|
+
createdAt: z.ZodString;
|
|
153
|
+
updatedAt: z.ZodString;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
pointOfSale: z.ZodObject<{
|
|
156
|
+
id: z.ZodString;
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
address: z.ZodObject<{
|
|
159
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
timezone: z.ZodString;
|
|
167
|
+
location: z.ZodObject<{
|
|
168
|
+
latitude: z.ZodNumber;
|
|
169
|
+
longitude: z.ZodNumber;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
172
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
173
|
+
}>>;
|
|
174
|
+
openingStatus: z.ZodEnum<{
|
|
175
|
+
OPEN: "OPEN";
|
|
176
|
+
CLOSED: "CLOSED";
|
|
177
|
+
}>;
|
|
178
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
179
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
180
|
+
createdAt: z.ZodString;
|
|
181
|
+
updatedAt: z.ZodString;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
role: z.ZodEnum<{
|
|
184
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
185
|
+
ROLE_READER: "ROLE_READER";
|
|
186
|
+
}>;
|
|
187
|
+
createdAt: z.ZodString;
|
|
188
|
+
updatedAt: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
type PointOfSaleUser = z.infer<typeof pointOfSaleUserSchema>;
|
|
103
191
|
declare const menuVersionSchema: z.ZodObject<{
|
|
104
192
|
id: z.ZodString;
|
|
105
193
|
contentUrl: z.ZodString;
|
|
@@ -386,6 +474,26 @@ declare const pointOfSalesQuerySchema: z.ZodObject<{
|
|
|
386
474
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
387
475
|
}, z.core.$strip>;
|
|
388
476
|
type PointOfSalesQueryParams = z.infer<typeof pointOfSalesQuerySchema>;
|
|
477
|
+
declare const pointOfSaleUsersQuerySchema: z.ZodObject<{
|
|
478
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
479
|
+
asc: "asc";
|
|
480
|
+
desc: "desc";
|
|
481
|
+
}>>;
|
|
482
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
483
|
+
asc: "asc";
|
|
484
|
+
desc: "desc";
|
|
485
|
+
}>>;
|
|
486
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
487
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
488
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
489
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
490
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
491
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
492
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
493
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
494
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
495
|
+
}, z.core.$strip>;
|
|
496
|
+
type PointOfSaleUsersQueryParams = z.infer<typeof pointOfSaleUsersQuerySchema>;
|
|
389
497
|
|
|
390
498
|
declare const createPointOfSaleInputSchema: z.ZodObject<{
|
|
391
499
|
company: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/companies/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/companies/:id">, unknown>>>;
|
|
@@ -1555,4 +1663,4 @@ type PointOfSaleMenuVersionIri = z.infer<typeof pointOfSaleMenuVersionIriSchema>
|
|
|
1555
1663
|
declare const pointOfSaleMenuVersionNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1556
1664
|
type PointOfSaleMenuVersionNullableIri = z.infer<typeof pointOfSaleMenuVersionNullableIriSchema>;
|
|
1557
1665
|
|
|
1558
|
-
export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, type DeliveryTimeSetting, GetCompanyPointOfSales, type GetCompanyPointOfSalesInput, type GetCompanyPointOfSalesQueryParams, type GetCompanyPointOfSalesResponse, GetPointOfSaleDetails, type GetPointOfSaleDetailsInput, type GetPointOfSaleDetailsResponse, GetPointOfSales, type GetPointOfSalesInput, type GetPointOfSalesQueryParams, type GetPointOfSalesResponse, type MenuVersion, type MenuVersionDetails, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleIri, type PointOfSaleMenuVersionIri, type PointOfSaleMenuVersionNullableIri, type PointOfSaleNullableIri, type PointOfSaleOpeningStatus, type PointOfSaleUserRole, type PointOfSalesQueryParams, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deliveryTimeSettingSchema, getCompanyPointOfSalesInputSchema, getCompanyPointOfSalesQuerySchema, getCompanyPointOfSalesResponseSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, getPointOfSalesInputSchema, getPointOfSalesQuerySchema, getPointOfSalesResponseSchema, menuVersionDetailsSchema, menuVersionSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleIriSchema, pointOfSaleMenuVersionIriSchema, pointOfSaleMenuVersionNullableIriSchema, pointOfSaleNullableIriSchema, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, pointOfSalesQuerySchema, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
|
|
1666
|
+
export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, type DeliveryTimeSetting, GetCompanyPointOfSales, type GetCompanyPointOfSalesInput, type GetCompanyPointOfSalesQueryParams, type GetCompanyPointOfSalesResponse, GetPointOfSaleDetails, type GetPointOfSaleDetailsInput, type GetPointOfSaleDetailsResponse, GetPointOfSales, type GetPointOfSalesInput, type GetPointOfSalesQueryParams, type GetPointOfSalesResponse, type MenuVersion, type MenuVersionDetails, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleIri, type PointOfSaleMenuVersionIri, type PointOfSaleMenuVersionNullableIri, type PointOfSaleNullableIri, type PointOfSaleOpeningStatus, type PointOfSaleUser, type PointOfSaleUserRole, type PointOfSaleUsersQueryParams, type PointOfSalesQueryParams, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deliveryTimeSettingSchema, getCompanyPointOfSalesInputSchema, getCompanyPointOfSalesQuerySchema, getCompanyPointOfSalesResponseSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, getPointOfSalesInputSchema, getPointOfSalesQuerySchema, getPointOfSalesResponseSchema, menuVersionDetailsSchema, menuVersionSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleIriSchema, pointOfSaleMenuVersionIriSchema, pointOfSaleMenuVersionNullableIriSchema, pointOfSaleNullableIriSchema, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, pointOfSaleUserSchema, pointOfSaleUsersQuerySchema, pointOfSalesQuerySchema, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
|
package/dist/index.js
CHANGED
|
@@ -10,8 +10,10 @@ import {
|
|
|
10
10
|
addressSchema,
|
|
11
11
|
datetimeSchema,
|
|
12
12
|
dayOfWeekSchema,
|
|
13
|
-
sortDirSchema
|
|
13
|
+
sortDirSchema,
|
|
14
|
+
timestampsFilterSchema
|
|
14
15
|
} from "@deliverart/sdk-js-global-types";
|
|
16
|
+
import { userSchema } from "@deliverart/sdk-js-user";
|
|
15
17
|
|
|
16
18
|
// ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/classic/external.js
|
|
17
19
|
var external_exports = {};
|
|
@@ -11209,6 +11211,14 @@ var userPointOfSaleSchema = external_exports.object({
|
|
|
11209
11211
|
pointOfSale: pointOfSaleSchema,
|
|
11210
11212
|
role: pointOfSaleUserRoleSchema
|
|
11211
11213
|
});
|
|
11214
|
+
var pointOfSaleUserSchema = external_exports.object({
|
|
11215
|
+
id: external_exports.string(),
|
|
11216
|
+
user: userSchema,
|
|
11217
|
+
pointOfSale: pointOfSaleSchema,
|
|
11218
|
+
role: pointOfSaleUserRoleSchema,
|
|
11219
|
+
createdAt: datetimeSchema,
|
|
11220
|
+
updatedAt: datetimeSchema
|
|
11221
|
+
});
|
|
11212
11222
|
var menuVersionSchema = external_exports.object({
|
|
11213
11223
|
id: external_exports.string(),
|
|
11214
11224
|
contentUrl: external_exports.string(),
|
|
@@ -11267,8 +11277,13 @@ var pointOfSalesQuerySchema = external_exports.object({
|
|
|
11267
11277
|
"order[updatedAt]": sortDirSchema.optional(),
|
|
11268
11278
|
page: external_exports.coerce.number().optional()
|
|
11269
11279
|
});
|
|
11280
|
+
var pointOfSaleUsersQuerySchema = external_exports.object({
|
|
11281
|
+
"order[createdAt]": sortDirSchema.optional(),
|
|
11282
|
+
"order[updatedAt]": sortDirSchema.optional(),
|
|
11283
|
+
page: external_exports.coerce.number().optional()
|
|
11284
|
+
}).extend(timestampsFilterSchema.shape);
|
|
11270
11285
|
|
|
11271
|
-
// src/requests/CreatePointOfSale.ts
|
|
11286
|
+
// src/requests/point-of-sales/CreatePointOfSale.ts
|
|
11272
11287
|
import { AbstractApiRequest } from "@deliverart/sdk-js-core";
|
|
11273
11288
|
var createPointOfSaleInputSchema = writableCreatePointOfSaleSchema.required();
|
|
11274
11289
|
var createPointOfSaleResponseSchema = pointOfSaleDetailsSchema;
|
|
@@ -11288,7 +11303,7 @@ var CreatePointOfSale = class extends AbstractApiRequest {
|
|
|
11288
11303
|
}
|
|
11289
11304
|
};
|
|
11290
11305
|
|
|
11291
|
-
// src/requests/DeletePointOfSale.ts
|
|
11306
|
+
// src/requests/point-of-sales/DeletePointOfSale.ts
|
|
11292
11307
|
import { AbstractApiRequest as AbstractApiRequest2 } from "@deliverart/sdk-js-core";
|
|
11293
11308
|
var deletePointOfSaleInputSchema = external_exports.undefined();
|
|
11294
11309
|
var deletePointOfSaleResponseSchema = external_exports.undefined();
|
|
@@ -11309,7 +11324,7 @@ var DeletePointOfSale = class extends AbstractApiRequest2 {
|
|
|
11309
11324
|
}
|
|
11310
11325
|
};
|
|
11311
11326
|
|
|
11312
|
-
// src/requests/GetCompanyPointOfSales.ts
|
|
11327
|
+
// src/requests/point-of-sales/GetCompanyPointOfSales.ts
|
|
11313
11328
|
import { AbstractApiRequest as AbstractApiRequest3 } from "@deliverart/sdk-js-core";
|
|
11314
11329
|
var getCompanyPointOfSalesQuerySchema = pointOfSalesQuerySchema;
|
|
11315
11330
|
var getCompanyPointOfSalesInputSchema = external_exports.undefined();
|
|
@@ -11334,7 +11349,7 @@ var GetCompanyPointOfSales = class extends AbstractApiRequest3 {
|
|
|
11334
11349
|
}
|
|
11335
11350
|
};
|
|
11336
11351
|
|
|
11337
|
-
// src/requests/GetPointOfSaleDetails.ts
|
|
11352
|
+
// src/requests/point-of-sales/GetPointOfSaleDetails.ts
|
|
11338
11353
|
import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
|
|
11339
11354
|
var getPointOfSaleDetailsInputSchema = external_exports.undefined();
|
|
11340
11355
|
var getPointOfSaleDetailsResponseSchema = pointOfSaleDetailsSchema;
|
|
@@ -11355,7 +11370,7 @@ var GetPointOfSaleDetails = class extends AbstractApiRequest4 {
|
|
|
11355
11370
|
}
|
|
11356
11371
|
};
|
|
11357
11372
|
|
|
11358
|
-
// src/requests/GetPointOfSales.ts
|
|
11373
|
+
// src/requests/point-of-sales/GetPointOfSales.ts
|
|
11359
11374
|
import { AbstractApiRequest as AbstractApiRequest5 } from "@deliverart/sdk-js-core";
|
|
11360
11375
|
import {
|
|
11361
11376
|
createPaginatedSchema,
|
|
@@ -11387,7 +11402,7 @@ var GetPointOfSales = class extends AbstractApiRequest5 {
|
|
|
11387
11402
|
}
|
|
11388
11403
|
};
|
|
11389
11404
|
|
|
11390
|
-
// src/requests/UpdatePointOfSale.ts
|
|
11405
|
+
// src/requests/point-of-sales/UpdatePointOfSale.ts
|
|
11391
11406
|
import { AbstractApiRequest as AbstractApiRequest6 } from "@deliverart/sdk-js-core";
|
|
11392
11407
|
var updatePointOfSaleInputSchema = writablePointOfSaleSchema.partial();
|
|
11393
11408
|
var updatePointOfSaleResponseSchema = pointOfSaleDetailsSchema;
|
|
@@ -11443,6 +11458,8 @@ export {
|
|
|
11443
11458
|
pointOfSaleSchema,
|
|
11444
11459
|
pointOfSaleUserRoleSchema,
|
|
11445
11460
|
pointOfSaleUserRoles,
|
|
11461
|
+
pointOfSaleUserSchema,
|
|
11462
|
+
pointOfSaleUsersQuerySchema,
|
|
11446
11463
|
pointOfSalesQuerySchema,
|
|
11447
11464
|
timeSettingSchema,
|
|
11448
11465
|
updatePointOfSaleInputSchema,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-point-of-sale",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Point of Sale Management",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-company": "2.1.
|
|
22
|
-
"@deliverart/sdk-js-core": "2.1.
|
|
23
|
-
"@deliverart/sdk-js-global-types": "2.1.
|
|
21
|
+
"@deliverart/sdk-js-company": "2.1.7",
|
|
22
|
+
"@deliverart/sdk-js-core": "2.1.7",
|
|
23
|
+
"@deliverart/sdk-js-global-types": "2.1.7",
|
|
24
|
+
"@deliverart/sdk-js-user": "2.1.7"
|
|
24
25
|
},
|
|
25
26
|
"publishConfig": {
|
|
26
27
|
"access": "public"
|