doboxa-js 1.0.2 → 1.0.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/README.md +79 -72
- package/dist/{chunk-36DDSV5T.mjs → chunk-WGEOQ35B.mjs} +43 -23
- package/dist/chunk-WGEOQ35B.mjs.map +1 -0
- package/dist/client-BfIS6ja2.d.mts +2759 -0
- package/dist/client-BfIS6ja2.d.ts +2759 -0
- package/dist/client.d.mts +1 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +42 -22
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +1 -1
- package/dist/errors-CtijMwu-.d.mts +161 -0
- package/dist/errors-CtijMwu-.d.ts +161 -0
- package/dist/errors.d.mts +1 -0
- package/dist/errors.d.ts +1 -0
- package/dist/index.d.mts +153 -0
- package/dist/index.d.ts +153 -0
- package/dist/index.js +42 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/models.d.mts +2 -0
- package/dist/models.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunk-36DDSV5T.mjs.map +0 -1
package/dist/client.mjs
CHANGED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API V2
|
|
3
|
+
* API V2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InvalidParameter
|
|
16
|
+
*/
|
|
17
|
+
interface InvalidParameter {
|
|
18
|
+
/**
|
|
19
|
+
* Invalid parameter name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvalidParameter
|
|
22
|
+
*/
|
|
23
|
+
parameter?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Error cause
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvalidParameter
|
|
28
|
+
*/
|
|
29
|
+
error_cause?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the InvalidParameter interface.
|
|
33
|
+
*/
|
|
34
|
+
declare function instanceOfInvalidParameter(value: object): value is InvalidParameter;
|
|
35
|
+
declare function InvalidParameterFromJSON(json: any): InvalidParameter;
|
|
36
|
+
declare function InvalidParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvalidParameter;
|
|
37
|
+
declare function InvalidParameterToJSON(json: any): InvalidParameter;
|
|
38
|
+
declare function InvalidParameterToJSONTyped(value?: InvalidParameter | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* API V2
|
|
42
|
+
* API V2
|
|
43
|
+
*
|
|
44
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
45
|
+
*
|
|
46
|
+
*
|
|
47
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
48
|
+
* https://openapi-generator.tech
|
|
49
|
+
* Do not edit the class manually.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface InvalidRequestDataResponse
|
|
56
|
+
*/
|
|
57
|
+
interface InvalidRequestDataResponse {
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<InvalidParameter>}
|
|
61
|
+
* @memberof InvalidRequestDataResponse
|
|
62
|
+
*/
|
|
63
|
+
invalid_parameters?: Array<InvalidParameter>;
|
|
64
|
+
/**
|
|
65
|
+
* HTTP status code
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof InvalidRequestDataResponse
|
|
68
|
+
*/
|
|
69
|
+
result_code?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Error summary, in case of errors. Sometimes invalid_parameters may be empty!
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof InvalidRequestDataResponse
|
|
74
|
+
*/
|
|
75
|
+
error_message?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the InvalidRequestDataResponse interface.
|
|
79
|
+
*/
|
|
80
|
+
declare function instanceOfInvalidRequestDataResponse(value: object): value is InvalidRequestDataResponse;
|
|
81
|
+
declare function InvalidRequestDataResponseFromJSON(json: any): InvalidRequestDataResponse;
|
|
82
|
+
declare function InvalidRequestDataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvalidRequestDataResponse;
|
|
83
|
+
declare function InvalidRequestDataResponseToJSON(json: any): InvalidRequestDataResponse;
|
|
84
|
+
declare function InvalidRequestDataResponseToJSONTyped(value?: InvalidRequestDataResponse | null, ignoreDiscriminator?: boolean): any;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* API V2
|
|
88
|
+
* API V2
|
|
89
|
+
*
|
|
90
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
94
|
+
* https://openapi-generator.tech
|
|
95
|
+
* Do not edit the class manually.
|
|
96
|
+
*/
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @export
|
|
100
|
+
* @interface ServerErrorResponse
|
|
101
|
+
*/
|
|
102
|
+
interface ServerErrorResponse {
|
|
103
|
+
/**
|
|
104
|
+
* HTTP status code
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof ServerErrorResponse
|
|
107
|
+
*/
|
|
108
|
+
result_code?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Error summary
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof ServerErrorResponse
|
|
113
|
+
*/
|
|
114
|
+
error_message?: string | null;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Check if a given object implements the ServerErrorResponse interface.
|
|
118
|
+
*/
|
|
119
|
+
declare function instanceOfServerErrorResponse(value: object): value is ServerErrorResponse;
|
|
120
|
+
declare function ServerErrorResponseFromJSON(json: any): ServerErrorResponse;
|
|
121
|
+
declare function ServerErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerErrorResponse;
|
|
122
|
+
declare function ServerErrorResponseToJSON(json: any): ServerErrorResponse;
|
|
123
|
+
declare function ServerErrorResponseToJSONTyped(value?: ServerErrorResponse | null, ignoreDiscriminator?: boolean): any;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Base error class for all Doboxa errors
|
|
127
|
+
*/
|
|
128
|
+
declare class DoboxaError extends Error {
|
|
129
|
+
constructor(message: string);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Error thrown when API returns an error response
|
|
133
|
+
*/
|
|
134
|
+
declare class DoboxaAPIError extends DoboxaError {
|
|
135
|
+
readonly statusCode: number;
|
|
136
|
+
readonly code?: number;
|
|
137
|
+
readonly errorMessage?: string;
|
|
138
|
+
readonly invalidParameters?: Array<{
|
|
139
|
+
parameter: string;
|
|
140
|
+
error_cause: string;
|
|
141
|
+
}>;
|
|
142
|
+
constructor(statusCode: number, message: string, body?: InvalidRequestDataResponse | ServerErrorResponse);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Error thrown when authentication fails
|
|
146
|
+
*/
|
|
147
|
+
declare class DoboxaAuthenticationError extends DoboxaError {
|
|
148
|
+
constructor(message?: string);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Error thrown when request validation fails
|
|
152
|
+
*/
|
|
153
|
+
declare class DoboxaValidationError extends DoboxaAPIError {
|
|
154
|
+
constructor(statusCode: number, message: string, body?: InvalidRequestDataResponse);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Parse error response from API
|
|
158
|
+
*/
|
|
159
|
+
declare function parseErrorResponse(statusCode: number, body: unknown): InvalidRequestDataResponse | ServerErrorResponse | undefined;
|
|
160
|
+
|
|
161
|
+
export { DoboxaError as D, type InvalidParameter as I, type ServerErrorResponse as S, DoboxaAPIError as a, DoboxaAuthenticationError as b, DoboxaValidationError as c, InvalidParameterFromJSON as d, InvalidParameterFromJSONTyped as e, InvalidParameterToJSON as f, InvalidParameterToJSONTyped as g, type InvalidRequestDataResponse as h, instanceOfInvalidParameter as i, instanceOfInvalidRequestDataResponse as j, InvalidRequestDataResponseFromJSON as k, InvalidRequestDataResponseFromJSONTyped as l, InvalidRequestDataResponseToJSON as m, InvalidRequestDataResponseToJSONTyped as n, instanceOfServerErrorResponse as o, parseErrorResponse as p, ServerErrorResponseFromJSON as q, ServerErrorResponseFromJSONTyped as r, ServerErrorResponseToJSON as s, ServerErrorResponseToJSONTyped as t };
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API V2
|
|
3
|
+
* API V2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InvalidParameter
|
|
16
|
+
*/
|
|
17
|
+
interface InvalidParameter {
|
|
18
|
+
/**
|
|
19
|
+
* Invalid parameter name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvalidParameter
|
|
22
|
+
*/
|
|
23
|
+
parameter?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Error cause
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvalidParameter
|
|
28
|
+
*/
|
|
29
|
+
error_cause?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the InvalidParameter interface.
|
|
33
|
+
*/
|
|
34
|
+
declare function instanceOfInvalidParameter(value: object): value is InvalidParameter;
|
|
35
|
+
declare function InvalidParameterFromJSON(json: any): InvalidParameter;
|
|
36
|
+
declare function InvalidParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvalidParameter;
|
|
37
|
+
declare function InvalidParameterToJSON(json: any): InvalidParameter;
|
|
38
|
+
declare function InvalidParameterToJSONTyped(value?: InvalidParameter | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* API V2
|
|
42
|
+
* API V2
|
|
43
|
+
*
|
|
44
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
45
|
+
*
|
|
46
|
+
*
|
|
47
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
48
|
+
* https://openapi-generator.tech
|
|
49
|
+
* Do not edit the class manually.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface InvalidRequestDataResponse
|
|
56
|
+
*/
|
|
57
|
+
interface InvalidRequestDataResponse {
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<InvalidParameter>}
|
|
61
|
+
* @memberof InvalidRequestDataResponse
|
|
62
|
+
*/
|
|
63
|
+
invalid_parameters?: Array<InvalidParameter>;
|
|
64
|
+
/**
|
|
65
|
+
* HTTP status code
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof InvalidRequestDataResponse
|
|
68
|
+
*/
|
|
69
|
+
result_code?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Error summary, in case of errors. Sometimes invalid_parameters may be empty!
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof InvalidRequestDataResponse
|
|
74
|
+
*/
|
|
75
|
+
error_message?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the InvalidRequestDataResponse interface.
|
|
79
|
+
*/
|
|
80
|
+
declare function instanceOfInvalidRequestDataResponse(value: object): value is InvalidRequestDataResponse;
|
|
81
|
+
declare function InvalidRequestDataResponseFromJSON(json: any): InvalidRequestDataResponse;
|
|
82
|
+
declare function InvalidRequestDataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvalidRequestDataResponse;
|
|
83
|
+
declare function InvalidRequestDataResponseToJSON(json: any): InvalidRequestDataResponse;
|
|
84
|
+
declare function InvalidRequestDataResponseToJSONTyped(value?: InvalidRequestDataResponse | null, ignoreDiscriminator?: boolean): any;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* API V2
|
|
88
|
+
* API V2
|
|
89
|
+
*
|
|
90
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
94
|
+
* https://openapi-generator.tech
|
|
95
|
+
* Do not edit the class manually.
|
|
96
|
+
*/
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @export
|
|
100
|
+
* @interface ServerErrorResponse
|
|
101
|
+
*/
|
|
102
|
+
interface ServerErrorResponse {
|
|
103
|
+
/**
|
|
104
|
+
* HTTP status code
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof ServerErrorResponse
|
|
107
|
+
*/
|
|
108
|
+
result_code?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Error summary
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof ServerErrorResponse
|
|
113
|
+
*/
|
|
114
|
+
error_message?: string | null;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Check if a given object implements the ServerErrorResponse interface.
|
|
118
|
+
*/
|
|
119
|
+
declare function instanceOfServerErrorResponse(value: object): value is ServerErrorResponse;
|
|
120
|
+
declare function ServerErrorResponseFromJSON(json: any): ServerErrorResponse;
|
|
121
|
+
declare function ServerErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerErrorResponse;
|
|
122
|
+
declare function ServerErrorResponseToJSON(json: any): ServerErrorResponse;
|
|
123
|
+
declare function ServerErrorResponseToJSONTyped(value?: ServerErrorResponse | null, ignoreDiscriminator?: boolean): any;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Base error class for all Doboxa errors
|
|
127
|
+
*/
|
|
128
|
+
declare class DoboxaError extends Error {
|
|
129
|
+
constructor(message: string);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Error thrown when API returns an error response
|
|
133
|
+
*/
|
|
134
|
+
declare class DoboxaAPIError extends DoboxaError {
|
|
135
|
+
readonly statusCode: number;
|
|
136
|
+
readonly code?: number;
|
|
137
|
+
readonly errorMessage?: string;
|
|
138
|
+
readonly invalidParameters?: Array<{
|
|
139
|
+
parameter: string;
|
|
140
|
+
error_cause: string;
|
|
141
|
+
}>;
|
|
142
|
+
constructor(statusCode: number, message: string, body?: InvalidRequestDataResponse | ServerErrorResponse);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Error thrown when authentication fails
|
|
146
|
+
*/
|
|
147
|
+
declare class DoboxaAuthenticationError extends DoboxaError {
|
|
148
|
+
constructor(message?: string);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Error thrown when request validation fails
|
|
152
|
+
*/
|
|
153
|
+
declare class DoboxaValidationError extends DoboxaAPIError {
|
|
154
|
+
constructor(statusCode: number, message: string, body?: InvalidRequestDataResponse);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Parse error response from API
|
|
158
|
+
*/
|
|
159
|
+
declare function parseErrorResponse(statusCode: number, body: unknown): InvalidRequestDataResponse | ServerErrorResponse | undefined;
|
|
160
|
+
|
|
161
|
+
export { DoboxaError as D, type InvalidParameter as I, type ServerErrorResponse as S, DoboxaAPIError as a, DoboxaAuthenticationError as b, DoboxaValidationError as c, InvalidParameterFromJSON as d, InvalidParameterFromJSONTyped as e, InvalidParameterToJSON as f, InvalidParameterToJSONTyped as g, type InvalidRequestDataResponse as h, instanceOfInvalidParameter as i, instanceOfInvalidRequestDataResponse as j, InvalidRequestDataResponseFromJSON as k, InvalidRequestDataResponseFromJSONTyped as l, InvalidRequestDataResponseToJSON as m, InvalidRequestDataResponseToJSONTyped as n, instanceOfServerErrorResponse as o, parseErrorResponse as p, ServerErrorResponseFromJSON as q, ServerErrorResponseFromJSONTyped as r, ServerErrorResponseToJSON as s, ServerErrorResponseToJSONTyped as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as DoboxaAPIError, b as DoboxaAuthenticationError, D as DoboxaError, c as DoboxaValidationError, p as parseErrorResponse } from './errors-CtijMwu-.mjs';
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as DoboxaAPIError, b as DoboxaAuthenticationError, D as DoboxaError, c as DoboxaValidationError, p as parseErrorResponse } from './errors-CtijMwu-.js';
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { D as Doboxa } from './client-BfIS6ja2.mjs';
|
|
2
|
+
export { s as ApiV2AuthenticationRefreshTokenPost200Response, u as ApiV2AuthenticationRefreshTokenPost200ResponseFromJSON, v as ApiV2AuthenticationRefreshTokenPost200ResponseFromJSONTyped, w as ApiV2AuthenticationRefreshTokenPost200ResponseToJSON, x as ApiV2AuthenticationRefreshTokenPost200ResponseToJSONTyped, y as ApiV2AuthenticationTokenPost200Response, E as ApiV2AuthenticationTokenPost200ResponseFromJSON, F as ApiV2AuthenticationTokenPost200ResponseFromJSONTyped, G as ApiV2AuthenticationTokenPost200ResponseToJSON, H as ApiV2AuthenticationTokenPost200ResponseToJSONTyped, J as Attachment, M as AttachmentFromJSON, N as AttachmentFromJSONTyped, P as AttachmentToJSON, Q as AttachmentToJSONTyped, A as AuthenticationResource, S as BillingAddress, W as BillingAddressFromJSON, X as BillingAddressFromJSONTyped, Y as BillingAddressToJSON, Z as BillingAddressToJSONTyped, B as Bool, o as BoolFromJSON, p as BoolFromJSONTyped, q as BoolToJSON, r as BoolToJSONTyped, _ as Client, a0 as ClientFromJSON, a1 as ClientFromJSONTyped, j as ClientListParams, a2 as ClientToJSON, a3 as ClientToJSONTyped, C as ClientsResource, a4 as CreateOrderComment, a5 as CreateOrderCommentAuthorTypeEnum, a7 as CreateOrderCommentFromJSON, a8 as CreateOrderCommentFromJSONTyped, a9 as CreateOrderCommentToJSON, aa as CreateOrderCommentToJSONTyped, ab as DeliveryAddress, ad as DeliveryAddressFromJSON, ae as DeliveryAddressFromJSONTyped, af as DeliveryAddressToJSON, ag as DeliveryAddressToJSONTyped, k as DiscountCodeListParams, b as DiscountCodesResource, a as DoboxaConfig, ah as GetApiV2DiscountCodesExternal200Response, aj as GetApiV2DiscountCodesExternal200ResponseFromJSON, ak as GetApiV2DiscountCodesExternal200ResponseFromJSONTyped, an as GetApiV2DiscountCodesExternal200ResponseItemsInner, ap as GetApiV2DiscountCodesExternal200ResponseItemsInnerFromJSON, aq as GetApiV2DiscountCodesExternal200ResponseItemsInnerFromJSONTyped, ar as GetApiV2DiscountCodesExternal200ResponseItemsInnerToJSON, as as GetApiV2DiscountCodesExternal200ResponseItemsInnerToJSONTyped, al as GetApiV2DiscountCodesExternal200ResponseToJSON, am as GetApiV2DiscountCodesExternal200ResponseToJSONTyped, at as Invoice, au as InvoiceDocumentTypeEnum, aw as InvoiceFromJSON, ax as InvoiceFromJSONTyped, aA as InvoiceItem, aC as InvoiceItemFromJSON, aD as InvoiceItemFromJSONTyped, aE as InvoiceItemToJSON, aF as InvoiceItemToJSONTyped, i as InvoiceListParams, aG as InvoiceOrder, aI as InvoiceOrderFromJSON, aJ as InvoiceOrderFromJSONTyped, aM as InvoiceOrderItem, aO as InvoiceOrderItemFromJSON, aP as InvoiceOrderItemFromJSONTyped, aQ as InvoiceOrderItemToJSON, aR as InvoiceOrderItemToJSONTyped, aK as InvoiceOrderToJSON, aL as InvoiceOrderToJSONTyped, ay as InvoiceToJSON, az as InvoiceToJSONTyped, I as InvoicesResource, L as LoginParams, aS as Me, aU as MeFromJSON, aV as MeFromJSONTyped, aW as MeToJSON, aX as MeToJSONTyped, aY as Order, h as OrderCancelParams, b3 as OrderCancellationResponse, b4 as OrderCancellationResponseDetailsEnum, b6 as OrderCancellationResponseFromJSON, b7 as OrderCancellationResponseFromJSONTyped, b8 as OrderCancellationResponseToJSON, b9 as OrderCancellationResponseToJSONTyped, ba as OrderComment, bb as OrderCommentAuthorTypeEnum, g as OrderCommentCreateParams, bd as OrderCommentFromJSON, be as OrderCommentFromJSONTyped, m as OrderCommentListParams, bf as OrderCommentToJSON, bg as OrderCommentToJSONTyped, c as OrderCommentsResource, e as OrderCreateParams, a$ as OrderFromJSON, b0 as OrderFromJSONTyped, bh as OrderItem, bn as OrderItemCropData, bo as OrderItemCropDataFilterEnum, br as OrderItemCropDataFromJSON, bs as OrderItemCropDataFromJSONTyped, bp as OrderItemCropDataReflectionEnum, bt as OrderItemCropDataToJSON, bu as OrderItemCropDataToJSONTyped, bj as OrderItemFromJSON, bk as OrderItemFromJSONTyped, bv as OrderItemOriginalData, bx as OrderItemOriginalDataFromJSON, by as OrderItemOriginalDataFromJSONTyped, bz as OrderItemOriginalDataToJSON, bA as OrderItemOriginalDataToJSONTyped, bB as OrderItemStatus, bE as OrderItemStatusFromJSON, bF as OrderItemStatusFromJSONTyped, bC as OrderItemStatusStatusEnum, bG as OrderItemStatusToJSON, bH as OrderItemStatusToJSONTyped, bl as OrderItemToJSON, bm as OrderItemToJSONTyped, bI as OrderOriginalData, bK as OrderOriginalDataFromJSON, bL as OrderOriginalDataFromJSONTyped, bM as OrderOriginalDataToJSON, bN as OrderOriginalDataToJSONTyped, aZ as OrderPaymentMethodEnum, bO as OrderStatus, bV as OrderStatusChange, bY as OrderStatusChangeFromJSON, bZ as OrderStatusChangeFromJSONTyped, n as OrderStatusChangeListParams, bW as OrderStatusChangeStatusEnum, b_ as OrderStatusChangeToJSON, b$ as OrderStatusChangeToJSONTyped, d as OrderStatusChangesResource, bR as OrderStatusFromJSON, bS as OrderStatusFromJSONTyped, bP as OrderStatusStatusEnum, bT as OrderStatusToJSON, bU as OrderStatusToJSONTyped, f as OrderStatusUpdateParams, b1 as OrderToJSON, b2 as OrderToJSONTyped, O as OrdersResource, c0 as PageOfClients, c2 as PageOfClientsFromJSON, c3 as PageOfClientsFromJSONTyped, c4 as PageOfClientsToJSON, c5 as PageOfClientsToJSONTyped, c6 as PageOfInvoices, c8 as PageOfInvoicesFromJSON, c9 as PageOfInvoicesFromJSONTyped, ca as PageOfInvoicesToJSON, cb as PageOfInvoicesToJSONTyped, cc as PageOfOrderComments, ce as PageOfOrderCommentsFromJSON, cf as PageOfOrderCommentsFromJSONTyped, cg as PageOfOrderCommentsToJSON, ch as PageOfOrderCommentsToJSONTyped, ci as PageOfOrderStatusChanges, ck as PageOfOrderStatusChangesFromJSON, cl as PageOfOrderStatusChangesFromJSONTyped, cm as PageOfOrderStatusChangesToJSON, cn as PageOfOrderStatusChangesToJSONTyped, co as PageOfTrackingNumbers, cq as PageOfTrackingNumbersFromJSON, cr as PageOfTrackingNumbersFromJSONTyped, cs as PageOfTrackingNumbersToJSON, ct as PageOfTrackingNumbersToJSONTyped, cu as PostOrderCommentResponse, cw as PostOrderCommentResponseFromJSON, cx as PostOrderCommentResponseFromJSONTyped, cy as PostOrderCommentResponseToJSON, cz as PostOrderCommentResponseToJSONTyped, cA as PostOrderResponse, cC as PostOrderResponseFromJSON, cD as PostOrderResponseFromJSONTyped, cE as PostOrderResponseToJSON, cF as PostOrderResponseToJSONTyped, cG as PostOrderStatus, cJ as PostOrderStatusFromJSON, cK as PostOrderStatusFromJSONTyped, cN as PostOrderStatusItem, cQ as PostOrderStatusItemFromJSON, cR as PostOrderStatusItemFromJSONTyped, cO as PostOrderStatusItemStatusEnum, cS as PostOrderStatusItemToJSON, cT as PostOrderStatusItemToJSONTyped, cU as PostOrderStatusResponse, cW as PostOrderStatusResponseFromJSON, cX as PostOrderStatusResponseFromJSONTyped, cY as PostOrderStatusResponseToJSON, cZ as PostOrderStatusResponseToJSONTyped, cH as PostOrderStatusStatusEnum, cL as PostOrderStatusToJSON, cM as PostOrderStatusToJSONTyped, R as RefreshTokenParams, c_ as ReturnLabel, d0 as ReturnLabelFromJSON, d1 as ReturnLabelFromJSONTyped, d2 as ReturnLabelToJSON, d3 as ReturnLabelToJSONTyped, d4 as TrackingNumber, d6 as TrackingNumberFromJSON, d7 as TrackingNumberFromJSONTyped, da as TrackingNumberItem, dc as TrackingNumberItemFromJSON, dd as TrackingNumberItemFromJSONTyped, de as TrackingNumberItemToJSON, df as TrackingNumberItemToJSONTyped, l as TrackingNumberListParams, d8 as TrackingNumberToJSON, d9 as TrackingNumberToJSONTyped, T as TrackingNumbersResource, U as UsersResource, dg as Waybill, dh as WaybillDeliveryMethodEnum, dj as WaybillFromJSON, dk as WaybillFromJSONTyped, dl as WaybillToJSON, dm as WaybillToJSONTyped, t as instanceOfApiV2AuthenticationRefreshTokenPost200Response, z as instanceOfApiV2AuthenticationTokenPost200Response, K as instanceOfAttachment, V as instanceOfBillingAddress, $ as instanceOfClient, a6 as instanceOfCreateOrderComment, ac as instanceOfDeliveryAddress, ai as instanceOfGetApiV2DiscountCodesExternal200Response, ao as instanceOfGetApiV2DiscountCodesExternal200ResponseItemsInner, av as instanceOfInvoice, aB as instanceOfInvoiceItem, aH as instanceOfInvoiceOrder, aN as instanceOfInvoiceOrderItem, aT as instanceOfMe, a_ as instanceOfOrder, b5 as instanceOfOrderCancellationResponse, bc as instanceOfOrderComment, bi as instanceOfOrderItem, bq as instanceOfOrderItemCropData, bw as instanceOfOrderItemOriginalData, bD as instanceOfOrderItemStatus, bJ as instanceOfOrderOriginalData, bQ as instanceOfOrderStatus, bX as instanceOfOrderStatusChange, c1 as instanceOfPageOfClients, c7 as instanceOfPageOfInvoices, cd as instanceOfPageOfOrderComments, cj as instanceOfPageOfOrderStatusChanges, cp as instanceOfPageOfTrackingNumbers, cv as instanceOfPostOrderCommentResponse, cB as instanceOfPostOrderResponse, cI as instanceOfPostOrderStatus, cP as instanceOfPostOrderStatusItem, cV as instanceOfPostOrderStatusResponse, c$ as instanceOfReturnLabel, d5 as instanceOfTrackingNumber, db as instanceOfTrackingNumberItem, di as instanceOfWaybill } from './client-BfIS6ja2.mjs';
|
|
3
|
+
export { a as DoboxaAPIError, b as DoboxaAuthenticationError, D as DoboxaError, c as DoboxaValidationError, I as InvalidParameter, d as InvalidParameterFromJSON, e as InvalidParameterFromJSONTyped, f as InvalidParameterToJSON, g as InvalidParameterToJSONTyped, h as InvalidRequestDataResponse, k as InvalidRequestDataResponseFromJSON, l as InvalidRequestDataResponseFromJSONTyped, m as InvalidRequestDataResponseToJSON, n as InvalidRequestDataResponseToJSONTyped, S as ServerErrorResponse, q as ServerErrorResponseFromJSON, r as ServerErrorResponseFromJSONTyped, s as ServerErrorResponseToJSON, t as ServerErrorResponseToJSONTyped, i as instanceOfInvalidParameter, j as instanceOfInvalidRequestDataResponse, o as instanceOfServerErrorResponse, p as parseErrorResponse } from './errors-CtijMwu-.mjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* API V2
|
|
7
|
+
* API V2
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV2AuthenticationRefreshTokenPostRequest
|
|
20
|
+
*/
|
|
21
|
+
interface ApiV2AuthenticationRefreshTokenPostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV2AuthenticationRefreshTokenPostRequest
|
|
26
|
+
*/
|
|
27
|
+
refresh_token?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ApiV2AuthenticationRefreshTokenPostRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
declare function instanceOfApiV2AuthenticationRefreshTokenPostRequest(value: object): value is ApiV2AuthenticationRefreshTokenPostRequest;
|
|
33
|
+
declare function ApiV2AuthenticationRefreshTokenPostRequestFromJSON(json: any): ApiV2AuthenticationRefreshTokenPostRequest;
|
|
34
|
+
declare function ApiV2AuthenticationRefreshTokenPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV2AuthenticationRefreshTokenPostRequest;
|
|
35
|
+
declare function ApiV2AuthenticationRefreshTokenPostRequestToJSON(json: any): ApiV2AuthenticationRefreshTokenPostRequest;
|
|
36
|
+
declare function ApiV2AuthenticationRefreshTokenPostRequestToJSONTyped(value?: ApiV2AuthenticationRefreshTokenPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* API V2
|
|
40
|
+
* API V2
|
|
41
|
+
*
|
|
42
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
46
|
+
* https://openapi-generator.tech
|
|
47
|
+
* Do not edit the class manually.
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @export
|
|
52
|
+
* @interface ApiV2AuthenticationTokenPost401Response
|
|
53
|
+
*/
|
|
54
|
+
interface ApiV2AuthenticationTokenPost401Response {
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof ApiV2AuthenticationTokenPost401Response
|
|
59
|
+
*/
|
|
60
|
+
code?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ApiV2AuthenticationTokenPost401Response
|
|
65
|
+
*/
|
|
66
|
+
message?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the ApiV2AuthenticationTokenPost401Response interface.
|
|
70
|
+
*/
|
|
71
|
+
declare function instanceOfApiV2AuthenticationTokenPost401Response(value: object): value is ApiV2AuthenticationTokenPost401Response;
|
|
72
|
+
declare function ApiV2AuthenticationTokenPost401ResponseFromJSON(json: any): ApiV2AuthenticationTokenPost401Response;
|
|
73
|
+
declare function ApiV2AuthenticationTokenPost401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV2AuthenticationTokenPost401Response;
|
|
74
|
+
declare function ApiV2AuthenticationTokenPost401ResponseToJSON(json: any): ApiV2AuthenticationTokenPost401Response;
|
|
75
|
+
declare function ApiV2AuthenticationTokenPost401ResponseToJSONTyped(value?: ApiV2AuthenticationTokenPost401Response | null, ignoreDiscriminator?: boolean): any;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* API V2
|
|
79
|
+
* API V2
|
|
80
|
+
*
|
|
81
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
85
|
+
* https://openapi-generator.tech
|
|
86
|
+
* Do not edit the class manually.
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @export
|
|
91
|
+
* @interface ApiV2AuthenticationTokenPostRequest
|
|
92
|
+
*/
|
|
93
|
+
interface ApiV2AuthenticationTokenPostRequest {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof ApiV2AuthenticationTokenPostRequest
|
|
98
|
+
*/
|
|
99
|
+
username?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof ApiV2AuthenticationTokenPostRequest
|
|
104
|
+
*/
|
|
105
|
+
password?: string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the ApiV2AuthenticationTokenPostRequest interface.
|
|
109
|
+
*/
|
|
110
|
+
declare function instanceOfApiV2AuthenticationTokenPostRequest(value: object): value is ApiV2AuthenticationTokenPostRequest;
|
|
111
|
+
declare function ApiV2AuthenticationTokenPostRequestFromJSON(json: any): ApiV2AuthenticationTokenPostRequest;
|
|
112
|
+
declare function ApiV2AuthenticationTokenPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV2AuthenticationTokenPostRequest;
|
|
113
|
+
declare function ApiV2AuthenticationTokenPostRequestToJSON(json: any): ApiV2AuthenticationTokenPostRequest;
|
|
114
|
+
declare function ApiV2AuthenticationTokenPostRequestToJSONTyped(value?: ApiV2AuthenticationTokenPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* API V2
|
|
118
|
+
* API V2
|
|
119
|
+
*
|
|
120
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
124
|
+
* https://openapi-generator.tech
|
|
125
|
+
* Do not edit the class manually.
|
|
126
|
+
*/
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @export
|
|
130
|
+
* @interface OrderCancellation
|
|
131
|
+
*/
|
|
132
|
+
interface OrderCancellation {
|
|
133
|
+
/**
|
|
134
|
+
* Doboxa order id
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof OrderCancellation
|
|
137
|
+
*/
|
|
138
|
+
order_id: string;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Check if a given object implements the OrderCancellation interface.
|
|
142
|
+
*/
|
|
143
|
+
declare function instanceOfOrderCancellation(value: object): value is OrderCancellation;
|
|
144
|
+
declare function OrderCancellationFromJSON(json: any): OrderCancellation;
|
|
145
|
+
declare function OrderCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCancellation;
|
|
146
|
+
declare function OrderCancellationToJSON(json: any): OrderCancellation;
|
|
147
|
+
declare function OrderCancellationToJSONTyped(value?: OrderCancellation | null, ignoreDiscriminator?: boolean): any;
|
|
148
|
+
|
|
149
|
+
type OrderStatusEnum = 'new' | 'wait_for_payment' | 'paid' | 'in_progress' | 'ready_to_be_sent' | 'sent' | 'cancelled' | 'hold' | 'refund';
|
|
150
|
+
type InvoiceStateEnum = 'PAID' | 'UNPAID';
|
|
151
|
+
type AuthorTypeEnum = 'client' | 'support';
|
|
152
|
+
|
|
153
|
+
export { type ApiV2AuthenticationRefreshTokenPostRequest, ApiV2AuthenticationRefreshTokenPostRequestFromJSON, ApiV2AuthenticationRefreshTokenPostRequestFromJSONTyped, ApiV2AuthenticationRefreshTokenPostRequestToJSON, ApiV2AuthenticationRefreshTokenPostRequestToJSONTyped, type ApiV2AuthenticationTokenPost401Response, ApiV2AuthenticationTokenPost401ResponseFromJSON, ApiV2AuthenticationTokenPost401ResponseFromJSONTyped, ApiV2AuthenticationTokenPost401ResponseToJSON, ApiV2AuthenticationTokenPost401ResponseToJSONTyped, type ApiV2AuthenticationTokenPostRequest, ApiV2AuthenticationTokenPostRequestFromJSON, ApiV2AuthenticationTokenPostRequestFromJSONTyped, ApiV2AuthenticationTokenPostRequestToJSON, ApiV2AuthenticationTokenPostRequestToJSONTyped, type AuthorTypeEnum, Doboxa, type InvoiceStateEnum, type OrderCancellation, OrderCancellationFromJSON, OrderCancellationFromJSONTyped, OrderCancellationToJSON, OrderCancellationToJSONTyped, type OrderStatusEnum, Doboxa as default, instanceOfApiV2AuthenticationRefreshTokenPostRequest, instanceOfApiV2AuthenticationTokenPost401Response, instanceOfApiV2AuthenticationTokenPostRequest, instanceOfOrderCancellation };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { D as Doboxa } from './client-BfIS6ja2.js';
|
|
2
|
+
export { s as ApiV2AuthenticationRefreshTokenPost200Response, u as ApiV2AuthenticationRefreshTokenPost200ResponseFromJSON, v as ApiV2AuthenticationRefreshTokenPost200ResponseFromJSONTyped, w as ApiV2AuthenticationRefreshTokenPost200ResponseToJSON, x as ApiV2AuthenticationRefreshTokenPost200ResponseToJSONTyped, y as ApiV2AuthenticationTokenPost200Response, E as ApiV2AuthenticationTokenPost200ResponseFromJSON, F as ApiV2AuthenticationTokenPost200ResponseFromJSONTyped, G as ApiV2AuthenticationTokenPost200ResponseToJSON, H as ApiV2AuthenticationTokenPost200ResponseToJSONTyped, J as Attachment, M as AttachmentFromJSON, N as AttachmentFromJSONTyped, P as AttachmentToJSON, Q as AttachmentToJSONTyped, A as AuthenticationResource, S as BillingAddress, W as BillingAddressFromJSON, X as BillingAddressFromJSONTyped, Y as BillingAddressToJSON, Z as BillingAddressToJSONTyped, B as Bool, o as BoolFromJSON, p as BoolFromJSONTyped, q as BoolToJSON, r as BoolToJSONTyped, _ as Client, a0 as ClientFromJSON, a1 as ClientFromJSONTyped, j as ClientListParams, a2 as ClientToJSON, a3 as ClientToJSONTyped, C as ClientsResource, a4 as CreateOrderComment, a5 as CreateOrderCommentAuthorTypeEnum, a7 as CreateOrderCommentFromJSON, a8 as CreateOrderCommentFromJSONTyped, a9 as CreateOrderCommentToJSON, aa as CreateOrderCommentToJSONTyped, ab as DeliveryAddress, ad as DeliveryAddressFromJSON, ae as DeliveryAddressFromJSONTyped, af as DeliveryAddressToJSON, ag as DeliveryAddressToJSONTyped, k as DiscountCodeListParams, b as DiscountCodesResource, a as DoboxaConfig, ah as GetApiV2DiscountCodesExternal200Response, aj as GetApiV2DiscountCodesExternal200ResponseFromJSON, ak as GetApiV2DiscountCodesExternal200ResponseFromJSONTyped, an as GetApiV2DiscountCodesExternal200ResponseItemsInner, ap as GetApiV2DiscountCodesExternal200ResponseItemsInnerFromJSON, aq as GetApiV2DiscountCodesExternal200ResponseItemsInnerFromJSONTyped, ar as GetApiV2DiscountCodesExternal200ResponseItemsInnerToJSON, as as GetApiV2DiscountCodesExternal200ResponseItemsInnerToJSONTyped, al as GetApiV2DiscountCodesExternal200ResponseToJSON, am as GetApiV2DiscountCodesExternal200ResponseToJSONTyped, at as Invoice, au as InvoiceDocumentTypeEnum, aw as InvoiceFromJSON, ax as InvoiceFromJSONTyped, aA as InvoiceItem, aC as InvoiceItemFromJSON, aD as InvoiceItemFromJSONTyped, aE as InvoiceItemToJSON, aF as InvoiceItemToJSONTyped, i as InvoiceListParams, aG as InvoiceOrder, aI as InvoiceOrderFromJSON, aJ as InvoiceOrderFromJSONTyped, aM as InvoiceOrderItem, aO as InvoiceOrderItemFromJSON, aP as InvoiceOrderItemFromJSONTyped, aQ as InvoiceOrderItemToJSON, aR as InvoiceOrderItemToJSONTyped, aK as InvoiceOrderToJSON, aL as InvoiceOrderToJSONTyped, ay as InvoiceToJSON, az as InvoiceToJSONTyped, I as InvoicesResource, L as LoginParams, aS as Me, aU as MeFromJSON, aV as MeFromJSONTyped, aW as MeToJSON, aX as MeToJSONTyped, aY as Order, h as OrderCancelParams, b3 as OrderCancellationResponse, b4 as OrderCancellationResponseDetailsEnum, b6 as OrderCancellationResponseFromJSON, b7 as OrderCancellationResponseFromJSONTyped, b8 as OrderCancellationResponseToJSON, b9 as OrderCancellationResponseToJSONTyped, ba as OrderComment, bb as OrderCommentAuthorTypeEnum, g as OrderCommentCreateParams, bd as OrderCommentFromJSON, be as OrderCommentFromJSONTyped, m as OrderCommentListParams, bf as OrderCommentToJSON, bg as OrderCommentToJSONTyped, c as OrderCommentsResource, e as OrderCreateParams, a$ as OrderFromJSON, b0 as OrderFromJSONTyped, bh as OrderItem, bn as OrderItemCropData, bo as OrderItemCropDataFilterEnum, br as OrderItemCropDataFromJSON, bs as OrderItemCropDataFromJSONTyped, bp as OrderItemCropDataReflectionEnum, bt as OrderItemCropDataToJSON, bu as OrderItemCropDataToJSONTyped, bj as OrderItemFromJSON, bk as OrderItemFromJSONTyped, bv as OrderItemOriginalData, bx as OrderItemOriginalDataFromJSON, by as OrderItemOriginalDataFromJSONTyped, bz as OrderItemOriginalDataToJSON, bA as OrderItemOriginalDataToJSONTyped, bB as OrderItemStatus, bE as OrderItemStatusFromJSON, bF as OrderItemStatusFromJSONTyped, bC as OrderItemStatusStatusEnum, bG as OrderItemStatusToJSON, bH as OrderItemStatusToJSONTyped, bl as OrderItemToJSON, bm as OrderItemToJSONTyped, bI as OrderOriginalData, bK as OrderOriginalDataFromJSON, bL as OrderOriginalDataFromJSONTyped, bM as OrderOriginalDataToJSON, bN as OrderOriginalDataToJSONTyped, aZ as OrderPaymentMethodEnum, bO as OrderStatus, bV as OrderStatusChange, bY as OrderStatusChangeFromJSON, bZ as OrderStatusChangeFromJSONTyped, n as OrderStatusChangeListParams, bW as OrderStatusChangeStatusEnum, b_ as OrderStatusChangeToJSON, b$ as OrderStatusChangeToJSONTyped, d as OrderStatusChangesResource, bR as OrderStatusFromJSON, bS as OrderStatusFromJSONTyped, bP as OrderStatusStatusEnum, bT as OrderStatusToJSON, bU as OrderStatusToJSONTyped, f as OrderStatusUpdateParams, b1 as OrderToJSON, b2 as OrderToJSONTyped, O as OrdersResource, c0 as PageOfClients, c2 as PageOfClientsFromJSON, c3 as PageOfClientsFromJSONTyped, c4 as PageOfClientsToJSON, c5 as PageOfClientsToJSONTyped, c6 as PageOfInvoices, c8 as PageOfInvoicesFromJSON, c9 as PageOfInvoicesFromJSONTyped, ca as PageOfInvoicesToJSON, cb as PageOfInvoicesToJSONTyped, cc as PageOfOrderComments, ce as PageOfOrderCommentsFromJSON, cf as PageOfOrderCommentsFromJSONTyped, cg as PageOfOrderCommentsToJSON, ch as PageOfOrderCommentsToJSONTyped, ci as PageOfOrderStatusChanges, ck as PageOfOrderStatusChangesFromJSON, cl as PageOfOrderStatusChangesFromJSONTyped, cm as PageOfOrderStatusChangesToJSON, cn as PageOfOrderStatusChangesToJSONTyped, co as PageOfTrackingNumbers, cq as PageOfTrackingNumbersFromJSON, cr as PageOfTrackingNumbersFromJSONTyped, cs as PageOfTrackingNumbersToJSON, ct as PageOfTrackingNumbersToJSONTyped, cu as PostOrderCommentResponse, cw as PostOrderCommentResponseFromJSON, cx as PostOrderCommentResponseFromJSONTyped, cy as PostOrderCommentResponseToJSON, cz as PostOrderCommentResponseToJSONTyped, cA as PostOrderResponse, cC as PostOrderResponseFromJSON, cD as PostOrderResponseFromJSONTyped, cE as PostOrderResponseToJSON, cF as PostOrderResponseToJSONTyped, cG as PostOrderStatus, cJ as PostOrderStatusFromJSON, cK as PostOrderStatusFromJSONTyped, cN as PostOrderStatusItem, cQ as PostOrderStatusItemFromJSON, cR as PostOrderStatusItemFromJSONTyped, cO as PostOrderStatusItemStatusEnum, cS as PostOrderStatusItemToJSON, cT as PostOrderStatusItemToJSONTyped, cU as PostOrderStatusResponse, cW as PostOrderStatusResponseFromJSON, cX as PostOrderStatusResponseFromJSONTyped, cY as PostOrderStatusResponseToJSON, cZ as PostOrderStatusResponseToJSONTyped, cH as PostOrderStatusStatusEnum, cL as PostOrderStatusToJSON, cM as PostOrderStatusToJSONTyped, R as RefreshTokenParams, c_ as ReturnLabel, d0 as ReturnLabelFromJSON, d1 as ReturnLabelFromJSONTyped, d2 as ReturnLabelToJSON, d3 as ReturnLabelToJSONTyped, d4 as TrackingNumber, d6 as TrackingNumberFromJSON, d7 as TrackingNumberFromJSONTyped, da as TrackingNumberItem, dc as TrackingNumberItemFromJSON, dd as TrackingNumberItemFromJSONTyped, de as TrackingNumberItemToJSON, df as TrackingNumberItemToJSONTyped, l as TrackingNumberListParams, d8 as TrackingNumberToJSON, d9 as TrackingNumberToJSONTyped, T as TrackingNumbersResource, U as UsersResource, dg as Waybill, dh as WaybillDeliveryMethodEnum, dj as WaybillFromJSON, dk as WaybillFromJSONTyped, dl as WaybillToJSON, dm as WaybillToJSONTyped, t as instanceOfApiV2AuthenticationRefreshTokenPost200Response, z as instanceOfApiV2AuthenticationTokenPost200Response, K as instanceOfAttachment, V as instanceOfBillingAddress, $ as instanceOfClient, a6 as instanceOfCreateOrderComment, ac as instanceOfDeliveryAddress, ai as instanceOfGetApiV2DiscountCodesExternal200Response, ao as instanceOfGetApiV2DiscountCodesExternal200ResponseItemsInner, av as instanceOfInvoice, aB as instanceOfInvoiceItem, aH as instanceOfInvoiceOrder, aN as instanceOfInvoiceOrderItem, aT as instanceOfMe, a_ as instanceOfOrder, b5 as instanceOfOrderCancellationResponse, bc as instanceOfOrderComment, bi as instanceOfOrderItem, bq as instanceOfOrderItemCropData, bw as instanceOfOrderItemOriginalData, bD as instanceOfOrderItemStatus, bJ as instanceOfOrderOriginalData, bQ as instanceOfOrderStatus, bX as instanceOfOrderStatusChange, c1 as instanceOfPageOfClients, c7 as instanceOfPageOfInvoices, cd as instanceOfPageOfOrderComments, cj as instanceOfPageOfOrderStatusChanges, cp as instanceOfPageOfTrackingNumbers, cv as instanceOfPostOrderCommentResponse, cB as instanceOfPostOrderResponse, cI as instanceOfPostOrderStatus, cP as instanceOfPostOrderStatusItem, cV as instanceOfPostOrderStatusResponse, c$ as instanceOfReturnLabel, d5 as instanceOfTrackingNumber, db as instanceOfTrackingNumberItem, di as instanceOfWaybill } from './client-BfIS6ja2.js';
|
|
3
|
+
export { a as DoboxaAPIError, b as DoboxaAuthenticationError, D as DoboxaError, c as DoboxaValidationError, I as InvalidParameter, d as InvalidParameterFromJSON, e as InvalidParameterFromJSONTyped, f as InvalidParameterToJSON, g as InvalidParameterToJSONTyped, h as InvalidRequestDataResponse, k as InvalidRequestDataResponseFromJSON, l as InvalidRequestDataResponseFromJSONTyped, m as InvalidRequestDataResponseToJSON, n as InvalidRequestDataResponseToJSONTyped, S as ServerErrorResponse, q as ServerErrorResponseFromJSON, r as ServerErrorResponseFromJSONTyped, s as ServerErrorResponseToJSON, t as ServerErrorResponseToJSONTyped, i as instanceOfInvalidParameter, j as instanceOfInvalidRequestDataResponse, o as instanceOfServerErrorResponse, p as parseErrorResponse } from './errors-CtijMwu-.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* API V2
|
|
7
|
+
* API V2
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV2AuthenticationRefreshTokenPostRequest
|
|
20
|
+
*/
|
|
21
|
+
interface ApiV2AuthenticationRefreshTokenPostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV2AuthenticationRefreshTokenPostRequest
|
|
26
|
+
*/
|
|
27
|
+
refresh_token?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ApiV2AuthenticationRefreshTokenPostRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
declare function instanceOfApiV2AuthenticationRefreshTokenPostRequest(value: object): value is ApiV2AuthenticationRefreshTokenPostRequest;
|
|
33
|
+
declare function ApiV2AuthenticationRefreshTokenPostRequestFromJSON(json: any): ApiV2AuthenticationRefreshTokenPostRequest;
|
|
34
|
+
declare function ApiV2AuthenticationRefreshTokenPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV2AuthenticationRefreshTokenPostRequest;
|
|
35
|
+
declare function ApiV2AuthenticationRefreshTokenPostRequestToJSON(json: any): ApiV2AuthenticationRefreshTokenPostRequest;
|
|
36
|
+
declare function ApiV2AuthenticationRefreshTokenPostRequestToJSONTyped(value?: ApiV2AuthenticationRefreshTokenPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* API V2
|
|
40
|
+
* API V2
|
|
41
|
+
*
|
|
42
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
46
|
+
* https://openapi-generator.tech
|
|
47
|
+
* Do not edit the class manually.
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @export
|
|
52
|
+
* @interface ApiV2AuthenticationTokenPost401Response
|
|
53
|
+
*/
|
|
54
|
+
interface ApiV2AuthenticationTokenPost401Response {
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof ApiV2AuthenticationTokenPost401Response
|
|
59
|
+
*/
|
|
60
|
+
code?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ApiV2AuthenticationTokenPost401Response
|
|
65
|
+
*/
|
|
66
|
+
message?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the ApiV2AuthenticationTokenPost401Response interface.
|
|
70
|
+
*/
|
|
71
|
+
declare function instanceOfApiV2AuthenticationTokenPost401Response(value: object): value is ApiV2AuthenticationTokenPost401Response;
|
|
72
|
+
declare function ApiV2AuthenticationTokenPost401ResponseFromJSON(json: any): ApiV2AuthenticationTokenPost401Response;
|
|
73
|
+
declare function ApiV2AuthenticationTokenPost401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV2AuthenticationTokenPost401Response;
|
|
74
|
+
declare function ApiV2AuthenticationTokenPost401ResponseToJSON(json: any): ApiV2AuthenticationTokenPost401Response;
|
|
75
|
+
declare function ApiV2AuthenticationTokenPost401ResponseToJSONTyped(value?: ApiV2AuthenticationTokenPost401Response | null, ignoreDiscriminator?: boolean): any;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* API V2
|
|
79
|
+
* API V2
|
|
80
|
+
*
|
|
81
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
85
|
+
* https://openapi-generator.tech
|
|
86
|
+
* Do not edit the class manually.
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @export
|
|
91
|
+
* @interface ApiV2AuthenticationTokenPostRequest
|
|
92
|
+
*/
|
|
93
|
+
interface ApiV2AuthenticationTokenPostRequest {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof ApiV2AuthenticationTokenPostRequest
|
|
98
|
+
*/
|
|
99
|
+
username?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof ApiV2AuthenticationTokenPostRequest
|
|
104
|
+
*/
|
|
105
|
+
password?: string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the ApiV2AuthenticationTokenPostRequest interface.
|
|
109
|
+
*/
|
|
110
|
+
declare function instanceOfApiV2AuthenticationTokenPostRequest(value: object): value is ApiV2AuthenticationTokenPostRequest;
|
|
111
|
+
declare function ApiV2AuthenticationTokenPostRequestFromJSON(json: any): ApiV2AuthenticationTokenPostRequest;
|
|
112
|
+
declare function ApiV2AuthenticationTokenPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV2AuthenticationTokenPostRequest;
|
|
113
|
+
declare function ApiV2AuthenticationTokenPostRequestToJSON(json: any): ApiV2AuthenticationTokenPostRequest;
|
|
114
|
+
declare function ApiV2AuthenticationTokenPostRequestToJSONTyped(value?: ApiV2AuthenticationTokenPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* API V2
|
|
118
|
+
* API V2
|
|
119
|
+
*
|
|
120
|
+
* The version of the OpenAPI document: 1.0-alpha
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
124
|
+
* https://openapi-generator.tech
|
|
125
|
+
* Do not edit the class manually.
|
|
126
|
+
*/
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @export
|
|
130
|
+
* @interface OrderCancellation
|
|
131
|
+
*/
|
|
132
|
+
interface OrderCancellation {
|
|
133
|
+
/**
|
|
134
|
+
* Doboxa order id
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof OrderCancellation
|
|
137
|
+
*/
|
|
138
|
+
order_id: string;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Check if a given object implements the OrderCancellation interface.
|
|
142
|
+
*/
|
|
143
|
+
declare function instanceOfOrderCancellation(value: object): value is OrderCancellation;
|
|
144
|
+
declare function OrderCancellationFromJSON(json: any): OrderCancellation;
|
|
145
|
+
declare function OrderCancellationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCancellation;
|
|
146
|
+
declare function OrderCancellationToJSON(json: any): OrderCancellation;
|
|
147
|
+
declare function OrderCancellationToJSONTyped(value?: OrderCancellation | null, ignoreDiscriminator?: boolean): any;
|
|
148
|
+
|
|
149
|
+
type OrderStatusEnum = 'new' | 'wait_for_payment' | 'paid' | 'in_progress' | 'ready_to_be_sent' | 'sent' | 'cancelled' | 'hold' | 'refund';
|
|
150
|
+
type InvoiceStateEnum = 'PAID' | 'UNPAID';
|
|
151
|
+
type AuthorTypeEnum = 'client' | 'support';
|
|
152
|
+
|
|
153
|
+
export { type ApiV2AuthenticationRefreshTokenPostRequest, ApiV2AuthenticationRefreshTokenPostRequestFromJSON, ApiV2AuthenticationRefreshTokenPostRequestFromJSONTyped, ApiV2AuthenticationRefreshTokenPostRequestToJSON, ApiV2AuthenticationRefreshTokenPostRequestToJSONTyped, type ApiV2AuthenticationTokenPost401Response, ApiV2AuthenticationTokenPost401ResponseFromJSON, ApiV2AuthenticationTokenPost401ResponseFromJSONTyped, ApiV2AuthenticationTokenPost401ResponseToJSON, ApiV2AuthenticationTokenPost401ResponseToJSONTyped, type ApiV2AuthenticationTokenPostRequest, ApiV2AuthenticationTokenPostRequestFromJSON, ApiV2AuthenticationTokenPostRequestFromJSONTyped, ApiV2AuthenticationTokenPostRequestToJSON, ApiV2AuthenticationTokenPostRequestToJSONTyped, type AuthorTypeEnum, Doboxa, type InvoiceStateEnum, type OrderCancellation, OrderCancellationFromJSON, OrderCancellationFromJSONTyped, OrderCancellationToJSON, OrderCancellationToJSONTyped, type OrderStatusEnum, Doboxa as default, instanceOfApiV2AuthenticationRefreshTokenPostRequest, instanceOfApiV2AuthenticationTokenPost401Response, instanceOfApiV2AuthenticationTokenPostRequest, instanceOfOrderCancellation };
|