@sp-api-sdk/services-api-v1 1.8.4 → 1.8.7
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 +6 -6
- package/dist/cjs/src/api-model/models/appointment.js +5 -10
- package/dist/cjs/src/api-model/models/associated-item.js +6 -11
- package/dist/cjs/src/api-model/models/model-error.js +4 -9
- package/dist/cjs/src/api-model/models/poa.js +6 -11
- package/dist/cjs/src/api-model/models/service-job.js +9 -14
- package/dist/cjs/src/api-model/models/service-location.js +5 -10
- package/dist/es/src/api-model/api/service-api.js +6 -6
- package/dist/es/src/api-model/models/appointment.js +5 -10
- package/dist/es/src/api-model/models/associated-item.js +6 -11
- package/dist/es/src/api-model/models/model-error.js +4 -9
- package/dist/es/src/api-model/models/poa.js +6 -11
- package/dist/es/src/api-model/models/service-job.js +9 -14
- package/dist/es/src/api-model/models/service-location.js +5 -10
- package/dist/types/src/api-model/api/service-api.d.ts +23 -23
- package/dist/types/src/api-model/base.d.ts +2 -2
- package/dist/types/src/api-model/common.d.ts +7 -7
- package/dist/types/src/api-model/models/add-appointment-request.d.ts +1 -1
- package/dist/types/src/api-model/models/address.d.ts +11 -11
- package/dist/types/src/api-model/models/appointment-time-input.d.ts +2 -2
- package/dist/types/src/api-model/models/appointment-time.d.ts +2 -2
- package/dist/types/src/api-model/models/appointment.d.ts +12 -15
- package/dist/types/src/api-model/models/associated-item.d.ts +14 -17
- package/dist/types/src/api-model/models/buyer.d.ts +4 -4
- package/dist/types/src/api-model/models/cancel-service-job-by-service-job-id-response.d.ts +1 -1
- package/dist/types/src/api-model/models/complete-service-job-by-service-job-id-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-service-job-by-service-job-id-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-service-jobs-response.d.ts +2 -2
- package/dist/types/src/api-model/models/item-delivery-promise.d.ts +2 -2
- package/dist/types/src/api-model/models/item-delivery.d.ts +2 -2
- package/dist/types/src/api-model/models/job-listing.d.ts +4 -4
- package/dist/types/src/api-model/models/model-error.d.ts +9 -12
- package/dist/types/src/api-model/models/poa.d.ts +12 -15
- package/dist/types/src/api-model/models/reschedule-appointment-request.d.ts +2 -2
- package/dist/types/src/api-model/models/scope-of-work.d.ts +4 -4
- package/dist/types/src/api-model/models/seller.d.ts +1 -1
- package/dist/types/src/api-model/models/service-job-provider.d.ts +1 -1
- package/dist/types/src/api-model/models/service-job.d.ts +23 -26
- package/dist/types/src/api-model/models/service-location.d.ts +8 -11
- package/dist/types/src/api-model/models/set-appointment-response.d.ts +3 -3
- package/dist/types/src/api-model/models/technician.d.ts +2 -2
- package/dist/types/src/api-model/models/warning.d.ts +3 -3
- package/package.json +4 -4
|
@@ -28,90 +28,87 @@ export interface ServiceJob {
|
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof ServiceJob
|
|
30
30
|
*/
|
|
31
|
-
createTime?: string;
|
|
31
|
+
'createTime'?: string;
|
|
32
32
|
/**
|
|
33
33
|
* Amazon identifier for the service job.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof ServiceJob
|
|
36
36
|
*/
|
|
37
|
-
serviceJobId?: string;
|
|
37
|
+
'serviceJobId'?: string;
|
|
38
38
|
/**
|
|
39
39
|
* The status of the service job.
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof ServiceJob
|
|
42
42
|
*/
|
|
43
|
-
serviceJobStatus?: ServiceJobServiceJobStatusEnum;
|
|
43
|
+
'serviceJobStatus'?: ServiceJobServiceJobStatusEnum;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {ScopeOfWork}
|
|
47
47
|
* @memberof ServiceJob
|
|
48
48
|
*/
|
|
49
|
-
scopeOfWork?: ScopeOfWork;
|
|
49
|
+
'scopeOfWork'?: ScopeOfWork;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {Seller}
|
|
53
53
|
* @memberof ServiceJob
|
|
54
54
|
*/
|
|
55
|
-
seller?: Seller;
|
|
55
|
+
'seller'?: Seller;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {ServiceJobProvider}
|
|
59
59
|
* @memberof ServiceJob
|
|
60
60
|
*/
|
|
61
|
-
serviceJobProvider?: ServiceJobProvider;
|
|
61
|
+
'serviceJobProvider'?: ServiceJobProvider;
|
|
62
62
|
/**
|
|
63
63
|
* A list of appointment windows preferred by the buyer. Included only if the buyer selected appointment windows when creating the order.
|
|
64
64
|
* @type {Array<AppointmentTime>}
|
|
65
65
|
* @memberof ServiceJob
|
|
66
66
|
*/
|
|
67
|
-
preferredAppointmentTimes?: Array<AppointmentTime>;
|
|
67
|
+
'preferredAppointmentTimes'?: Array<AppointmentTime>;
|
|
68
68
|
/**
|
|
69
69
|
* A list of appointments.
|
|
70
70
|
* @type {Array<Appointment>}
|
|
71
71
|
* @memberof ServiceJob
|
|
72
72
|
*/
|
|
73
|
-
appointments?: Array<Appointment>;
|
|
73
|
+
'appointments'?: Array<Appointment>;
|
|
74
74
|
/**
|
|
75
75
|
* The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format.
|
|
76
76
|
* @type {string}
|
|
77
77
|
* @memberof ServiceJob
|
|
78
78
|
*/
|
|
79
|
-
serviceOrderId?: string;
|
|
79
|
+
'serviceOrderId'?: string;
|
|
80
80
|
/**
|
|
81
81
|
* The marketplace identifier.
|
|
82
82
|
* @type {string}
|
|
83
83
|
* @memberof ServiceJob
|
|
84
84
|
*/
|
|
85
|
-
marketplaceId?: string;
|
|
85
|
+
'marketplaceId'?: string;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @type {Buyer}
|
|
89
89
|
* @memberof ServiceJob
|
|
90
90
|
*/
|
|
91
|
-
buyer?: Buyer;
|
|
91
|
+
'buyer'?: Buyer;
|
|
92
92
|
/**
|
|
93
93
|
* A list of items associated with the service job.
|
|
94
94
|
* @type {Array<AssociatedItem>}
|
|
95
95
|
* @memberof ServiceJob
|
|
96
96
|
*/
|
|
97
|
-
associatedItems?: Array<AssociatedItem>;
|
|
97
|
+
'associatedItems'?: Array<AssociatedItem>;
|
|
98
98
|
/**
|
|
99
99
|
*
|
|
100
100
|
* @type {ServiceLocation}
|
|
101
101
|
* @memberof ServiceJob
|
|
102
102
|
*/
|
|
103
|
-
serviceLocation?: ServiceLocation;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* @export
|
|
107
|
-
* @enum {string}
|
|
108
|
-
*/
|
|
109
|
-
export declare enum ServiceJobServiceJobStatusEnum {
|
|
110
|
-
NotServiced = "NOT_SERVICED",
|
|
111
|
-
Cancelled = "CANCELLED",
|
|
112
|
-
Completed = "COMPLETED",
|
|
113
|
-
PendingSchedule = "PENDING_SCHEDULE",
|
|
114
|
-
NotFulfillable = "NOT_FULFILLABLE",
|
|
115
|
-
Hold = "HOLD",
|
|
116
|
-
PaymentDeclined = "PAYMENT_DECLINED"
|
|
103
|
+
'serviceLocation'?: ServiceLocation;
|
|
117
104
|
}
|
|
105
|
+
export declare const ServiceJobServiceJobStatusEnum: {
|
|
106
|
+
readonly NotServiced: "NOT_SERVICED";
|
|
107
|
+
readonly Cancelled: "CANCELLED";
|
|
108
|
+
readonly Completed: "COMPLETED";
|
|
109
|
+
readonly PendingSchedule: "PENDING_SCHEDULE";
|
|
110
|
+
readonly NotFulfillable: "NOT_FULFILLABLE";
|
|
111
|
+
readonly Hold: "HOLD";
|
|
112
|
+
readonly PaymentDeclined: "PAYMENT_DECLINED";
|
|
113
|
+
};
|
|
114
|
+
export declare type ServiceJobServiceJobStatusEnum = typeof ServiceJobServiceJobStatusEnum[keyof typeof ServiceJobServiceJobStatusEnum];
|
|
@@ -21,20 +21,17 @@ export interface ServiceLocation {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof ServiceLocation
|
|
23
23
|
*/
|
|
24
|
-
serviceLocationType?: ServiceLocationServiceLocationTypeEnum;
|
|
24
|
+
'serviceLocationType'?: ServiceLocationServiceLocationTypeEnum;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {Address}
|
|
28
28
|
* @memberof ServiceLocation
|
|
29
29
|
*/
|
|
30
|
-
address?: Address;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @export
|
|
34
|
-
* @enum {string}
|
|
35
|
-
*/
|
|
36
|
-
export declare enum ServiceLocationServiceLocationTypeEnum {
|
|
37
|
-
InHome = "IN_HOME",
|
|
38
|
-
InStore = "IN_STORE",
|
|
39
|
-
Online = "ONLINE"
|
|
30
|
+
'address'?: Address;
|
|
40
31
|
}
|
|
32
|
+
export declare const ServiceLocationServiceLocationTypeEnum: {
|
|
33
|
+
readonly InHome: "IN_HOME";
|
|
34
|
+
readonly InStore: "IN_STORE";
|
|
35
|
+
readonly Online: "ONLINE";
|
|
36
|
+
};
|
|
37
|
+
export declare type ServiceLocationServiceLocationTypeEnum = typeof ServiceLocationServiceLocationTypeEnum[keyof typeof ServiceLocationServiceLocationTypeEnum];
|
|
@@ -21,17 +21,17 @@ export interface SetAppointmentResponse {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof SetAppointmentResponse
|
|
23
23
|
*/
|
|
24
|
-
appointmentId?: string;
|
|
24
|
+
'appointmentId'?: string;
|
|
25
25
|
/**
|
|
26
26
|
* A list of warnings returned in the sucessful execution response of an API request.
|
|
27
27
|
* @type {Array<Warning>}
|
|
28
28
|
* @memberof SetAppointmentResponse
|
|
29
29
|
*/
|
|
30
|
-
warnings?: Array<Warning>;
|
|
30
|
+
'warnings'?: Array<Warning>;
|
|
31
31
|
/**
|
|
32
32
|
* A list of error responses returned when a request is unsuccessful.
|
|
33
33
|
* @type {Array<Error>}
|
|
34
34
|
* @memberof SetAppointmentResponse
|
|
35
35
|
*/
|
|
36
|
-
errors?: Array<Error>;
|
|
36
|
+
'errors'?: Array<Error>;
|
|
37
37
|
}
|
|
@@ -20,11 +20,11 @@ export interface Technician {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof Technician
|
|
22
22
|
*/
|
|
23
|
-
technicianId?: string;
|
|
23
|
+
'technicianId'?: string;
|
|
24
24
|
/**
|
|
25
25
|
* The name of the technician.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof Technician
|
|
28
28
|
*/
|
|
29
|
-
name?: string;
|
|
29
|
+
'name'?: string;
|
|
30
30
|
}
|
|
@@ -20,17 +20,17 @@ export interface Warning {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof Warning
|
|
22
22
|
*/
|
|
23
|
-
code: string;
|
|
23
|
+
'code': string;
|
|
24
24
|
/**
|
|
25
25
|
* A message that describes the warning condition in a human-readable form.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof Warning
|
|
28
28
|
*/
|
|
29
|
-
message: string;
|
|
29
|
+
'message': string;
|
|
30
30
|
/**
|
|
31
31
|
* Additional details that can help the caller understand or address the warning.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Warning
|
|
34
34
|
*/
|
|
35
|
-
details?: string;
|
|
35
|
+
'details'?: string;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/services-api-v1",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "With the Services API, you can build applications that help service providers get and modify their service orders.",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.7",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"test": "jest"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@sp-api-sdk/auth": "^1.9.
|
|
31
|
-
"@sp-api-sdk/common": "^1.9.
|
|
30
|
+
"@sp-api-sdk/auth": "^1.9.19",
|
|
31
|
+
"@sp-api-sdk/common": "^1.9.5",
|
|
32
32
|
"axios": "^0.27.2"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"sp sdk",
|
|
51
51
|
"services api"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "72808979582d663f043688f24d519b604f7fd2df"
|
|
54
54
|
}
|