@sp-api-sdk/services-api-v1 1.6.15
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/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/src/api-model/api/service-api.js +505 -0
- package/dist/cjs/src/api-model/api.js +17 -0
- package/dist/cjs/src/api-model/base.js +62 -0
- package/dist/cjs/src/api-model/common.js +137 -0
- package/dist/cjs/src/api-model/configuration.js +42 -0
- package/dist/cjs/src/api-model/index.js +19 -0
- package/dist/cjs/src/api-model/models/add-appointment-request.js +15 -0
- package/dist/cjs/src/api-model/models/address.js +15 -0
- package/dist/cjs/src/api-model/models/appointment-time-input.js +15 -0
- package/dist/cjs/src/api-model/models/appointment-time.js +15 -0
- package/dist/cjs/src/api-model/models/appointment.js +26 -0
- package/dist/cjs/src/api-model/models/associated-item.js +27 -0
- package/dist/cjs/src/api-model/models/buyer.js +15 -0
- package/dist/cjs/src/api-model/models/cancel-service-job-by-service-job-id-response.js +15 -0
- package/dist/cjs/src/api-model/models/complete-service-job-by-service-job-id-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-service-job-by-service-job-id-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-service-jobs-response.js +15 -0
- package/dist/cjs/src/api-model/models/index.js +28 -0
- package/dist/cjs/src/api-model/models/item-delivery-promise.js +15 -0
- package/dist/cjs/src/api-model/models/item-delivery.js +15 -0
- package/dist/cjs/src/api-model/models/job-listing.js +15 -0
- package/dist/cjs/src/api-model/models/model-error.js +25 -0
- package/dist/cjs/src/api-model/models/poa.js +27 -0
- package/dist/cjs/src/api-model/models/reschedule-appointment-request.js +15 -0
- package/dist/cjs/src/api-model/models/scope-of-work.js +15 -0
- package/dist/cjs/src/api-model/models/seller.js +15 -0
- package/dist/cjs/src/api-model/models/service-job-provider.js +15 -0
- package/dist/cjs/src/api-model/models/service-job.js +30 -0
- package/dist/cjs/src/api-model/models/service-location.js +26 -0
- package/dist/cjs/src/api-model/models/set-appointment-response.js +15 -0
- package/dist/cjs/src/api-model/models/technician.js +15 -0
- package/dist/cjs/src/api-model/models/warning.js +15 -0
- package/dist/cjs/src/client.js +65 -0
- package/dist/cjs/src/error.js +10 -0
- package/dist/es/index.js +3 -0
- package/dist/es/src/api-model/api/service-api.js +497 -0
- package/dist/es/src/api-model/api.js +14 -0
- package/dist/es/src/api-model/base.js +56 -0
- package/dist/es/src/api-model/common.js +125 -0
- package/dist/es/src/api-model/configuration.js +38 -0
- package/dist/es/src/api-model/index.js +16 -0
- package/dist/es/src/api-model/models/add-appointment-request.js +14 -0
- package/dist/es/src/api-model/models/address.js +14 -0
- package/dist/es/src/api-model/models/appointment-time-input.js +14 -0
- package/dist/es/src/api-model/models/appointment-time.js +14 -0
- package/dist/es/src/api-model/models/appointment.js +23 -0
- package/dist/es/src/api-model/models/associated-item.js +24 -0
- package/dist/es/src/api-model/models/buyer.js +14 -0
- package/dist/es/src/api-model/models/cancel-service-job-by-service-job-id-response.js +14 -0
- package/dist/es/src/api-model/models/complete-service-job-by-service-job-id-response.js +14 -0
- package/dist/es/src/api-model/models/get-service-job-by-service-job-id-response.js +14 -0
- package/dist/es/src/api-model/models/get-service-jobs-response.js +14 -0
- package/dist/es/src/api-model/models/index.js +25 -0
- package/dist/es/src/api-model/models/item-delivery-promise.js +14 -0
- package/dist/es/src/api-model/models/item-delivery.js +14 -0
- package/dist/es/src/api-model/models/job-listing.js +14 -0
- package/dist/es/src/api-model/models/model-error.js +22 -0
- package/dist/es/src/api-model/models/poa.js +24 -0
- package/dist/es/src/api-model/models/reschedule-appointment-request.js +14 -0
- package/dist/es/src/api-model/models/scope-of-work.js +14 -0
- package/dist/es/src/api-model/models/seller.js +14 -0
- package/dist/es/src/api-model/models/service-job-provider.js +14 -0
- package/dist/es/src/api-model/models/service-job.js +27 -0
- package/dist/es/src/api-model/models/service-location.js +23 -0
- package/dist/es/src/api-model/models/set-appointment-response.js +14 -0
- package/dist/es/src/api-model/models/technician.js +14 -0
- package/dist/es/src/api-model/models/warning.js +14 -0
- package/dist/es/src/client.js +61 -0
- package/dist/es/src/error.js +6 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/src/api-model/api/service-api.d.ts +443 -0
- package/dist/types/src/api-model/api.d.ts +12 -0
- package/dist/types/src/api-model/base.d.ts +55 -0
- package/dist/types/src/api-model/common.d.ts +65 -0
- package/dist/types/src/api-model/configuration.d.ts +83 -0
- package/dist/types/src/api-model/index.d.ts +14 -0
- package/dist/types/src/api-model/models/add-appointment-request.d.ts +25 -0
- package/dist/types/src/api-model/models/address.d.ts +84 -0
- package/dist/types/src/api-model/models/appointment-time-input.d.ts +30 -0
- package/dist/types/src/api-model/models/appointment-time.d.ts +30 -0
- package/dist/types/src/api-model/models/appointment.d.ts +66 -0
- package/dist/types/src/api-model/models/associated-item.d.ts +71 -0
- package/dist/types/src/api-model/models/buyer.d.ts +42 -0
- package/dist/types/src/api-model/models/cancel-service-job-by-service-job-id-response.d.ts +24 -0
- package/dist/types/src/api-model/models/complete-service-job-by-service-job-id-response.d.ts +24 -0
- package/dist/types/src/api-model/models/get-service-job-by-service-job-id-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-service-jobs-response.d.ts +31 -0
- package/dist/types/src/api-model/models/index.d.ts +25 -0
- package/dist/types/src/api-model/models/item-delivery-promise.d.ts +30 -0
- package/dist/types/src/api-model/models/item-delivery.d.ts +31 -0
- package/dist/types/src/api-model/models/job-listing.d.ts +43 -0
- package/dist/types/src/api-model/models/model-error.d.ts +50 -0
- package/dist/types/src/api-model/models/poa.d.ts +60 -0
- package/dist/types/src/api-model/models/reschedule-appointment-request.d.ts +31 -0
- package/dist/types/src/api-model/models/scope-of-work.d.ts +42 -0
- package/dist/types/src/api-model/models/seller.d.ts +24 -0
- package/dist/types/src/api-model/models/service-job-provider.d.ts +24 -0
- package/dist/types/src/api-model/models/service-job.d.ts +117 -0
- package/dist/types/src/api-model/models/service-location.d.ts +40 -0
- package/dist/types/src/api-model/models/set-appointment-response.d.ts +37 -0
- package/dist/types/src/api-model/models/technician.d.ts +30 -0
- package/dist/types/src/api-model/models/warning.d.ts +36 -0
- package/dist/types/src/client.d.ts +13 -0
- package/dist/types/src/error.d.ts +3 -0
- package/package.json +53 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from './api/service-api';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Configuration } from "./configuration";
|
|
13
|
+
import { AxiosInstance } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: any;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
name: "RequiredError";
|
|
54
|
+
constructor(field: string, msg?: string);
|
|
55
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Configuration } from "./configuration";
|
|
13
|
+
import { RequestArgs } from "./base";
|
|
14
|
+
import { AxiosInstance } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
baseOptions?: any;
|
|
19
|
+
formDataCtor?: new () => any;
|
|
20
|
+
}
|
|
21
|
+
export declare class Configuration {
|
|
22
|
+
/**
|
|
23
|
+
* parameter for apiKey security
|
|
24
|
+
* @param name security name
|
|
25
|
+
* @memberof Configuration
|
|
26
|
+
*/
|
|
27
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
+
/**
|
|
29
|
+
* parameter for basic security
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Configuration
|
|
33
|
+
*/
|
|
34
|
+
username?: string;
|
|
35
|
+
/**
|
|
36
|
+
* parameter for basic security
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Configuration
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
42
|
+
/**
|
|
43
|
+
* parameter for oauth2 security
|
|
44
|
+
* @param name security name
|
|
45
|
+
* @param scopes oauth2 scope
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
49
|
+
/**
|
|
50
|
+
* override base path
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* base options for axios calls
|
|
58
|
+
*
|
|
59
|
+
* @type {any}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
baseOptions?: any;
|
|
63
|
+
/**
|
|
64
|
+
* The FormData constructor that will be used to create multipart form data
|
|
65
|
+
* requests. You can inject this here so that execution environments that
|
|
66
|
+
* do not support the FormData class can still run the generated client.
|
|
67
|
+
*
|
|
68
|
+
* @type {new () => FormData}
|
|
69
|
+
*/
|
|
70
|
+
formDataCtor?: new () => any;
|
|
71
|
+
constructor(param?: ConfigurationParameters);
|
|
72
|
+
/**
|
|
73
|
+
* Check if the given MIME is a JSON MIME.
|
|
74
|
+
* JSON MIME examples:
|
|
75
|
+
* application/json
|
|
76
|
+
* application/json; charset=UTF8
|
|
77
|
+
* APPLICATION/JSON
|
|
78
|
+
* application/vnd.company+json
|
|
79
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
80
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
81
|
+
*/
|
|
82
|
+
isJsonMime(mime: string): boolean;
|
|
83
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./api";
|
|
13
|
+
export * from "./configuration";
|
|
14
|
+
export * from "./models";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AppointmentTimeInput } from './appointment-time-input';
|
|
13
|
+
/**
|
|
14
|
+
* Input for add appointment operation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddAppointmentRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface AddAppointmentRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AppointmentTimeInput}
|
|
22
|
+
* @memberof AddAppointmentRequest
|
|
23
|
+
*/
|
|
24
|
+
appointmentTime: AppointmentTimeInput;
|
|
25
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The shipping address for the service job.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Address
|
|
16
|
+
*/
|
|
17
|
+
export interface Address {
|
|
18
|
+
/**
|
|
19
|
+
* The name of the person, business, or institution.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Address
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* The first line of the address.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Address
|
|
28
|
+
*/
|
|
29
|
+
addressLine1: string;
|
|
30
|
+
/**
|
|
31
|
+
* Additional address information, if required.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Address
|
|
34
|
+
*/
|
|
35
|
+
addressLine2?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Additional address information, if required.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Address
|
|
40
|
+
*/
|
|
41
|
+
addressLine3?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The city.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Address
|
|
46
|
+
*/
|
|
47
|
+
city?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The county.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Address
|
|
52
|
+
*/
|
|
53
|
+
county?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The district.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Address
|
|
58
|
+
*/
|
|
59
|
+
district?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The state or region.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Address
|
|
64
|
+
*/
|
|
65
|
+
stateOrRegion?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The postal code. This can contain letters, digits, spaces, and/or punctuation.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Address
|
|
70
|
+
*/
|
|
71
|
+
postalCode?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The two digit country code, in ISO 3166-1 alpha-2 format.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof Address
|
|
76
|
+
*/
|
|
77
|
+
countryCode?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The phone number.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof Address
|
|
82
|
+
*/
|
|
83
|
+
phone?: string;
|
|
84
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The input appointment time details.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AppointmentTimeInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AppointmentTimeInput {
|
|
18
|
+
/**
|
|
19
|
+
* The date, time in UTC for the start time of an appointment in ISO 8601 format.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppointmentTimeInput
|
|
22
|
+
*/
|
|
23
|
+
startTime: string;
|
|
24
|
+
/**
|
|
25
|
+
* The duration of an appointment in minutes.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AppointmentTimeInput
|
|
28
|
+
*/
|
|
29
|
+
durationInMinutes?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The time of the appointment window.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AppointmentTime
|
|
16
|
+
*/
|
|
17
|
+
export interface AppointmentTime {
|
|
18
|
+
/**
|
|
19
|
+
* The date and time of the start of the appointment window, in ISO 8601 format.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppointmentTime
|
|
22
|
+
*/
|
|
23
|
+
startTime: string;
|
|
24
|
+
/**
|
|
25
|
+
* The duration of the appointment window, in minutes.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AppointmentTime
|
|
28
|
+
*/
|
|
29
|
+
durationInMinutes: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Services
|
|
3
|
+
* With the Services API, you can build applications that help service providers get and modify their service orders.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AppointmentTime } from './appointment-time';
|
|
13
|
+
import { Poa } from './poa';
|
|
14
|
+
import { Technician } from './technician';
|
|
15
|
+
/**
|
|
16
|
+
* The details of an appointment.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Appointment
|
|
19
|
+
*/
|
|
20
|
+
export interface Appointment {
|
|
21
|
+
/**
|
|
22
|
+
* The appointment identifier.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof Appointment
|
|
25
|
+
*/
|
|
26
|
+
appointmentId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The status of the appointment.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Appointment
|
|
31
|
+
*/
|
|
32
|
+
appointmentStatus?: AppointmentAppointmentStatusEnum;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {AppointmentTime}
|
|
36
|
+
* @memberof Appointment
|
|
37
|
+
*/
|
|
38
|
+
appointmentTime?: AppointmentTime;
|
|
39
|
+
/**
|
|
40
|
+
* A list of technicians assigned to the service job.
|
|
41
|
+
* @type {Array<Technician>}
|
|
42
|
+
* @memberof Appointment
|
|
43
|
+
*/
|
|
44
|
+
assignedTechnicians?: Array<Technician>;
|
|
45
|
+
/**
|
|
46
|
+
* The appointment identifier.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof Appointment
|
|
49
|
+
*/
|
|
50
|
+
rescheduledAppointmentId?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Poa}
|
|
54
|
+
* @memberof Appointment
|
|
55
|
+
*/
|
|
56
|
+
poa?: Poa;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
* @enum {string}
|
|
61
|
+
*/
|
|
62
|
+
export declare enum AppointmentAppointmentStatusEnum {
|
|
63
|
+
Active = "ACTIVE",
|
|
64
|
+
Cancelled = "CANCELLED",
|
|
65
|
+
Completed = "COMPLETED"
|
|
66
|
+
}
|