@wix/auto_sdk_ecom_order-invoices 1.0.7 → 1.0.9

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 (133) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +5 -0
  11. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js +15 -0
  12. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js.map +1 -0
  13. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +14 -0
  14. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js +114 -0
  15. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js.map +1 -0
  16. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +20 -0
  17. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js +104 -0
  18. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +17 -0
  20. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js +35 -0
  21. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js.map +1 -0
  22. package/build/{ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.d.mts → cjs/src/ecom-orders-v1-invoice-order-invoices.types.d.ts} +42 -42
  23. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js +12 -0
  24. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js.map +1 -0
  25. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +333 -0
  26. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js +215 -0
  27. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +5 -0
  38. package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.js +11 -0
  39. package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.js.map +1 -0
  40. package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +14 -0
  41. package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.js +107 -0
  42. package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.js.map +1 -0
  43. package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +20 -0
  44. package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.js +74 -0
  45. package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +1 -0
  46. package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +17 -0
  47. package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.js +27 -0
  48. package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.js.map +1 -0
  49. package/build/{ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.d.ts → es/src/ecom-orders-v1-invoice-order-invoices.types.d.ts} +42 -42
  50. package/build/es/src/ecom-orders-v1-invoice-order-invoices.types.js +9 -0
  51. package/build/es/src/ecom-orders-v1-invoice-order-invoices.types.js.map +1 -0
  52. package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +333 -0
  53. package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.js +185 -0
  54. package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +11 -0
  65. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js +15 -0
  66. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js.map +1 -0
  67. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +14 -0
  68. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js +114 -0
  69. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js.map +1 -0
  70. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +20 -0
  71. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js +104 -0
  72. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +1 -0
  73. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +45 -0
  74. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js +35 -0
  75. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js.map +1 -0
  76. package/build/internal/{ecom-orders-v1-invoice-order-invoices.universal-CZFxrTkE.d.mts → cjs/src/ecom-orders-v1-invoice-order-invoices.types.d.ts} +42 -42
  77. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js +12 -0
  78. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js.map +1 -0
  79. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +396 -0
  80. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js +215 -0
  81. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +11 -0
  92. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.js +11 -0
  93. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.js.map +1 -0
  94. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +14 -0
  95. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.js +107 -0
  96. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.js.map +1 -0
  97. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +20 -0
  98. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.js +74 -0
  99. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +1 -0
  100. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +45 -0
  101. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.js +27 -0
  102. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.js.map +1 -0
  103. package/build/internal/{ecom-orders-v1-invoice-order-invoices.universal-CZFxrTkE.d.ts → es/src/ecom-orders-v1-invoice-order-invoices.types.d.ts} +42 -42
  104. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.types.js +9 -0
  105. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.types.js.map +1 -0
  106. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +396 -0
  107. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.js +185 -0
  108. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.d.mts +0 -19
  111. package/build/index.d.ts +0 -19
  112. package/build/index.js +0 -284
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -256
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -53
  117. package/build/internal/index.d.ts +0 -53
  118. package/build/internal/index.js +0 -284
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -256
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.d.mts +0 -127
  123. package/build/internal/meta.d.ts +0 -127
  124. package/build/internal/meta.js +0 -209
  125. package/build/internal/meta.js.map +0 -1
  126. package/build/internal/meta.mjs +0 -179
  127. package/build/internal/meta.mjs.map +0 -1
  128. package/build/meta.d.mts +0 -127
  129. package/build/meta.d.ts +0 -127
  130. package/build/meta.js +0 -209
  131. package/build/meta.js.map +0 -1
  132. package/build/meta.mjs +0 -179
  133. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.addInvoiceToOrder = exports.bulkGenerateInvoices = exports.generateInvoice = exports.listInvoicesForMultipleOrders = exports.__metadata = void 0;
4
+ const ecom_orders_v1_invoice_order_invoices_universal_js_1 = require("./ecom-orders-v1-invoice-order-invoices.universal.js");
5
+ exports.__metadata = { PACKAGE_NAME: '@wix/ecom' };
6
+ function listInvoicesForMultipleOrders(httpClient) {
7
+ return (orderIds) => (0, ecom_orders_v1_invoice_order_invoices_universal_js_1.listInvoicesForMultipleOrders)(orderIds,
8
+ // @ts-ignore
9
+ { httpClient });
10
+ }
11
+ exports.listInvoicesForMultipleOrders = listInvoicesForMultipleOrders;
12
+ /** @internal */
13
+ function generateInvoice(httpClient) {
14
+ return (orderId) => (0, ecom_orders_v1_invoice_order_invoices_universal_js_1.generateInvoice)(orderId,
15
+ // @ts-ignore
16
+ { httpClient });
17
+ }
18
+ exports.generateInvoice = generateInvoice;
19
+ /** @internal */
20
+ function bulkGenerateInvoices(httpClient) {
21
+ return (orderIds) => (0, ecom_orders_v1_invoice_order_invoices_universal_js_1.bulkGenerateInvoices)(orderIds,
22
+ // @ts-ignore
23
+ { httpClient });
24
+ }
25
+ exports.bulkGenerateInvoices = bulkGenerateInvoices;
26
+ /** @internal */
27
+ function addInvoiceToOrder(httpClient) {
28
+ return (orderId, invoiceInfo) => (0, ecom_orders_v1_invoice_order_invoices_universal_js_1.addInvoiceToOrder)(orderId, invoiceInfo,
29
+ // @ts-ignore
30
+ { httpClient });
31
+ }
32
+ exports.addInvoiceToOrder = addInvoiceToOrder;
33
+ var ecom_orders_v1_invoice_order_invoices_universal_js_2 = require("./ecom-orders-v1-invoice-order-invoices.universal.js");
34
+ Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return ecom_orders_v1_invoice_order_invoices_universal_js_2.WebhookIdentityType; } });
35
+ //# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.public.js","sourceRoot":"","sources":["../../../../src/ecom-orders-v1-invoice-order-invoices.public.ts"],"names":[],"mappings":";;;AACA,6HAU8D;AAEjD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,6BAA6B,CAC3C,UAAsB;IAEtB,OAAO,CAAC,QAAkB,EAAE,EAAE,CAC5B,IAAA,kFAAsC,EACpC,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,sEASC;AAaD,gBAAgB;AAChB,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,OAAe,EAAE,EAAE,CACzB,IAAA,oEAAwB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0CASC;AAUD,gBAAgB;AAChB,SAAgB,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CAAC,QAAkB,EAAE,EAAE,CAC5B,IAAA,yEAA6B,EAC3B,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,oDASC;AAUD,gBAAgB;AAChB,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CACL,OAAe,EACf,WAAuD,EACvD,EAAE,CACF,IAAA,sEAA0B,EACxB,OAAO,EACP,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,8CAaC;AAWD,2HAkC8D;AAD5D,yJAAA,mBAAmB,OAAA"}
@@ -1,10 +1,10 @@
1
- interface Invoice {
1
+ export interface Invoice {
2
2
  /** Invoice ID. */
3
- _id?: string;
3
+ id?: string;
4
4
  /** ID of the app that set the invoice. */
5
5
  appId?: string;
6
6
  }
7
- interface ListInvoicesForSingleOrderRequest {
7
+ export interface ListInvoicesForSingleOrderRequest {
8
8
  /**
9
9
  * Order ID.
10
10
  * @minLength 1
@@ -12,11 +12,11 @@ interface ListInvoicesForSingleOrderRequest {
12
12
  */
13
13
  orderId?: string;
14
14
  }
15
- interface ListInvoicesForSingleOrderResponse {
15
+ export interface ListInvoicesForSingleOrderResponse {
16
16
  /** List of invoices. */
17
17
  invoices?: Invoice[];
18
18
  }
19
- interface ListInvoicesForMultipleOrdersRequest {
19
+ export interface ListInvoicesForMultipleOrdersRequest {
20
20
  /**
21
21
  * Order IDs for which to retrieve invoices.
22
22
  * @maxSize 100
@@ -25,11 +25,11 @@ interface ListInvoicesForMultipleOrdersRequest {
25
25
  */
26
26
  orderIds: string[];
27
27
  }
28
- interface ListInvoicesForMultipleOrdersResponse {
28
+ export interface ListInvoicesForMultipleOrdersResponse {
29
29
  /** List of order IDs and their associated invoices. */
30
30
  invoicesForOrder?: InvoicesForOrder[];
31
31
  }
32
- interface InvoicesForOrder {
32
+ export interface InvoicesForOrder {
33
33
  /** Order ID. */
34
34
  orderId?: string;
35
35
  /**
@@ -38,7 +38,7 @@ interface InvoicesForOrder {
38
38
  */
39
39
  invoicesInfo?: Invoice[];
40
40
  }
41
- interface GenerateInvoiceRequest {
41
+ export interface GenerateInvoiceRequest {
42
42
  /**
43
43
  * Order ID.
44
44
  * @minLength 1
@@ -46,11 +46,11 @@ interface GenerateInvoiceRequest {
46
46
  */
47
47
  orderId: string;
48
48
  }
49
- interface GenerateInvoiceResponse {
49
+ export interface GenerateInvoiceResponse {
50
50
  /** Invoice ID. */
51
51
  invoiceId?: string;
52
52
  }
53
- interface BulkGenerateInvoicesRequest {
53
+ export interface BulkGenerateInvoicesRequest {
54
54
  /**
55
55
  * Order IDs.
56
56
  * @minSize 1
@@ -60,17 +60,17 @@ interface BulkGenerateInvoicesRequest {
60
60
  */
61
61
  orderIds: string[];
62
62
  }
63
- interface BulkGenerateInvoicesResponse {
63
+ export interface BulkGenerateInvoicesResponse {
64
64
  results?: BulkInvoiceResult[];
65
65
  bulkActionMetadata?: BulkActionMetadata;
66
66
  }
67
- interface BulkInvoiceResult {
67
+ export interface BulkInvoiceResult {
68
68
  itemMetadata?: ItemMetadata;
69
69
  item?: InvoiceForOrder;
70
70
  }
71
- interface ItemMetadata {
71
+ export interface ItemMetadata {
72
72
  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
73
- _id?: string | null;
73
+ id?: string | null;
74
74
  /** Index of the item within the request array. Allows for correlation between request and response items. */
75
75
  originalIndex?: number;
76
76
  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
@@ -78,7 +78,7 @@ interface ItemMetadata {
78
78
  /** Details about the error in case of failure. */
79
79
  error?: ApplicationError;
80
80
  }
81
- interface ApplicationError {
81
+ export interface ApplicationError {
82
82
  /** Error code. */
83
83
  code?: string;
84
84
  /** Description of the error. */
@@ -86,13 +86,13 @@ interface ApplicationError {
86
86
  /** Data related to the error. */
87
87
  data?: Record<string, any> | null;
88
88
  }
89
- interface InvoiceForOrder {
89
+ export interface InvoiceForOrder {
90
90
  /** Order ID. */
91
91
  orderId?: string;
92
92
  /** Invoice ID. */
93
93
  invoiceId?: string;
94
94
  }
95
- interface BulkActionMetadata {
95
+ export interface BulkActionMetadata {
96
96
  /** Number of items that were successfully processed. */
97
97
  totalSuccesses?: number;
98
98
  /** Number of items that couldn't be processed. */
@@ -100,7 +100,7 @@ interface BulkActionMetadata {
100
100
  /** Number of failures without details because detailed failure threshold was exceeded. */
101
101
  undetailedFailures?: number;
102
102
  }
103
- interface AddInvoiceToOrderRequest {
103
+ export interface AddInvoiceToOrderRequest {
104
104
  /**
105
105
  * Order ID.
106
106
  * @minLength 1
@@ -110,11 +110,11 @@ interface AddInvoiceToOrderRequest {
110
110
  /** Invoice info. */
111
111
  invoiceInfo: Invoice;
112
112
  }
113
- interface AddInvoiceToOrderResponse {
113
+ export interface AddInvoiceToOrderResponse {
114
114
  /** List of order invoices. */
115
115
  orderInvoices?: Invoice[];
116
116
  }
117
- interface DomainEvent extends DomainEventBodyOneOf {
117
+ export interface DomainEvent extends DomainEventBodyOneOf {
118
118
  createdEvent?: EntityCreatedEvent;
119
119
  updatedEvent?: EntityUpdatedEvent;
120
120
  deletedEvent?: EntityDeletedEvent;
@@ -123,7 +123,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
123
123
  * Unique event ID.
124
124
  * Allows clients to ignore duplicate webhooks.
125
125
  */
126
- _id?: string;
126
+ id?: string;
127
127
  /**
128
128
  * Assumes actions are also always typed to an entity_type
129
129
  * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
@@ -157,36 +157,38 @@ interface DomainEvent extends DomainEventBodyOneOf {
157
157
  entityEventSequence?: string | null;
158
158
  }
159
159
  /** @oneof */
160
- interface DomainEventBodyOneOf {
160
+ export interface DomainEventBodyOneOf {
161
161
  createdEvent?: EntityCreatedEvent;
162
162
  updatedEvent?: EntityUpdatedEvent;
163
163
  deletedEvent?: EntityDeletedEvent;
164
164
  actionEvent?: ActionEvent;
165
165
  }
166
- interface EntityCreatedEvent {
167
- entity?: string;
166
+ export interface EntityCreatedEvent {
167
+ entityAsJson?: string;
168
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
169
+ restoreInfo?: RestoreInfo;
168
170
  }
169
- interface RestoreInfo {
171
+ export interface RestoreInfo {
170
172
  deletedDate?: Date | null;
171
173
  }
172
- interface EntityUpdatedEvent {
174
+ export interface EntityUpdatedEvent {
173
175
  /**
174
176
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
175
177
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
176
178
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
177
179
  */
178
- currentEntity?: string;
180
+ currentEntityAsJson?: string;
179
181
  }
180
- interface EntityDeletedEvent {
182
+ export interface EntityDeletedEvent {
181
183
  /** Entity that was deleted */
182
- deletedEntity?: string | null;
184
+ deletedEntityAsJson?: string | null;
183
185
  }
184
- interface ActionEvent {
185
- body?: string;
186
+ export interface ActionEvent {
187
+ bodyAsJson?: string;
186
188
  }
187
- interface Empty {
189
+ export interface Empty {
188
190
  }
189
- interface GetOrderInvoiceRequest {
191
+ export interface GetOrderInvoiceRequest {
190
192
  /**
191
193
  * Invoice ID.
192
194
  * @minLength 1
@@ -194,7 +196,7 @@ interface GetOrderInvoiceRequest {
194
196
  */
195
197
  invoiceId?: string;
196
198
  }
197
- interface GetOrderInvoiceResponse {
199
+ export interface GetOrderInvoiceResponse {
198
200
  /**
199
201
  * Order ID.
200
202
  * @minLength 1
@@ -204,7 +206,7 @@ interface GetOrderInvoiceResponse {
204
206
  /** Invoice info. */
205
207
  invoiceInfo?: Invoice;
206
208
  }
207
- interface GenerateInvoiceWithNumberRequest {
209
+ export interface GenerateInvoiceWithNumberRequest {
208
210
  /**
209
211
  * Order ID.
210
212
  * @minLength 1
@@ -219,7 +221,7 @@ interface GenerateInvoiceWithNumberRequest {
219
221
  /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
220
222
  issueDate?: Date | null;
221
223
  }
222
- interface GenerateInvoiceWithNumberResponse {
224
+ export interface GenerateInvoiceWithNumberResponse {
223
225
  /**
224
226
  * Invoice ID.
225
227
  * @minLength 1
@@ -227,7 +229,7 @@ interface GenerateInvoiceWithNumberResponse {
227
229
  */
228
230
  invoiceId?: string;
229
231
  }
230
- interface MessageEnvelope {
232
+ export interface MessageEnvelope {
231
233
  /**
232
234
  * App instance ID.
233
235
  * @format GUID
@@ -243,7 +245,7 @@ interface MessageEnvelope {
243
245
  /** Stringify payload. */
244
246
  data?: string;
245
247
  }
246
- interface IdentificationData extends IdentificationDataIdOneOf {
248
+ export interface IdentificationData extends IdentificationDataIdOneOf {
247
249
  /**
248
250
  * ID of a site visitor that has not logged in to the site.
249
251
  * @format GUID
@@ -268,7 +270,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
268
270
  identityType?: WebhookIdentityType;
269
271
  }
270
272
  /** @oneof */
271
- interface IdentificationDataIdOneOf {
273
+ export interface IdentificationDataIdOneOf {
272
274
  /**
273
275
  * ID of a site visitor that has not logged in to the site.
274
276
  * @format GUID
@@ -290,12 +292,10 @@ interface IdentificationDataIdOneOf {
290
292
  */
291
293
  appId?: string;
292
294
  }
293
- declare enum WebhookIdentityType {
295
+ export declare enum WebhookIdentityType {
294
296
  UNKNOWN = "UNKNOWN",
295
297
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
296
298
  MEMBER = "MEMBER",
297
299
  WIX_USER = "WIX_USER",
298
300
  APP = "APP"
299
301
  }
300
-
301
- export { type AddInvoiceToOrderResponse as A, type BulkGenerateInvoicesResponse as B, type DomainEvent as D, type EntityCreatedEvent as E, type GenerateInvoiceResponse as G, type Invoice as I, type ListInvoicesForMultipleOrdersResponse as L, type MessageEnvelope as M, type RestoreInfo as R, WebhookIdentityType as W, type ListInvoicesForSingleOrderRequest as a, type ListInvoicesForSingleOrderResponse as b, type ListInvoicesForMultipleOrdersRequest as c, type InvoicesForOrder as d, type GenerateInvoiceRequest as e, type BulkGenerateInvoicesRequest as f, type BulkInvoiceResult as g, type ItemMetadata as h, type ApplicationError as i, type InvoiceForOrder as j, type BulkActionMetadata as k, type AddInvoiceToOrderRequest as l, type DomainEventBodyOneOf as m, type EntityUpdatedEvent as n, type EntityDeletedEvent as o, type ActionEvent as p, type Empty as q, type GetOrderInvoiceRequest as r, type GetOrderInvoiceResponse as s, type GenerateInvoiceWithNumberRequest as t, type GenerateInvoiceWithNumberResponse as u, type IdentificationData as v, type IdentificationDataIdOneOf as w };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = void 0;
4
+ var WebhookIdentityType;
5
+ (function (WebhookIdentityType) {
6
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
7
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
8
+ WebhookIdentityType["MEMBER"] = "MEMBER";
9
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
10
+ WebhookIdentityType["APP"] = "APP";
11
+ })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
12
+ //# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.types.js","sourceRoot":"","sources":["../../../../src/ecom-orders-v1-invoice-order-invoices.types.ts"],"names":[],"mappings":";;;AAqUA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}