@sp-api-sdk/services-api-v1 2.0.6 → 2.1.0
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/cjs/src/api-model/api/service-api.js +84 -24
- package/dist/cjs/src/api-model/base.js +7 -2
- package/dist/cjs/src/api-model/common.js +1 -1
- package/dist/cjs/src/api-model/configuration.js +8 -0
- package/dist/es/src/api-model/api/service-api.js +84 -24
- package/dist/es/src/api-model/base.js +6 -1
- package/dist/es/src/api-model/common.js +1 -1
- package/dist/es/src/api-model/configuration.js +8 -0
- package/dist/types/src/api-model/api/service-api.d.ts +132 -103
- package/dist/types/src/api-model/base.d.ts +14 -2
- package/dist/types/src/api-model/configuration.d.ts +8 -0
- package/dist/types/src/api-model/models/add-appointment-request.d.ts +1 -1
- package/dist/types/src/api-model/models/appointment-slot-report.d.ts +1 -1
- package/dist/types/src/api-model/models/appointment.d.ts +3 -3
- package/dist/types/src/api-model/models/assign-appointment-resources-request.d.ts +1 -1
- package/dist/types/src/api-model/models/assign-appointment-resources-response-payload.d.ts +1 -1
- package/dist/types/src/api-model/models/assign-appointment-resources-response.d.ts +1 -1
- package/dist/types/src/api-model/models/associated-item.d.ts +1 -1
- package/dist/types/src/api-model/models/availability-record.d.ts +1 -1
- package/dist/types/src/api-model/models/create-reservation-record.d.ts +2 -2
- package/dist/types/src/api-model/models/create-reservation-request.d.ts +1 -1
- package/dist/types/src/api-model/models/create-reservation-response.d.ts +1 -1
- package/dist/types/src/api-model/models/create-service-document-upload-destination.d.ts +1 -1
- package/dist/types/src/api-model/models/fixed-slot-capacity-query.d.ts +1 -1
- package/dist/types/src/api-model/models/fixed-slot-capacity.d.ts +1 -1
- package/dist/types/src/api-model/models/get-appointment-slots-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-service-job-by-service-job-id-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-service-jobs-response.d.ts +1 -1
- package/dist/types/src/api-model/models/item-delivery.d.ts +1 -1
- package/dist/types/src/api-model/models/job-listing.d.ts +1 -1
- package/dist/types/src/api-model/models/poa.d.ts +2 -2
- package/dist/types/src/api-model/models/range-capacity.d.ts +2 -2
- package/dist/types/src/api-model/models/range-slot-capacity-query.d.ts +1 -1
- package/dist/types/src/api-model/models/range-slot-capacity.d.ts +1 -1
- package/dist/types/src/api-model/models/recurrence.d.ts +1 -1
- package/dist/types/src/api-model/models/reschedule-appointment-request.d.ts +1 -1
- package/dist/types/src/api-model/models/reservation.d.ts +1 -1
- package/dist/types/src/api-model/models/service-document-upload-destination.d.ts +1 -1
- package/dist/types/src/api-model/models/service-job.d.ts +8 -8
- package/dist/types/src/api-model/models/service-location.d.ts +1 -1
- package/dist/types/src/api-model/models/set-appointment-fulfillment-data-request.d.ts +3 -3
- package/dist/types/src/api-model/models/set-appointment-response.d.ts +1 -1
- package/dist/types/src/api-model/models/update-reservation-record.d.ts +2 -2
- package/dist/types/src/api-model/models/update-reservation-request.d.ts +1 -1
- package/dist/types/src/api-model/models/update-reservation-response.d.ts +1 -1
- package/dist/types/src/api-model/models/update-schedule-record.d.ts +2 -2
- package/dist/types/src/api-model/models/update-schedule-request.d.ts +1 -1
- package/dist/types/src/api-model/models/update-schedule-response.d.ts +1 -1
- package/package.json +5 -5
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance,
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RequestArgs {
|
|
31
31
|
url: string;
|
|
32
|
-
options:
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
|
|
|
52
52
|
field: string;
|
|
53
53
|
constructor(field: string, msg?: string);
|
|
54
54
|
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
|
|
|
15
15
|
password?: string;
|
|
16
16
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
17
|
basePath?: string;
|
|
18
|
+
serverIndex?: number;
|
|
18
19
|
baseOptions?: any;
|
|
19
20
|
formDataCtor?: new () => any;
|
|
20
21
|
}
|
|
@@ -53,6 +54,13 @@ export declare class Configuration {
|
|
|
53
54
|
* @memberof Configuration
|
|
54
55
|
*/
|
|
55
56
|
basePath?: string;
|
|
57
|
+
/**
|
|
58
|
+
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
62
|
+
*/
|
|
63
|
+
serverIndex?: number;
|
|
56
64
|
/**
|
|
57
65
|
* base options for axios calls
|
|
58
66
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AppointmentTimeInput } from './appointment-time-input';
|
|
12
|
+
import type { AppointmentTimeInput } from './appointment-time-input';
|
|
13
13
|
/**
|
|
14
14
|
* Input for add appointment operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AppointmentSlot } from './appointment-slot';
|
|
12
|
+
import type { AppointmentSlot } from './appointment-slot';
|
|
13
13
|
/**
|
|
14
14
|
* Availability information as per the service context queried.
|
|
15
15
|
* @export
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AppointmentTime } from './appointment-time';
|
|
13
|
-
import { Poa } from './poa';
|
|
14
|
-
import { Technician } from './technician';
|
|
12
|
+
import type { AppointmentTime } from './appointment-time';
|
|
13
|
+
import type { Poa } from './poa';
|
|
14
|
+
import type { Technician } from './technician';
|
|
15
15
|
/**
|
|
16
16
|
* The details of an appointment.
|
|
17
17
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AppointmentResource } from './appointment-resource';
|
|
12
|
+
import type { AppointmentResource } from './appointment-resource';
|
|
13
13
|
/**
|
|
14
14
|
* Request schema for the `assignAppointmentResources` operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AssignAppointmentResourcesResponsePayload } from './assign-appointment-resources-response-payload';
|
|
12
|
+
import type { AssignAppointmentResourcesResponsePayload } from './assign-appointment-resources-response-payload';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for the `assignAppointmentResources` operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ItemDelivery } from './item-delivery';
|
|
12
|
+
import type { ItemDelivery } from './item-delivery';
|
|
13
13
|
/**
|
|
14
14
|
* Information about an item associated with the service job.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Recurrence } from './recurrence';
|
|
12
|
+
import type { Recurrence } from './recurrence';
|
|
13
13
|
/**
|
|
14
14
|
* `AvailabilityRecord` to represent the capacity of a resource over a time range.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Reservation } from './reservation';
|
|
13
|
-
import { Warning } from './warning';
|
|
12
|
+
import type { Reservation } from './reservation';
|
|
13
|
+
import type { Warning } from './warning';
|
|
14
14
|
/**
|
|
15
15
|
* `CreateReservationRecord` entity contains the `Reservation` if there is an error/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CreateReservationRecord } from './create-reservation-record';
|
|
12
|
+
import type { CreateReservationRecord } from './create-reservation-record';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for the `createReservation` operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ServiceDocumentUploadDestination } from './service-document-upload-destination';
|
|
12
|
+
import type { ServiceDocumentUploadDestination } from './service-document-upload-destination';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the `createServiceDocumentUploadDestination` operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CapacityType } from './capacity-type';
|
|
12
|
+
import type { CapacityType } from './capacity-type';
|
|
13
13
|
/**
|
|
14
14
|
* Request schema for the `getFixedSlotCapacity` operation. This schema is used to define the time range, capacity types and slot duration which are being queried.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AppointmentSlotReport } from './appointment-slot-report';
|
|
12
|
+
import type { AppointmentSlotReport } from './appointment-slot-report';
|
|
13
13
|
/**
|
|
14
14
|
* The response of fetching appointment slots based on service context.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ServiceJob } from './service-job';
|
|
12
|
+
import type { ServiceJob } from './service-job';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the `getServiceJobByServiceJobId` operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ItemDeliveryPromise } from './item-delivery-promise';
|
|
12
|
+
import type { ItemDeliveryPromise } from './item-delivery-promise';
|
|
13
13
|
/**
|
|
14
14
|
* Delivery information for the item.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AppointmentTime } from './appointment-time';
|
|
13
|
-
import { Technician } from './technician';
|
|
12
|
+
import type { AppointmentTime } from './appointment-time';
|
|
13
|
+
import type { Technician } from './technician';
|
|
14
14
|
/**
|
|
15
15
|
* Proof of Appointment (POA) details.
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CapacityType } from './capacity-type';
|
|
13
|
-
import { RangeSlot } from './range-slot';
|
|
12
|
+
import type { CapacityType } from './capacity-type';
|
|
13
|
+
import type { RangeSlot } from './range-slot';
|
|
14
14
|
/**
|
|
15
15
|
* Range capacity entity where each entry has a capacity type and corresponding slots.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CapacityType } from './capacity-type';
|
|
12
|
+
import type { CapacityType } from './capacity-type';
|
|
13
13
|
/**
|
|
14
14
|
* Request schema for the `getRangeSlotCapacity` operation. This schema is used to define the time range and capacity types that are being queried.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { RangeCapacity } from './range-capacity';
|
|
12
|
+
import type { RangeCapacity } from './range-capacity';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for the `getRangeSlotCapacity` operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AppointmentTimeInput } from './appointment-time-input';
|
|
12
|
+
import type { AppointmentTimeInput } from './appointment-time-input';
|
|
13
13
|
/**
|
|
14
14
|
* Input for rescheduled appointment operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AvailabilityRecord } from './availability-record';
|
|
12
|
+
import type { AvailabilityRecord } from './availability-record';
|
|
13
13
|
/**
|
|
14
14
|
* Reservation object reduces the capacity of a resource.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { EncryptionDetails } from './encryption-details';
|
|
12
|
+
import type { EncryptionDetails } from './encryption-details';
|
|
13
13
|
/**
|
|
14
14
|
* Information about an upload destination.
|
|
15
15
|
* @export
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Appointment } from './appointment';
|
|
13
|
-
import { AppointmentTime } from './appointment-time';
|
|
14
|
-
import { AssociatedItem } from './associated-item';
|
|
15
|
-
import { Buyer } from './buyer';
|
|
16
|
-
import { ScopeOfWork } from './scope-of-work';
|
|
17
|
-
import { Seller } from './seller';
|
|
18
|
-
import { ServiceJobProvider } from './service-job-provider';
|
|
19
|
-
import { ServiceLocation } from './service-location';
|
|
12
|
+
import type { Appointment } from './appointment';
|
|
13
|
+
import type { AppointmentTime } from './appointment-time';
|
|
14
|
+
import type { AssociatedItem } from './associated-item';
|
|
15
|
+
import type { Buyer } from './buyer';
|
|
16
|
+
import type { ScopeOfWork } from './scope-of-work';
|
|
17
|
+
import type { Seller } from './seller';
|
|
18
|
+
import type { ServiceJobProvider } from './service-job-provider';
|
|
19
|
+
import type { ServiceLocation } from './service-location';
|
|
20
20
|
/**
|
|
21
21
|
* The job details of a service.
|
|
22
22
|
* @export
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AppointmentResource } from './appointment-resource';
|
|
13
|
-
import { FulfillmentDocument } from './fulfillment-document';
|
|
14
|
-
import { FulfillmentTime } from './fulfillment-time';
|
|
12
|
+
import type { AppointmentResource } from './appointment-resource';
|
|
13
|
+
import type { FulfillmentDocument } from './fulfillment-document';
|
|
14
|
+
import type { FulfillmentTime } from './fulfillment-time';
|
|
15
15
|
/**
|
|
16
16
|
* Input for set appointment fulfillment data operation.
|
|
17
17
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Warning } from './warning';
|
|
12
|
+
import type { Warning } from './warning';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for the `addAppointmentForServiceJobByServiceJobId` and `rescheduleAppointmentForServiceJobByServiceJobId` operations.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Reservation } from './reservation';
|
|
13
|
-
import { Warning } from './warning';
|
|
12
|
+
import type { Reservation } from './reservation';
|
|
13
|
+
import type { Warning } from './warning';
|
|
14
14
|
/**
|
|
15
15
|
* `UpdateReservationRecord` entity contains the `Reservation` if there is an error/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { UpdateReservationRecord } from './update-reservation-record';
|
|
12
|
+
import type { UpdateReservationRecord } from './update-reservation-record';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for the `updateReservation` operation.
|
|
15
15
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AvailabilityRecord } from './availability-record';
|
|
13
|
-
import { Warning } from './warning';
|
|
12
|
+
import type { AvailabilityRecord } from './availability-record';
|
|
13
|
+
import type { Warning } from './warning';
|
|
14
14
|
/**
|
|
15
15
|
* `UpdateScheduleRecord` entity contains the `AvailabilityRecord` if there is an error/warning while performing the requested operation on it.
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AvailabilityRecord } from './availability-record';
|
|
12
|
+
import type { AvailabilityRecord } from './availability-record';
|
|
13
13
|
/**
|
|
14
14
|
* Request schema for the `updateSchedule` operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { UpdateScheduleRecord } from './update-schedule-record';
|
|
12
|
+
import type { UpdateScheduleRecord } from './update-schedule-record';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for the `updateSchedule` operation.
|
|
15
15
|
* @export
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sp-api-sdk/services-api-v1",
|
|
3
|
-
"author": "
|
|
3
|
+
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.",
|
|
5
|
-
"version": "2.0
|
|
5
|
+
"version": "2.1.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.0.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.0.8",
|
|
22
|
+
"axios": "^1.7.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"services api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
|
|
44
44
|
}
|