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.
- package/dist/endpoint.d.ts +1 -1
- package/dist/main.d.ts +1 -2
- package/dist/service.d.ts +1 -2
- package/dist/service.js +0 -1
- package/package.json +1 -1
- package/src/endpoint.ts +1 -1
- package/src/service.ts +0 -1
package/dist/endpoint.d.ts
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
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:
|
|
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
package/package.json
CHANGED
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
|
-
|
|
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,
|