starta.apiclient 1.112.12822 → 1.112.12824

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.
@@ -1,4 +1,4 @@
1
- import { StartaRequestRunner, OrderStatus, OrderData, PaymentStatus, ComparisonOperator, SortDirection } from '../../types';
1
+ import { StartaRequestRunner, OrderStatus, OrderData } from '../../types';
2
2
  export default class Orders {
3
3
  private _requestRunner;
4
4
  constructor(requestRunner: StartaRequestRunner);
@@ -14,8 +14,8 @@ export default class Orders {
14
14
  id?: string;
15
15
  executors?: Array<string>;
16
16
  };
17
- statusOperator?: ComparisonOperator;
18
- sortDirection?: SortDirection;
17
+ statusOperator?: '$eq' | '$ne' | '$in' | '$nin';
18
+ sortDirection?: 'asc' | 'desc';
19
19
  sortColumn?: 'incrementId' | 'starttime' | 'price' | 'createdAt';
20
20
  needsToBeConfirmedByOrganization?: boolean;
21
21
  needsToBeApprovedByCustomer?: boolean;
@@ -23,8 +23,8 @@ export default class Orders {
23
23
  searchQuery?: string;
24
24
  reviewFilter?: 'with' | 'without';
25
25
  customerId?: string;
26
- paymentStatusOperator?: ComparisonOperator;
27
- paymentStatus?: PaymentStatus | PaymentStatus[];
26
+ paymentStatusOperator?: '$eq' | '$ne';
27
+ paymentStatus?: 'paid' | 'not_paid' | 'partially_paid';
28
28
  }): Promise<import("../../types").StartaResponse>;
29
29
  isTimeSlotAvailable(organizationLogin: string, { executor, starttime, endtime, skipOrderId, scheduleId, resources, }: {
30
30
  scheduleId: string;
package/lib/types.d.ts CHANGED
@@ -192,10 +192,7 @@ export type OrganizationSchedule = {
192
192
  enabled: boolean;
193
193
  }>;
194
194
  };
195
- export type SortDirection = 'asc' | 'desc';
196
- export type ComparisonOperator = '$eq' | '$ne' | '$in' | '$nin';
197
195
  export type OrderStatus = 'new' | 'inprogress' | 'canceled' | 'completed';
198
- export type PaymentStatus = 'paid' | 'not_paid' | 'partially_paid';
199
196
  export type OrderRepeatSettings = {
200
197
  enabled: boolean;
201
198
  interval: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.112.12822",
3
+ "version": "1.112.12824",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",