rotacloud 2.2.2 → 2.2.3

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.
@@ -56,7 +56,7 @@ export interface EndpointEntityMap extends Record<EndpointVersion, Record<string
56
56
  /** Type mappings for v2 endpoints */
57
57
  v2: {
58
58
  logbook: Endpoint<LogbookEntry, LogbookQueryParameters, 'name' | 'description' | 'date' | 'userId'>;
59
- invoice: Endpoint<Invoice, InvoiceQueryParameters>;
59
+ invoices: Endpoint<Invoice, InvoiceQueryParameters>;
60
60
  dayNotes: Endpoint<DayNoteV2, DayNoteV2QueryParameters, 'title' | 'message' | 'startDate' | 'endDate' | 'locations' | 'visibleToEmployees'>;
61
61
  'logbook/categories': Endpoint<LogbookCategory, undefined, Pick<LogbookCategory, 'name'>>;
62
62
  };
package/dist/main.d.ts CHANGED
@@ -76,10 +76,9 @@ export declare const createRotaCloudClient: (config: import("./interfaces/sdk-co
76
76
  operations: ("get" | "delete" | "list" | "listAll" | "create" | "update")[];
77
77
  };
78
78
  invoice: {
79
- endpoint: string;
79
+ endpoint: "invoices";
80
80
  endpointVersion: "v2";
81
81
  operations: ("get" | "list" | "listAll")[];
82
- custom: true;
83
82
  customOperations: {
84
83
  get: (ctx: import("./ops.js").OperationContext, id: number) => import("./ops.js").RequestConfig<void, import("./interfaces/invoice.interface.js").Invoice & import("./interfaces/invoice.interface.js").InvoiceDownload>;
85
84
  };
package/dist/service.d.ts CHANGED
@@ -119,10 +119,9 @@ export declare const SERVICES: {
119
119
  operations: ("get" | "delete" | "list" | "listAll" | "create" | "update")[];
120
120
  };
121
121
  invoice: {
122
- endpoint: string;
122
+ endpoint: "invoices";
123
123
  endpointVersion: "v2";
124
124
  operations: ("get" | "list" | "listAll")[];
125
- custom: true;
126
125
  customOperations: {
127
126
  get: (ctx: OperationContext, id: number) => RequestConfig<void, Invoice & InvoiceDownload>;
128
127
  };
package/dist/service.js CHANGED
@@ -110,7 +110,6 @@ export const SERVICES = {
110
110
  endpoint: 'invoices',
111
111
  endpointVersion: 'v2',
112
112
  operations: ['get', 'list', 'listAll'],
113
- custom: true,
114
113
  customOperations: {
115
114
  get: (ctx, id) => ({
116
115
  ...ctx.request,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rotacloud",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "The RotaCloud SDK for the RotaCloud API",
5
5
  "type": "module",
6
6
  "engines": {
package/src/endpoint.ts CHANGED
@@ -121,7 +121,7 @@ export interface EndpointEntityMap extends Record<EndpointVersion, Record<string
121
121
  /** Type mappings for v2 endpoints */
122
122
  v2: {
123
123
  logbook: Endpoint<LogbookEntry, LogbookQueryParameters, 'name' | 'description' | 'date' | 'userId'>;
124
- invoice: Endpoint<Invoice, InvoiceQueryParameters>;
124
+ invoices: Endpoint<Invoice, InvoiceQueryParameters>;
125
125
  dayNotes: Endpoint<
126
126
  DayNoteV2,
127
127
  DayNoteV2QueryParameters,
package/src/service.ts CHANGED
@@ -183,7 +183,6 @@ export const SERVICES = {
183
183
  endpoint: 'invoices',
184
184
  endpointVersion: 'v2',
185
185
  operations: ['get', 'list', 'listAll'],
186
- custom: true,
187
186
  customOperations: {
188
187
  get: (ctx, id: number): RequestConfig<void, Invoice & InvoiceDownload> => ({
189
188
  ...ctx.request,