doboxa-js 1.0.1 → 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.
Files changed (56) hide show
  1. package/README.md +79 -72
  2. package/dist/chunk-CGJD4ZO5.mjs +107 -0
  3. package/dist/chunk-CGJD4ZO5.mjs.map +1 -0
  4. package/dist/chunk-WGEOQ35B.mjs +3097 -0
  5. package/dist/chunk-WGEOQ35B.mjs.map +1 -0
  6. package/dist/client-BfIS6ja2.d.mts +2759 -0
  7. package/dist/client-BfIS6ja2.d.ts +2759 -0
  8. package/dist/client.d.mts +1 -0
  9. package/dist/client.d.ts +1 -0
  10. package/dist/client.js +2066 -0
  11. package/dist/client.js.map +1 -0
  12. package/dist/client.mjs +8 -0
  13. package/dist/client.mjs.map +1 -0
  14. package/dist/errors-CtijMwu-.d.mts +161 -0
  15. package/dist/errors-CtijMwu-.d.ts +161 -0
  16. package/dist/errors.d.mts +1 -0
  17. package/dist/errors.d.ts +1 -0
  18. package/dist/errors.js +91 -0
  19. package/dist/errors.js.map +1 -0
  20. package/dist/errors.mjs +15 -0
  21. package/dist/errors.mjs.map +1 -0
  22. package/dist/index.d.mts +153 -0
  23. package/dist/index.d.ts +153 -0
  24. package/dist/index.js +3744 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/index.mjs +719 -0
  27. package/dist/index.mjs.map +1 -0
  28. package/dist/models.d.mts +2 -0
  29. package/dist/models.d.ts +2 -0
  30. package/dist/models.js +1 -0
  31. package/dist/models.js.map +1 -0
  32. package/dist/models.mjs +1 -0
  33. package/dist/models.mjs.map +1 -0
  34. package/package.json +8 -1
  35. package/api-doc.yaml +0 -2013
  36. package/openapi-generator-config.yaml +0 -15
  37. package/openapitools.json +0 -7
  38. package/src/client.ts +0 -99
  39. package/src/errors.ts +0 -90
  40. package/src/http/client.ts +0 -156
  41. package/src/index.ts +0 -31
  42. package/src/models.ts +0 -0
  43. package/src/resources/authentication.ts +0 -73
  44. package/src/resources/clients.ts +0 -32
  45. package/src/resources/discountCodes.ts +0 -32
  46. package/src/resources/invoices.ts +0 -46
  47. package/src/resources/orderComments.ts +0 -38
  48. package/src/resources/orderStatusChanges.ts +0 -38
  49. package/src/resources/orders.ts +0 -123
  50. package/src/resources/trackingNumbers.ts +0 -38
  51. package/src/resources/users.ts +0 -28
  52. package/src/types/index.ts +0 -59
  53. package/src/utils/config.ts +0 -10
  54. package/src/utils/tokenManager.ts +0 -68
  55. package/tsconfig.json +0 -12
  56. package/tsup.config.ts +0 -30
@@ -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 };