@sp-api-sdk/services-api-v1 4.0.0 → 4.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/dist/cjs/api-model/api/services-api.js +0 -32
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/cjs/api-model/models/capacity-type.js +0 -2
- package/dist/cjs/api-model/models/day-of-week.js +0 -2
- package/dist/es/api-model/api/services-api.js +0 -32
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/es/api-model/models/capacity-type.js +0 -2
- package/dist/es/api-model/models/day-of-week.js +0 -2
- package/dist/types/api-model/api/services-api.d.ts +0 -187
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/add-appointment-request.d.ts +0 -7
- package/dist/types/api-model/models/address.d.ts +0 -24
- package/dist/types/api-model/models/appointment-resource.d.ts +0 -4
- package/dist/types/api-model/models/appointment-slot-report.d.ts +0 -10
- package/dist/types/api-model/models/appointment-slot.d.ts +0 -8
- package/dist/types/api-model/models/appointment-time-input.d.ts +0 -6
- package/dist/types/api-model/models/appointment-time.d.ts +0 -6
- package/dist/types/api-model/models/appointment.d.ts +0 -20
- package/dist/types/api-model/models/assign-appointment-resources-request.d.ts +0 -4
- package/dist/types/api-model/models/assign-appointment-resources-response-payload.d.ts +0 -4
- package/dist/types/api-model/models/assign-appointment-resources-response.d.ts +0 -9
- package/dist/types/api-model/models/associated-item.d.ts +0 -19
- package/dist/types/api-model/models/availability-record.d.ts +0 -13
- package/dist/types/api-model/models/buyer.d.ts +0 -10
- package/dist/types/api-model/models/cancel-reservation-response.d.ts +0 -4
- package/dist/types/api-model/models/cancel-service-job-by-service-job-id-response.d.ts +0 -4
- package/dist/types/api-model/models/capacity-type.d.ts +0 -2
- package/dist/types/api-model/models/complete-service-job-by-service-job-id-response.d.ts +0 -4
- package/dist/types/api-model/models/create-reservation-record.d.ts +0 -11
- package/dist/types/api-model/models/create-reservation-request.d.ts +0 -9
- package/dist/types/api-model/models/create-reservation-response.d.ts +0 -9
- package/dist/types/api-model/models/create-service-document-upload-destination.d.ts +0 -9
- package/dist/types/api-model/models/date-time-range.d.ts +0 -6
- package/dist/types/api-model/models/day-of-week.d.ts +0 -2
- package/dist/types/api-model/models/encryption-details.d.ts +0 -8
- package/dist/types/api-model/models/fixed-slot-capacity-errors.d.ts +0 -4
- package/dist/types/api-model/models/fixed-slot-capacity-query.d.ts +0 -10
- package/dist/types/api-model/models/fixed-slot-capacity.d.ts +0 -10
- package/dist/types/api-model/models/fixed-slot.d.ts +0 -12
- package/dist/types/api-model/models/fulfillment-document.d.ts +0 -6
- package/dist/types/api-model/models/fulfillment-time.d.ts +0 -6
- package/dist/types/api-model/models/get-appointment-slots-response.d.ts +0 -9
- package/dist/types/api-model/models/get-service-job-by-service-job-id-response.d.ts +0 -9
- package/dist/types/api-model/models/get-service-jobs-response.d.ts +0 -9
- package/dist/types/api-model/models/item-delivery-promise.d.ts +0 -6
- package/dist/types/api-model/models/item-delivery.d.ts +0 -9
- package/dist/types/api-model/models/job-listing.d.ts +0 -10
- package/dist/types/api-model/models/model-error.d.ts +0 -10
- package/dist/types/api-model/models/poa.d.ts +0 -15
- package/dist/types/api-model/models/range-capacity.d.ts +0 -9
- package/dist/types/api-model/models/range-slot-capacity-errors.d.ts +0 -4
- package/dist/types/api-model/models/range-slot-capacity-query.d.ts +0 -8
- package/dist/types/api-model/models/range-slot-capacity.d.ts +0 -8
- package/dist/types/api-model/models/range-slot.d.ts +0 -8
- package/dist/types/api-model/models/recurrence.d.ts +0 -8
- package/dist/types/api-model/models/reschedule-appointment-request.d.ts +0 -9
- package/dist/types/api-model/models/reservation.d.ts +0 -11
- package/dist/types/api-model/models/scope-of-work.d.ts +0 -10
- package/dist/types/api-model/models/seller.d.ts +0 -4
- package/dist/types/api-model/models/service-document-upload-destination.d.ts +0 -13
- package/dist/types/api-model/models/service-job-provider.d.ts +0 -4
- package/dist/types/api-model/models/service-job.d.ts +0 -45
- package/dist/types/api-model/models/service-location.d.ts +0 -9
- package/dist/types/api-model/models/service-upload-document.d.ts +0 -8
- package/dist/types/api-model/models/set-appointment-fulfillment-data-request.d.ts +0 -16
- package/dist/types/api-model/models/set-appointment-response.d.ts +0 -8
- package/dist/types/api-model/models/technician.d.ts +0 -6
- package/dist/types/api-model/models/update-reservation-record.d.ts +0 -11
- package/dist/types/api-model/models/update-reservation-request.d.ts +0 -9
- package/dist/types/api-model/models/update-reservation-response.d.ts +0 -9
- package/dist/types/api-model/models/update-schedule-record.d.ts +0 -11
- package/dist/types/api-model/models/update-schedule-request.d.ts +0 -4
- package/dist/types/api-model/models/update-schedule-response.d.ts +0 -6
- package/dist/types/api-model/models/warning.d.ts +0 -8
- package/package.json +25 -4
|
@@ -12,27 +12,16 @@
|
|
|
12
12
|
import type { AvailabilityRecord } from './availability-record';
|
|
13
13
|
/**
|
|
14
14
|
* Reservation object reduces the capacity of a resource.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Reservation
|
|
17
15
|
*/
|
|
18
16
|
export interface Reservation {
|
|
19
17
|
/**
|
|
20
18
|
* Unique identifier for a reservation. If present, it is treated as an update reservation request and will update the corresponding reservation. Otherwise, it is treated as a new create reservation request.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof Reservation
|
|
23
19
|
*/
|
|
24
20
|
'reservationId'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* Type of reservation.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Reservation
|
|
29
23
|
*/
|
|
30
24
|
'type': ReservationTypeEnum;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {AvailabilityRecord}
|
|
34
|
-
* @memberof Reservation
|
|
35
|
-
*/
|
|
36
25
|
'availability': AvailabilityRecord;
|
|
37
26
|
}
|
|
38
27
|
export declare const ReservationTypeEnum: {
|
|
@@ -11,32 +11,22 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The scope of work for the order.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ScopeOfWork
|
|
16
14
|
*/
|
|
17
15
|
export interface ScopeOfWork {
|
|
18
16
|
/**
|
|
19
17
|
* The Amazon Standard Identification Number (ASIN) of the service job.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ScopeOfWork
|
|
22
18
|
*/
|
|
23
19
|
'asin'?: string;
|
|
24
20
|
/**
|
|
25
21
|
* The title of the service job.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ScopeOfWork
|
|
28
22
|
*/
|
|
29
23
|
'title'?: string;
|
|
30
24
|
/**
|
|
31
25
|
* The number of service jobs.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ScopeOfWork
|
|
34
26
|
*/
|
|
35
27
|
'quantity'?: number;
|
|
36
28
|
/**
|
|
37
29
|
* A list of skills required to perform the job.
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof ScopeOfWork
|
|
40
30
|
*/
|
|
41
31
|
'requiredSkills'?: Array<string>;
|
|
42
32
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Information about the seller of the service job.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Seller
|
|
16
14
|
*/
|
|
17
15
|
export interface Seller {
|
|
18
16
|
/**
|
|
19
17
|
* The identifier of the seller of the service job.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Seller
|
|
22
18
|
*/
|
|
23
19
|
'sellerId'?: string;
|
|
24
20
|
}
|
|
@@ -12,32 +12,19 @@
|
|
|
12
12
|
import type { EncryptionDetails } from './encryption-details';
|
|
13
13
|
/**
|
|
14
14
|
* Information about an upload destination.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ServiceDocumentUploadDestination
|
|
17
15
|
*/
|
|
18
16
|
export interface ServiceDocumentUploadDestination {
|
|
19
17
|
/**
|
|
20
18
|
* The unique identifier to be used by APIs that reference the upload destination.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof ServiceDocumentUploadDestination
|
|
23
19
|
*/
|
|
24
20
|
'uploadDestinationId': string;
|
|
25
21
|
/**
|
|
26
22
|
* The URL to which to upload the file.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof ServiceDocumentUploadDestination
|
|
29
23
|
*/
|
|
30
24
|
'url': string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {EncryptionDetails}
|
|
34
|
-
* @memberof ServiceDocumentUploadDestination
|
|
35
|
-
*/
|
|
36
25
|
'encryptionDetails': EncryptionDetails;
|
|
37
26
|
/**
|
|
38
27
|
* The headers to include in the upload request.
|
|
39
|
-
* @type {object}
|
|
40
|
-
* @memberof ServiceDocumentUploadDestination
|
|
41
28
|
*/
|
|
42
29
|
'headers'?: object;
|
|
43
30
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Information about the service job provider.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ServiceJobProvider
|
|
16
14
|
*/
|
|
17
15
|
export interface ServiceJobProvider {
|
|
18
16
|
/**
|
|
19
17
|
* The identifier of the service job provider.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ServiceJobProvider
|
|
22
18
|
*/
|
|
23
19
|
'serviceJobProviderId'?: string;
|
|
24
20
|
}
|
|
@@ -19,93 +19,48 @@ import type { ServiceJobProvider } from './service-job-provider';
|
|
|
19
19
|
import type { ServiceLocation } from './service-location';
|
|
20
20
|
/**
|
|
21
21
|
* The job details of a service.
|
|
22
|
-
* @export
|
|
23
|
-
* @interface ServiceJob
|
|
24
22
|
*/
|
|
25
23
|
export interface ServiceJob {
|
|
26
24
|
/**
|
|
27
25
|
* The date and time of the creation of the job in ISO 8601 format.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof ServiceJob
|
|
30
26
|
*/
|
|
31
27
|
'createTime'?: string;
|
|
32
28
|
/**
|
|
33
29
|
* Amazon identifier for the service job.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ServiceJob
|
|
36
30
|
*/
|
|
37
31
|
'serviceJobId'?: string;
|
|
38
32
|
/**
|
|
39
33
|
* The status of the service job.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof ServiceJob
|
|
42
34
|
*/
|
|
43
35
|
'serviceJobStatus'?: ServiceJobServiceJobStatusEnum;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {ScopeOfWork}
|
|
47
|
-
* @memberof ServiceJob
|
|
48
|
-
*/
|
|
49
36
|
'scopeOfWork'?: ScopeOfWork;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {Seller}
|
|
53
|
-
* @memberof ServiceJob
|
|
54
|
-
*/
|
|
55
37
|
'seller'?: Seller;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {ServiceJobProvider}
|
|
59
|
-
* @memberof ServiceJob
|
|
60
|
-
*/
|
|
61
38
|
'serviceJobProvider'?: ServiceJobProvider;
|
|
62
39
|
/**
|
|
63
40
|
* A list of appointment windows preferred by the buyer. Included only if the buyer selected appointment windows when creating the order.
|
|
64
|
-
* @type {Array<AppointmentTime>}
|
|
65
|
-
* @memberof ServiceJob
|
|
66
41
|
*/
|
|
67
42
|
'preferredAppointmentTimes'?: Array<AppointmentTime>;
|
|
68
43
|
/**
|
|
69
44
|
* A list of appointments.
|
|
70
|
-
* @type {Array<Appointment>}
|
|
71
|
-
* @memberof ServiceJob
|
|
72
45
|
*/
|
|
73
46
|
'appointments'?: Array<Appointment>;
|
|
74
47
|
/**
|
|
75
48
|
* The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format.
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof ServiceJob
|
|
78
49
|
*/
|
|
79
50
|
'serviceOrderId'?: string;
|
|
80
51
|
/**
|
|
81
52
|
* The marketplace identifier.
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof ServiceJob
|
|
84
53
|
*/
|
|
85
54
|
'marketplaceId'?: string;
|
|
86
55
|
/**
|
|
87
56
|
* The Amazon-defined identifier for the region scope.
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof ServiceJob
|
|
90
57
|
*/
|
|
91
58
|
'storeId'?: string;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {Buyer}
|
|
95
|
-
* @memberof ServiceJob
|
|
96
|
-
*/
|
|
97
59
|
'buyer'?: Buyer;
|
|
98
60
|
/**
|
|
99
61
|
* A list of items associated with the service job.
|
|
100
|
-
* @type {Array<AssociatedItem>}
|
|
101
|
-
* @memberof ServiceJob
|
|
102
62
|
*/
|
|
103
63
|
'associatedItems'?: Array<AssociatedItem>;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {ServiceLocation}
|
|
107
|
-
* @memberof ServiceJob
|
|
108
|
-
*/
|
|
109
64
|
'serviceLocation'?: ServiceLocation;
|
|
110
65
|
}
|
|
111
66
|
export declare const ServiceJobServiceJobStatusEnum: {
|
|
@@ -12,21 +12,12 @@
|
|
|
12
12
|
import type { Address } from './address';
|
|
13
13
|
/**
|
|
14
14
|
* Information about the location of the service job.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ServiceLocation
|
|
17
15
|
*/
|
|
18
16
|
export interface ServiceLocation {
|
|
19
17
|
/**
|
|
20
18
|
* The location of the service job.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof ServiceLocation
|
|
23
19
|
*/
|
|
24
20
|
'serviceLocationType'?: ServiceLocationServiceLocationTypeEnum;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {Address}
|
|
28
|
-
* @memberof ServiceLocation
|
|
29
|
-
*/
|
|
30
21
|
'address'?: Address;
|
|
31
22
|
}
|
|
32
23
|
export declare const ServiceLocationServiceLocationTypeEnum: {
|
|
@@ -11,26 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Input for to be uploaded document.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ServiceUploadDocument
|
|
16
14
|
*/
|
|
17
15
|
export interface ServiceUploadDocument {
|
|
18
16
|
/**
|
|
19
17
|
* The content type of the to-be-uploaded file
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ServiceUploadDocument
|
|
22
18
|
*/
|
|
23
19
|
'contentType': ServiceUploadDocumentContentTypeEnum;
|
|
24
20
|
/**
|
|
25
21
|
* The content length of the to-be-uploaded file
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof ServiceUploadDocument
|
|
28
22
|
*/
|
|
29
23
|
'contentLength': number;
|
|
30
24
|
/**
|
|
31
25
|
* An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ServiceUploadDocument
|
|
34
26
|
*/
|
|
35
27
|
'contentMD5'?: string;
|
|
36
28
|
}
|
|
@@ -15,32 +15,16 @@ import type { FulfillmentDocument } from './fulfillment-document';
|
|
|
15
15
|
import type { FulfillmentTime } from './fulfillment-time';
|
|
16
16
|
/**
|
|
17
17
|
* Input for set appointment fulfillment data operation.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface SetAppointmentFulfillmentDataRequest
|
|
20
18
|
*/
|
|
21
19
|
export interface SetAppointmentFulfillmentDataRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {DateTimeRange}
|
|
25
|
-
* @memberof SetAppointmentFulfillmentDataRequest
|
|
26
|
-
*/
|
|
27
20
|
'estimatedArrivalTime'?: DateTimeRange;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {FulfillmentTime}
|
|
31
|
-
* @memberof SetAppointmentFulfillmentDataRequest
|
|
32
|
-
*/
|
|
33
21
|
'fulfillmentTime'?: FulfillmentTime;
|
|
34
22
|
/**
|
|
35
23
|
* List of resources that performs or performed job appointment fulfillment.
|
|
36
|
-
* @type {Array<AppointmentResource>}
|
|
37
|
-
* @memberof SetAppointmentFulfillmentDataRequest
|
|
38
24
|
*/
|
|
39
25
|
'appointmentResources'?: Array<AppointmentResource>;
|
|
40
26
|
/**
|
|
41
27
|
* List of documents captured during service appointment fulfillment.
|
|
42
|
-
* @type {Array<FulfillmentDocument>}
|
|
43
|
-
* @memberof SetAppointmentFulfillmentDataRequest
|
|
44
28
|
*/
|
|
45
29
|
'fulfillmentDocuments'?: Array<FulfillmentDocument>;
|
|
46
30
|
}
|
|
@@ -12,26 +12,18 @@
|
|
|
12
12
|
import type { Warning } from './warning';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for the `addAppointmentForServiceJobByServiceJobId` and `rescheduleAppointmentForServiceJobByServiceJobId` operations.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SetAppointmentResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface SetAppointmentResponse {
|
|
19
17
|
/**
|
|
20
18
|
* The appointment identifier.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof SetAppointmentResponse
|
|
23
19
|
*/
|
|
24
20
|
'appointmentId'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* A list of warnings returned in the sucessful execution response of an API request.
|
|
27
|
-
* @type {Array<Warning>}
|
|
28
|
-
* @memberof SetAppointmentResponse
|
|
29
23
|
*/
|
|
30
24
|
'warnings'?: Array<Warning>;
|
|
31
25
|
/**
|
|
32
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
33
|
-
* @type {Array<Error>}
|
|
34
|
-
* @memberof SetAppointmentResponse
|
|
35
27
|
*/
|
|
36
28
|
'errors'?: Array<Error>;
|
|
37
29
|
}
|
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* A technician who is assigned to perform the service job in part or in full.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Technician
|
|
16
14
|
*/
|
|
17
15
|
export interface Technician {
|
|
18
16
|
/**
|
|
19
17
|
* The technician identifier.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Technician
|
|
22
18
|
*/
|
|
23
19
|
'technicianId'?: string;
|
|
24
20
|
/**
|
|
25
21
|
* The name of the technician.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Technician
|
|
28
22
|
*/
|
|
29
23
|
'name'?: string;
|
|
30
24
|
}
|
|
@@ -13,26 +13,15 @@ import type { Reservation } from './reservation';
|
|
|
13
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
|
-
* @export
|
|
17
|
-
* @interface UpdateReservationRecord
|
|
18
16
|
*/
|
|
19
17
|
export interface UpdateReservationRecord {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Reservation}
|
|
23
|
-
* @memberof UpdateReservationRecord
|
|
24
|
-
*/
|
|
25
18
|
'reservation'?: Reservation;
|
|
26
19
|
/**
|
|
27
20
|
* A list of warnings returned in the sucessful execution response of an API request.
|
|
28
|
-
* @type {Array<Warning>}
|
|
29
|
-
* @memberof UpdateReservationRecord
|
|
30
21
|
*/
|
|
31
22
|
'warnings'?: Array<Warning>;
|
|
32
23
|
/**
|
|
33
24
|
* A list of error responses returned when a request is unsuccessful.
|
|
34
|
-
* @type {Array<Error>}
|
|
35
|
-
* @memberof UpdateReservationRecord
|
|
36
25
|
*/
|
|
37
26
|
'errors'?: Array<Error>;
|
|
38
27
|
}
|
|
@@ -12,20 +12,11 @@
|
|
|
12
12
|
import type { Reservation } from './reservation';
|
|
13
13
|
/**
|
|
14
14
|
* Request schema for the `updateReservation` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface UpdateReservationRequest
|
|
17
15
|
*/
|
|
18
16
|
export interface UpdateReservationRequest {
|
|
19
17
|
/**
|
|
20
18
|
* Resource (store) identifier.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UpdateReservationRequest
|
|
23
19
|
*/
|
|
24
20
|
'resourceId': string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {Reservation}
|
|
28
|
-
* @memberof UpdateReservationRequest
|
|
29
|
-
*/
|
|
30
21
|
'reservation': Reservation;
|
|
31
22
|
}
|
|
@@ -12,20 +12,11 @@
|
|
|
12
12
|
import type { UpdateReservationRecord } from './update-reservation-record';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for the `updateReservation` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface UpdateReservationResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface UpdateReservationResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {UpdateReservationRecord}
|
|
22
|
-
* @memberof UpdateReservationResponse
|
|
23
|
-
*/
|
|
24
17
|
'payload'?: UpdateReservationRecord;
|
|
25
18
|
/**
|
|
26
19
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
|
-
* @type {Array<Error>}
|
|
28
|
-
* @memberof UpdateReservationResponse
|
|
29
20
|
*/
|
|
30
21
|
'errors'?: Array<Error>;
|
|
31
22
|
}
|
|
@@ -13,26 +13,15 @@ import type { AvailabilityRecord } from './availability-record';
|
|
|
13
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
|
-
* @export
|
|
17
|
-
* @interface UpdateScheduleRecord
|
|
18
16
|
*/
|
|
19
17
|
export interface UpdateScheduleRecord {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {AvailabilityRecord}
|
|
23
|
-
* @memberof UpdateScheduleRecord
|
|
24
|
-
*/
|
|
25
18
|
'availability'?: AvailabilityRecord;
|
|
26
19
|
/**
|
|
27
20
|
* A list of warnings returned in the sucessful execution response of an API request.
|
|
28
|
-
* @type {Array<Warning>}
|
|
29
|
-
* @memberof UpdateScheduleRecord
|
|
30
21
|
*/
|
|
31
22
|
'warnings'?: Array<Warning>;
|
|
32
23
|
/**
|
|
33
24
|
* A list of error responses returned when a request is unsuccessful.
|
|
34
|
-
* @type {Array<Error>}
|
|
35
|
-
* @memberof UpdateScheduleRecord
|
|
36
25
|
*/
|
|
37
26
|
'errors'?: Array<Error>;
|
|
38
27
|
}
|
|
@@ -12,14 +12,10 @@
|
|
|
12
12
|
import type { AvailabilityRecord } from './availability-record';
|
|
13
13
|
/**
|
|
14
14
|
* Request schema for the `updateSchedule` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface UpdateScheduleRequest
|
|
17
15
|
*/
|
|
18
16
|
export interface UpdateScheduleRequest {
|
|
19
17
|
/**
|
|
20
18
|
* List of `AvailabilityRecord`s to represent the capacity of a resource over a time range.
|
|
21
|
-
* @type {Array<AvailabilityRecord>}
|
|
22
|
-
* @memberof UpdateScheduleRequest
|
|
23
19
|
*/
|
|
24
20
|
'schedules': Array<AvailabilityRecord>;
|
|
25
21
|
}
|
|
@@ -12,20 +12,14 @@
|
|
|
12
12
|
import type { UpdateScheduleRecord } from './update-schedule-record';
|
|
13
13
|
/**
|
|
14
14
|
* Response schema for the `updateSchedule` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface UpdateScheduleResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface UpdateScheduleResponse {
|
|
19
17
|
/**
|
|
20
18
|
* Contains the `UpdateScheduleRecords` for which the error/warning has occurred.
|
|
21
|
-
* @type {Array<UpdateScheduleRecord>}
|
|
22
|
-
* @memberof UpdateScheduleResponse
|
|
23
19
|
*/
|
|
24
20
|
'payload'?: Array<UpdateScheduleRecord>;
|
|
25
21
|
/**
|
|
26
22
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
|
-
* @type {Array<Error>}
|
|
28
|
-
* @memberof UpdateScheduleResponse
|
|
29
23
|
*/
|
|
30
24
|
'errors'?: Array<Error>;
|
|
31
25
|
}
|
|
@@ -11,26 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Warning returned when the request is successful, but there are important callouts based on which API clients should take defined actions.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Warning
|
|
16
14
|
*/
|
|
17
15
|
export interface Warning {
|
|
18
16
|
/**
|
|
19
17
|
* An warning code that identifies the type of warning that occurred.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Warning
|
|
22
18
|
*/
|
|
23
19
|
'code': string;
|
|
24
20
|
/**
|
|
25
21
|
* A message that describes the warning condition in a human-readable form.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Warning
|
|
28
22
|
*/
|
|
29
23
|
'message': string;
|
|
30
24
|
/**
|
|
31
25
|
* Additional details that can help the caller understand or address the warning.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Warning
|
|
34
26
|
*/
|
|
35
27
|
'details'?: string;
|
|
36
28
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/services-api-v1",
|
|
3
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": "4.0.
|
|
5
|
+
"version": "4.0.2",
|
|
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.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.16",
|
|
22
|
+
"axios": "^1.11.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,26 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"services api"
|
|
42
42
|
],
|
|
43
|
-
"
|
|
43
|
+
"xo": {
|
|
44
|
+
"extends": [
|
|
45
|
+
"xo-bizon"
|
|
46
|
+
],
|
|
47
|
+
"settings": {
|
|
48
|
+
"import/internal-regex": "^@sp-api-sdk/"
|
|
49
|
+
},
|
|
50
|
+
"semicolon": false,
|
|
51
|
+
"space": 2,
|
|
52
|
+
"prettier": true,
|
|
53
|
+
"ignores": [
|
|
54
|
+
"src/api-model/**"
|
|
55
|
+
],
|
|
56
|
+
"rules": {
|
|
57
|
+
"unicorn/prevent-abbreviations": "off"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"prettier": {
|
|
61
|
+
"printWidth": 100,
|
|
62
|
+
"jsxSingleQuote": true
|
|
63
|
+
},
|
|
64
|
+
"gitHead": "fc1b46f3bc172469e2fbbc2e0155f6fa7ce3edde"
|
|
44
65
|
}
|