@deliverart/sdk-js-point-of-sale 0.0.1 → 0.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @deliverart/sdk-js-point-of-sale
2
+
3
+ ## 0.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fedc834: Fix naming
package/dist/index.cjs CHANGED
@@ -30,11 +30,11 @@ __export(index_exports, {
30
30
  deletePointOfSaleInputSchema: () => deletePointOfSaleInputSchema,
31
31
  deletePointOfSaleResponseSchema: () => deletePointOfSaleResponseSchema,
32
32
  deliveryTimeSettingSchema: () => deliveryTimeSettingSchema,
33
- getCompaniesInputSchema: () => getCompaniesInputSchema,
34
- getCompaniesQuerySchema: () => getCompaniesQuerySchema,
35
- getCompaniesResponseSchema: () => getCompaniesResponseSchema,
36
33
  getPointOfSaleDetailsInputSchema: () => getPointOfSaleDetailsInputSchema,
37
34
  getPointOfSaleDetailsResponseSchema: () => getPointOfSaleDetailsResponseSchema,
35
+ getPointOfSalesInputSchema: () => getPointOfSalesInputSchema,
36
+ getPointOfSalesQuerySchema: () => getPointOfSalesQuerySchema,
37
+ getPointOfSalesResponseSchema: () => getPointOfSalesResponseSchema,
38
38
  pointOfSaleAutoAcceptOrderValues: () => pointOfSaleAutoAcceptOrderValues,
39
39
  pointOfSaleCapabilities: () => pointOfSaleCapabilities,
40
40
  pointOfSaleCapabilitySchema: () => pointOfSaleCapabilitySchema,
@@ -211,7 +211,7 @@ var GetPointOfSaleDetails = class extends import_sdk_js_core3.AbstractApiRequest
211
211
  var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
212
212
  var import_sdk_js_global_types2 = require("@deliverart/sdk-js-global-types");
213
213
  var import_zod5 = require("zod");
214
- var getCompaniesQuerySchema = import_zod5.z.object({
214
+ var getPointOfSalesQuerySchema = import_zod5.z.object({
215
215
  name: import_zod5.z.string().optional(),
216
216
  openingStatus: pointOfSaleOpeningStatusSchema.optional(),
217
217
  "integrationActivationRequests.connectionId": import_zod5.z.string().optional(),
@@ -222,15 +222,15 @@ var getCompaniesQuerySchema = import_zod5.z.object({
222
222
  "order[updatedAt]": import_sdk_js_global_types2.sortDirSchema.optional(),
223
223
  page: import_zod5.z.coerce.number().optional()
224
224
  });
225
- var getCompaniesResponseSchema = (0, import_sdk_js_global_types2.createPaginatedSchema)(pointOfSaleSchema);
226
- var getCompaniesInputSchema = import_zod5.z.undefined();
225
+ var getPointOfSalesResponseSchema = (0, import_sdk_js_global_types2.createPaginatedSchema)(pointOfSaleSchema);
226
+ var getPointOfSalesInputSchema = import_zod5.z.undefined();
227
227
  var GetPointOfSales = class extends import_sdk_js_core4.AbstractApiRequest {
228
228
  method = "GET";
229
229
  contentType = "application/json";
230
230
  accept = "application/json";
231
- inputSchema = getCompaniesInputSchema;
232
- outputSchema = getCompaniesResponseSchema;
233
- querySchema = getCompaniesQuerySchema;
231
+ inputSchema = getPointOfSalesInputSchema;
232
+ outputSchema = getPointOfSalesResponseSchema;
233
+ querySchema = getPointOfSalesQuerySchema;
234
234
  headersSchema = void 0;
235
235
  constructor(options) {
236
236
  super(void 0, options);
@@ -280,11 +280,11 @@ var UpdatePointOfSale = class extends import_sdk_js_core5.AbstractApiRequest {
280
280
  deletePointOfSaleInputSchema,
281
281
  deletePointOfSaleResponseSchema,
282
282
  deliveryTimeSettingSchema,
283
- getCompaniesInputSchema,
284
- getCompaniesQuerySchema,
285
- getCompaniesResponseSchema,
286
283
  getPointOfSaleDetailsInputSchema,
287
284
  getPointOfSaleDetailsResponseSchema,
285
+ getPointOfSalesInputSchema,
286
+ getPointOfSalesQuerySchema,
287
+ getPointOfSalesResponseSchema,
288
288
  pointOfSaleAutoAcceptOrderValues,
289
289
  pointOfSaleCapabilities,
290
290
  pointOfSaleCapabilitySchema,
package/dist/index.d.cts CHANGED
@@ -2594,7 +2594,7 @@ declare class GetPointOfSaleDetails extends AbstractApiRequest<void, GetPointOfS
2594
2594
  getPath(): string;
2595
2595
  }
2596
2596
 
2597
- declare const getCompaniesQuerySchema: z.ZodObject<{
2597
+ declare const getPointOfSalesQuerySchema: z.ZodObject<{
2598
2598
  name: z.ZodOptional<z.ZodString>;
2599
2599
  openingStatus: z.ZodOptional<z.ZodEnum<["OPEN", "CLOSED"]>>;
2600
2600
  'integrationActivationRequests.connectionId': z.ZodOptional<z.ZodString>;
@@ -2625,8 +2625,8 @@ declare const getCompaniesQuerySchema: z.ZodObject<{
2625
2625
  'order[updatedAt]'?: "asc" | "desc" | undefined;
2626
2626
  page?: number | undefined;
2627
2627
  }>;
2628
- type GetCompaniesQueryParams = z.infer<typeof getCompaniesQuerySchema>;
2629
- declare const getCompaniesResponseSchema: z.ZodObject<{
2628
+ type GetPointOfSalesQueryParams = z.infer<typeof getPointOfSalesQuerySchema>;
2629
+ declare const getPointOfSalesResponseSchema: z.ZodObject<{
2630
2630
  data: z.ZodArray<z.ZodObject<{
2631
2631
  id: z.ZodString;
2632
2632
  name: z.ZodString;
@@ -2791,9 +2791,9 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
2791
2791
  lastPage: number;
2792
2792
  };
2793
2793
  }>;
2794
- type GetCompaniesResponse = z.infer<typeof getCompaniesResponseSchema>;
2795
- declare const getCompaniesInputSchema: z.ZodUndefined;
2796
- declare class GetPointOfSales extends AbstractApiRequest<void, GetCompaniesResponse, GetCompaniesQueryParams> {
2794
+ type GetPointOfSalesResponse = z.infer<typeof getPointOfSalesResponseSchema>;
2795
+ declare const getPointOfSalesInputSchema: z.ZodUndefined;
2796
+ declare class GetPointOfSales extends AbstractApiRequest<void, GetPointOfSalesResponse, GetPointOfSalesQueryParams> {
2797
2797
  readonly method = "GET";
2798
2798
  readonly contentType = "application/json";
2799
2799
  readonly accept = "application/json";
@@ -2996,7 +2996,7 @@ declare class GetPointOfSales extends AbstractApiRequest<void, GetCompaniesRespo
2996
2996
  }>;
2997
2997
  readonly headersSchema: undefined;
2998
2998
  constructor(options?: {
2999
- query?: GetCompaniesQueryParams;
2999
+ query?: GetPointOfSalesQueryParams;
3000
3000
  });
3001
3001
  getPath(): string;
3002
3002
  parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<PointOfSale>;
@@ -4017,4 +4017,4 @@ declare const pointOfSaleUserRoles: readonly ["ROLE_ADMIN", "ROLE_READER"];
4017
4017
  declare const pointOfSaleUserRoleSchema: z.ZodEnum<["ROLE_ADMIN", "ROLE_READER"]>;
4018
4018
  type PointOfSaleUserRole = z.infer<typeof pointOfSaleUserRoleSchema>;
4019
4019
 
4020
- export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, type DeliveryTimeSetting, type GetCompaniesQueryParams, type GetCompaniesResponse, GetPointOfSaleDetails, type GetPointOfSaleDetailsResponse, GetPointOfSales, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleOpeningStatus, type PointOfSaleUserRole, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deliveryTimeSettingSchema, getCompaniesInputSchema, getCompaniesQuerySchema, getCompaniesResponseSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
4020
+ export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, type DeliveryTimeSetting, GetPointOfSaleDetails, type GetPointOfSaleDetailsResponse, GetPointOfSales, type GetPointOfSalesQueryParams, type GetPointOfSalesResponse, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleOpeningStatus, type PointOfSaleUserRole, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deliveryTimeSettingSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, getPointOfSalesInputSchema, getPointOfSalesQuerySchema, getPointOfSalesResponseSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
package/dist/index.d.ts CHANGED
@@ -2594,7 +2594,7 @@ declare class GetPointOfSaleDetails extends AbstractApiRequest<void, GetPointOfS
2594
2594
  getPath(): string;
2595
2595
  }
2596
2596
 
2597
- declare const getCompaniesQuerySchema: z.ZodObject<{
2597
+ declare const getPointOfSalesQuerySchema: z.ZodObject<{
2598
2598
  name: z.ZodOptional<z.ZodString>;
2599
2599
  openingStatus: z.ZodOptional<z.ZodEnum<["OPEN", "CLOSED"]>>;
2600
2600
  'integrationActivationRequests.connectionId': z.ZodOptional<z.ZodString>;
@@ -2625,8 +2625,8 @@ declare const getCompaniesQuerySchema: z.ZodObject<{
2625
2625
  'order[updatedAt]'?: "asc" | "desc" | undefined;
2626
2626
  page?: number | undefined;
2627
2627
  }>;
2628
- type GetCompaniesQueryParams = z.infer<typeof getCompaniesQuerySchema>;
2629
- declare const getCompaniesResponseSchema: z.ZodObject<{
2628
+ type GetPointOfSalesQueryParams = z.infer<typeof getPointOfSalesQuerySchema>;
2629
+ declare const getPointOfSalesResponseSchema: z.ZodObject<{
2630
2630
  data: z.ZodArray<z.ZodObject<{
2631
2631
  id: z.ZodString;
2632
2632
  name: z.ZodString;
@@ -2791,9 +2791,9 @@ declare const getCompaniesResponseSchema: z.ZodObject<{
2791
2791
  lastPage: number;
2792
2792
  };
2793
2793
  }>;
2794
- type GetCompaniesResponse = z.infer<typeof getCompaniesResponseSchema>;
2795
- declare const getCompaniesInputSchema: z.ZodUndefined;
2796
- declare class GetPointOfSales extends AbstractApiRequest<void, GetCompaniesResponse, GetCompaniesQueryParams> {
2794
+ type GetPointOfSalesResponse = z.infer<typeof getPointOfSalesResponseSchema>;
2795
+ declare const getPointOfSalesInputSchema: z.ZodUndefined;
2796
+ declare class GetPointOfSales extends AbstractApiRequest<void, GetPointOfSalesResponse, GetPointOfSalesQueryParams> {
2797
2797
  readonly method = "GET";
2798
2798
  readonly contentType = "application/json";
2799
2799
  readonly accept = "application/json";
@@ -2996,7 +2996,7 @@ declare class GetPointOfSales extends AbstractApiRequest<void, GetCompaniesRespo
2996
2996
  }>;
2997
2997
  readonly headersSchema: undefined;
2998
2998
  constructor(options?: {
2999
- query?: GetCompaniesQueryParams;
2999
+ query?: GetPointOfSalesQueryParams;
3000
3000
  });
3001
3001
  getPath(): string;
3002
3002
  parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<PointOfSale>;
@@ -4017,4 +4017,4 @@ declare const pointOfSaleUserRoles: readonly ["ROLE_ADMIN", "ROLE_READER"];
4017
4017
  declare const pointOfSaleUserRoleSchema: z.ZodEnum<["ROLE_ADMIN", "ROLE_READER"]>;
4018
4018
  type PointOfSaleUserRole = z.infer<typeof pointOfSaleUserRoleSchema>;
4019
4019
 
4020
- export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, type DeliveryTimeSetting, type GetCompaniesQueryParams, type GetCompaniesResponse, GetPointOfSaleDetails, type GetPointOfSaleDetailsResponse, GetPointOfSales, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleOpeningStatus, type PointOfSaleUserRole, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deliveryTimeSettingSchema, getCompaniesInputSchema, getCompaniesQuerySchema, getCompaniesResponseSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
4020
+ export { CreatePointOfSale, type CreatePointOfSaleInput, type CreatePointOfSaleResponse, DeletePointOfSale, type DeliveryTimeSetting, GetPointOfSaleDetails, type GetPointOfSaleDetailsResponse, GetPointOfSales, type GetPointOfSalesQueryParams, type GetPointOfSalesResponse, type PointOfSale, type PointOfSaleCapability, type PointOfSaleDetails, type PointOfSaleOpeningStatus, type PointOfSaleUserRole, type TimeSetting, UpdatePointOfSale, type UpdatePointOfSaleInput, type UpdatePointOfSaleResponse, type UserPointOfSale, type WritableCreatePointOfSale, type WritablePointOfSale, createPointOfSaleInputSchema, createPointOfSaleResponseSchema, deletePointOfSaleInputSchema, deletePointOfSaleResponseSchema, deliveryTimeSettingSchema, getPointOfSaleDetailsInputSchema, getPointOfSaleDetailsResponseSchema, getPointOfSalesInputSchema, getPointOfSalesQuerySchema, getPointOfSalesResponseSchema, pointOfSaleAutoAcceptOrderValues, pointOfSaleCapabilities, pointOfSaleCapabilitySchema, pointOfSaleDetailsSchema, pointOfSaleIntervalValues, pointOfSaleOpeningStatusSchema, pointOfSaleOpeningStatuses, pointOfSaleSchema, pointOfSaleUserRoleSchema, pointOfSaleUserRoles, timeSettingSchema, updatePointOfSaleInputSchema, updatePointOfSaleResponseSchema, userPointOfSaleSchema, writableCreatePointOfSaleSchema, writablePointOfSaleSchema };
package/dist/index.js CHANGED
@@ -159,7 +159,7 @@ import {
159
159
  sortDirSchema
160
160
  } from "@deliverart/sdk-js-global-types";
161
161
  import { z as z5 } from "zod";
162
- var getCompaniesQuerySchema = z5.object({
162
+ var getPointOfSalesQuerySchema = z5.object({
163
163
  name: z5.string().optional(),
164
164
  openingStatus: pointOfSaleOpeningStatusSchema.optional(),
165
165
  "integrationActivationRequests.connectionId": z5.string().optional(),
@@ -170,15 +170,15 @@ var getCompaniesQuerySchema = z5.object({
170
170
  "order[updatedAt]": sortDirSchema.optional(),
171
171
  page: z5.coerce.number().optional()
172
172
  });
173
- var getCompaniesResponseSchema = createPaginatedSchema(pointOfSaleSchema);
174
- var getCompaniesInputSchema = z5.undefined();
173
+ var getPointOfSalesResponseSchema = createPaginatedSchema(pointOfSaleSchema);
174
+ var getPointOfSalesInputSchema = z5.undefined();
175
175
  var GetPointOfSales = class extends AbstractApiRequest4 {
176
176
  method = "GET";
177
177
  contentType = "application/json";
178
178
  accept = "application/json";
179
- inputSchema = getCompaniesInputSchema;
180
- outputSchema = getCompaniesResponseSchema;
181
- querySchema = getCompaniesQuerySchema;
179
+ inputSchema = getPointOfSalesInputSchema;
180
+ outputSchema = getPointOfSalesResponseSchema;
181
+ querySchema = getPointOfSalesQuerySchema;
182
182
  headersSchema = void 0;
183
183
  constructor(options) {
184
184
  super(void 0, options);
@@ -227,11 +227,11 @@ export {
227
227
  deletePointOfSaleInputSchema,
228
228
  deletePointOfSaleResponseSchema,
229
229
  deliveryTimeSettingSchema,
230
- getCompaniesInputSchema,
231
- getCompaniesQuerySchema,
232
- getCompaniesResponseSchema,
233
230
  getPointOfSaleDetailsInputSchema,
234
231
  getPointOfSaleDetailsResponseSchema,
232
+ getPointOfSalesInputSchema,
233
+ getPointOfSalesQuerySchema,
234
+ getPointOfSalesResponseSchema,
235
235
  pointOfSaleAutoAcceptOrderValues,
236
236
  pointOfSaleCapabilities,
237
237
  pointOfSaleCapabilitySchema,
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": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@ import { z } from 'zod'
11
11
  import { PointOfSale, pointOfSaleSchema } from '../models'
12
12
  import { pointOfSaleOpeningStatusSchema } from '../types'
13
13
 
14
- export const getCompaniesQuerySchema = z.object({
14
+ export const getPointOfSalesQuerySchema = z.object({
15
15
  name: z.string().optional(),
16
16
  openingStatus: pointOfSaleOpeningStatusSchema.optional(),
17
17
  'integrationActivationRequests.connectionId': z.string().optional(),
@@ -22,28 +22,28 @@ export const getCompaniesQuerySchema = z.object({
22
22
  'order[updatedAt]': sortDirSchema.optional(),
23
23
  page: z.coerce.number().optional(),
24
24
  })
25
- export type GetCompaniesQueryParams = z.infer<typeof getCompaniesQuerySchema>
25
+ export type GetPointOfSalesQueryParams = z.infer<typeof getPointOfSalesQuerySchema>
26
26
 
27
- export const getCompaniesResponseSchema = createPaginatedSchema(pointOfSaleSchema)
28
- export type GetCompaniesResponse = z.infer<typeof getCompaniesResponseSchema>
27
+ export const getPointOfSalesResponseSchema = createPaginatedSchema(pointOfSaleSchema)
28
+ export type GetPointOfSalesResponse = z.infer<typeof getPointOfSalesResponseSchema>
29
29
 
30
- export const getCompaniesInputSchema = z.undefined()
30
+ export const getPointOfSalesInputSchema = z.undefined()
31
31
 
32
32
  export class GetPointOfSales extends AbstractApiRequest<
33
33
  void,
34
- GetCompaniesResponse,
35
- GetCompaniesQueryParams
34
+ GetPointOfSalesResponse,
35
+ GetPointOfSalesQueryParams
36
36
  > {
37
37
  readonly method = 'GET'
38
38
  readonly contentType = 'application/json'
39
39
  readonly accept = 'application/json'
40
40
 
41
- readonly inputSchema = getCompaniesInputSchema
42
- readonly outputSchema = getCompaniesResponseSchema
43
- readonly querySchema = getCompaniesQuerySchema
41
+ readonly inputSchema = getPointOfSalesInputSchema
42
+ readonly outputSchema = getPointOfSalesResponseSchema
43
+ readonly querySchema = getPointOfSalesQuerySchema
44
44
  readonly headersSchema = undefined
45
45
 
46
- constructor(options?: { query?: GetCompaniesQueryParams }) {
46
+ constructor(options?: { query?: GetPointOfSalesQueryParams }) {
47
47
  super(undefined, options)
48
48
  }
49
49