@teemill/platform 0.23.0 → 0.26.0

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.
@@ -26,16 +26,22 @@ const apiInstance = new CustomersApi(configuration);
26
26
 
27
27
  let project: string; //Project unique identifier (default to undefined)
28
28
  let platformId: string; //The platform identifier (default to undefined)
29
+ let countries: Array<string>; //Filter customers by country code (optional) (default to undefined)
30
+ let gender: 'male' | 'female'; //Filter customers by gender equal to the value provided (optional) (default to undefined)
29
31
  let totalOrderCount: number; //Filter customers by total order count equal to the value provided (optional) (default to undefined)
32
+ let refundedOrderCount: number; //Filter customers by refunded order count equal to the value provided (optional) (default to undefined)
30
33
  let lifetimeValue: number; //Filter customers by lifetime value less than or equal to the value provided (optional) (default to undefined)
31
- let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
34
+ let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+refundedOrderCount' | '-refundedOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
32
35
  let lastPurchasedStart: string; //Start of date range to filter customers by last purchase date (optional) (default to undefined)
33
36
  let lastPurchasedEnd: string; //End of date range to filter customers by last purchase date (optional) (default to undefined)
34
37
 
35
38
  const { status, data } = await apiInstance.exportCustomers(
36
39
  project,
37
40
  platformId,
41
+ countries,
42
+ gender,
38
43
  totalOrderCount,
44
+ refundedOrderCount,
39
45
  lifetimeValue,
40
46
  sortBy,
41
47
  lastPurchasedStart,
@@ -49,9 +55,12 @@ const { status, data } = await apiInstance.exportCustomers(
49
55
  |------------- | ------------- | ------------- | -------------|
50
56
  | **project** | [**string**] | Project unique identifier | defaults to undefined|
51
57
  | **platformId** | [**string**] | The platform identifier | defaults to undefined|
58
+ | **countries** | **Array&lt;string&gt;** | Filter customers by country code | (optional) defaults to undefined|
59
+ | **gender** | [**&#39;male&#39; | &#39;female&#39;**]**Array<&#39;male&#39; &#124; &#39;female&#39;>** | Filter customers by gender equal to the value provided | (optional) defaults to undefined|
52
60
  | **totalOrderCount** | [**number**] | Filter customers by total order count equal to the value provided | (optional) defaults to undefined|
61
+ | **refundedOrderCount** | [**number**] | Filter customers by refunded order count equal to the value provided | (optional) defaults to undefined|
53
62
  | **lifetimeValue** | [**number**] | Filter customers by lifetime value less than or equal to the value provided | (optional) defaults to undefined|
54
- | **sortBy** | **Array<&#39;+lifetimeValue&#39; &#124; &#39;-lifetimeValue&#39; &#124; &#39;+totalOrderCount&#39; &#124; &#39;-totalOrderCount&#39; &#124; &#39;+lastPurchased&#39; &#124; &#39;-lastPurchased&#39;>** | An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending. | (optional) defaults to undefined|
63
+ | **sortBy** | **Array<&#39;+lifetimeValue&#39; &#124; &#39;-lifetimeValue&#39; &#124; &#39;+totalOrderCount&#39; &#124; &#39;-totalOrderCount&#39; &#124; &#39;+refundedOrderCount&#39; &#124; &#39;-refundedOrderCount&#39; &#124; &#39;+lastPurchased&#39; &#124; &#39;-lastPurchased&#39;>** | An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending. | (optional) defaults to undefined|
55
64
  | **lastPurchasedStart** | [**string**] | Start of date range to filter customers by last purchase date | (optional) defaults to undefined|
56
65
  | **lastPurchasedEnd** | [**string**] | End of date range to filter customers by last purchase date | (optional) defaults to undefined|
57
66
 
@@ -165,8 +174,11 @@ let platformId: string; //The platform identifier (default to undefined)
165
174
  let pageToken: number; //Page reference token (optional) (default to 1)
166
175
  let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 100)
167
176
  let search: string; //Search term to filter results (optional) (default to undefined)
168
- let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
177
+ let sortBy: Array<'+lifetimeValue' | '-lifetimeValue' | '+totalOrderCount' | '-totalOrderCount' | '+refundedOrderCount' | '-refundedOrderCount' | '+lastPurchased' | '-lastPurchased'>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
178
+ let countries: Array<string>; //Filter customers by country code (optional) (default to undefined)
179
+ let gender: 'male' | 'female'; //Filter customers by gender equal to the value provided (optional) (default to undefined)
169
180
  let totalOrderCount: number; //Filter customers by total order count equal to the value provided (optional) (default to undefined)
181
+ let refundedOrderCount: number; //Filter customers by refunded order count equal to the value provided (optional) (default to undefined)
170
182
  let lifetimeValue: number; //Filter customers by lifetime value less than or equal to the value provided (optional) (default to undefined)
171
183
  let lastPurchasedStart: string; //Start of date range to filter customers by last purchase date (optional) (default to undefined)
172
184
  let lastPurchasedEnd: string; //End of date range to filter customers by last purchase date (optional) (default to undefined)
@@ -178,7 +190,10 @@ const { status, data } = await apiInstance.listCustomers(
178
190
  pageSize,
179
191
  search,
180
192
  sortBy,
193
+ countries,
194
+ gender,
181
195
  totalOrderCount,
196
+ refundedOrderCount,
182
197
  lifetimeValue,
183
198
  lastPurchasedStart,
184
199
  lastPurchasedEnd
@@ -194,8 +209,11 @@ const { status, data } = await apiInstance.listCustomers(
194
209
  | **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
195
210
  | **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
196
211
  | **search** | [**string**] | Search term to filter results | (optional) defaults to undefined|
197
- | **sortBy** | **Array<&#39;+lifetimeValue&#39; &#124; &#39;-lifetimeValue&#39; &#124; &#39;+totalOrderCount&#39; &#124; &#39;-totalOrderCount&#39; &#124; &#39;+lastPurchased&#39; &#124; &#39;-lastPurchased&#39;>** | An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending. | (optional) defaults to undefined|
212
+ | **sortBy** | **Array<&#39;+lifetimeValue&#39; &#124; &#39;-lifetimeValue&#39; &#124; &#39;+totalOrderCount&#39; &#124; &#39;-totalOrderCount&#39; &#124; &#39;+refundedOrderCount&#39; &#124; &#39;-refundedOrderCount&#39; &#124; &#39;+lastPurchased&#39; &#124; &#39;-lastPurchased&#39;>** | An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending. | (optional) defaults to undefined|
213
+ | **countries** | **Array&lt;string&gt;** | Filter customers by country code | (optional) defaults to undefined|
214
+ | **gender** | [**&#39;male&#39; | &#39;female&#39;**]**Array<&#39;male&#39; &#124; &#39;female&#39;>** | Filter customers by gender equal to the value provided | (optional) defaults to undefined|
198
215
  | **totalOrderCount** | [**number**] | Filter customers by total order count equal to the value provided | (optional) defaults to undefined|
216
+ | **refundedOrderCount** | [**number**] | Filter customers by refunded order count equal to the value provided | (optional) defaults to undefined|
199
217
  | **lifetimeValue** | [**number**] | Filter customers by lifetime value less than or equal to the value provided | (optional) defaults to undefined|
200
218
  | **lastPurchasedStart** | [**string**] | Start of date range to filter customers by last purchase date | (optional) defaults to undefined|
201
219
  | **lastPurchasedEnd** | [**string**] | End of date range to filter customers by last purchase date | (optional) defaults to undefined|
@@ -8,6 +8,7 @@ All URIs are relative to *https://localhost:8080*
8
8
  |[**getCustomerEnquiry**](#getcustomerenquiry) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId} | Get customer enquiry|
9
9
  |[**listCustomerEnquiries**](#listcustomerenquiries) | **GET** /v1/platform/{platformId}/customers/enquiries | List customer enquiries|
10
10
  |[**listCustomerEnquiryLogs**](#listcustomerenquirylogs) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs | List customer enquiry Logs|
11
+ |[**updateCustomerEnquiry**](#updatecustomerenquiry) | **PATCH** /v1/platform/{platformId}/customers/enquiries/{enquiryId} | Update customer enquiry|
11
12
 
12
13
  # **createChatChannel**
13
14
  > CreateChatChannel200Response createChatChannel()
@@ -265,3 +266,69 @@ const { status, data } = await apiInstance.listCustomerEnquiryLogs(
265
266
 
266
267
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
267
268
 
269
+ # **updateCustomerEnquiry**
270
+ > Enquiry updateCustomerEnquiry(updateCustomerEnquiryRequest)
271
+
272
+ Update a customer enquiry
273
+
274
+ ### Example
275
+
276
+ ```typescript
277
+ import {
278
+ EnquiriesApi,
279
+ Configuration,
280
+ UpdateCustomerEnquiryRequest
281
+ } from '@teemill/platform';
282
+
283
+ const configuration = new Configuration();
284
+ const apiInstance = new EnquiriesApi(configuration);
285
+
286
+ let project: string; //Project unique identifier (default to undefined)
287
+ let platformId: string; //The platform identifier (default to undefined)
288
+ let enquiryId: string; //The enquiry identifier (default to undefined)
289
+ let updateCustomerEnquiryRequest: UpdateCustomerEnquiryRequest; //Enquiry update
290
+
291
+ const { status, data } = await apiInstance.updateCustomerEnquiry(
292
+ project,
293
+ platformId,
294
+ enquiryId,
295
+ updateCustomerEnquiryRequest
296
+ );
297
+ ```
298
+
299
+ ### Parameters
300
+
301
+ |Name | Type | Description | Notes|
302
+ |------------- | ------------- | ------------- | -------------|
303
+ | **updateCustomerEnquiryRequest** | **UpdateCustomerEnquiryRequest**| Enquiry update | |
304
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
305
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
306
+ | **enquiryId** | [**string**] | The enquiry identifier | defaults to undefined|
307
+
308
+
309
+ ### Return type
310
+
311
+ **Enquiry**
312
+
313
+ ### Authorization
314
+
315
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
316
+
317
+ ### HTTP request headers
318
+
319
+ - **Content-Type**: application/json
320
+ - **Accept**: application/json
321
+
322
+
323
+ ### HTTP response details
324
+ | Status code | Description | Response headers |
325
+ |-------------|-------------|------------------|
326
+ |**200** | Enquiry updated successfully | - |
327
+ |**400** | Failed validation | - |
328
+ |**401** | Not authorised to access this resource | - |
329
+ |**403** | Refuse to authorize | - |
330
+ |**404** | Resource not found | - |
331
+ |**500** | Unknown server error | - |
332
+
333
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
334
+
package/docs/Enquiry.md CHANGED
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
  **read** | **boolean** | | [default to undefined]
19
19
  **extraInputs** | [**Array&lt;EnquiryExtraInputsInner&gt;**](EnquiryExtraInputsInner.md) | | [default to undefined]
20
20
  **chatChannelRef** | **string** | Reference to the chat channel resource | [optional] [default to undefined]
21
+ **owner** | **string** | The unique id of the user who owns the enquiry | [default to undefined]
21
22
 
22
23
  ## Example
23
24
 
@@ -38,6 +39,7 @@ const instance: Enquiry = {
38
39
  read,
39
40
  extraInputs,
40
41
  chatChannelRef,
42
+ owner,
41
43
  };
42
44
  ```
43
45
 
package/docs/Order.md CHANGED
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
25
25
  **statusHistory** | [**Array&lt;StatusHistoryItem&gt;**](StatusHistoryItem.md) | | [optional] [default to undefined]
26
26
  **project** | [**Project**](Project.md) | | [default to undefined]
27
27
  **paymentAttempts** | [**Array&lt;PaymentAttempt&gt;**](PaymentAttempt.md) | | [optional] [default to undefined]
28
+ **integrationType** | **string** | The integration type of the order, e.g. \&quot;website\&quot; or \&quot;shopify\&quot; | [optional] [default to undefined]
28
29
 
29
30
  ## Example
30
31
 
@@ -52,6 +53,7 @@ const instance: Order = {
52
53
  statusHistory,
53
54
  project,
54
55
  paymentAttempts,
56
+ integrationType,
55
57
  };
56
58
  ```
57
59
 
package/docs/OrdersApi.md CHANGED
@@ -7,9 +7,11 @@ All URIs are relative to *https://localhost:8080*
7
7
  |[**exportOrders**](#exportorders) | **GET** /v1/platform/{platformId}/orders/export | Export orders|
8
8
  |[**getFulfillment**](#getfulfillment) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Get fulfillment|
9
9
  |[**getOrder**](#getorder) | **GET** /v1/platform/{platformId}/orders/{orderId} | Get order|
10
+ |[**getOrderReceipt**](#getorderreceipt) | **GET** /v1/platform/{platformId}/orders/{orderId}/receipt | Get order receipt|
10
11
  |[**listAvailableFulfillers**](#listavailablefulfillers) | **GET** /v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers | List available fulfillers|
11
12
  |[**listOrders**](#listorders) | **GET** /v1/platform/{platformId}/orders | List orders|
12
13
  |[**retryPlatformPayment**](#retryplatformpayment) | **POST** /v1/platform/{platformId}/orders/{orderId}/retryPlatformPayment | Retry|
14
+ |[**sendOrderReceipt**](#sendorderreceipt) | **POST** /v1/platform/{platformId}/orders/{orderId}/receipt/send | Send order receipt|
13
15
  |[**updateFulfillment**](#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment|
14
16
 
15
17
  # **exportOrders**
@@ -204,6 +206,68 @@ const { status, data } = await apiInstance.getOrder(
204
206
 
205
207
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
206
208
 
209
+ # **getOrderReceipt**
210
+ > string getOrderReceipt()
211
+
212
+ Get an order receipt for a platform by a given order ID.
213
+
214
+ ### Example
215
+
216
+ ```typescript
217
+ import {
218
+ OrdersApi,
219
+ Configuration
220
+ } from '@teemill/platform';
221
+
222
+ const configuration = new Configuration();
223
+ const apiInstance = new OrdersApi(configuration);
224
+
225
+ let project: string; //Project unique identifier (default to undefined)
226
+ let platformId: string; //The platform identifier (default to undefined)
227
+ let orderId: string; //The order identifier (default to undefined)
228
+
229
+ const { status, data } = await apiInstance.getOrderReceipt(
230
+ project,
231
+ platformId,
232
+ orderId
233
+ );
234
+ ```
235
+
236
+ ### Parameters
237
+
238
+ |Name | Type | Description | Notes|
239
+ |------------- | ------------- | ------------- | -------------|
240
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
241
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
242
+ | **orderId** | [**string**] | The order identifier | defaults to undefined|
243
+
244
+
245
+ ### Return type
246
+
247
+ **string**
248
+
249
+ ### Authorization
250
+
251
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
252
+
253
+ ### HTTP request headers
254
+
255
+ - **Content-Type**: Not defined
256
+ - **Accept**: text/html, application/json
257
+
258
+
259
+ ### HTTP response details
260
+ | Status code | Description | Response headers |
261
+ |-------------|-------------|------------------|
262
+ |**200** | Returns the order receipt as an HTML page | - |
263
+ |**400** | Failed validation | - |
264
+ |**401** | Not authorised to access this resource | - |
265
+ |**403** | Refuse to authorize | - |
266
+ |**404** | Resource not found | - |
267
+ |**500** | Unknown server error | - |
268
+
269
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
270
+
207
271
  # **listAvailableFulfillers**
208
272
  > FulfillersResponse listAvailableFulfillers()
209
273
 
@@ -405,6 +469,68 @@ const { status, data } = await apiInstance.retryPlatformPayment(
405
469
 
406
470
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
407
471
 
472
+ # **sendOrderReceipt**
473
+ > sendOrderReceipt()
474
+
475
+ Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
476
+
477
+ ### Example
478
+
479
+ ```typescript
480
+ import {
481
+ OrdersApi,
482
+ Configuration
483
+ } from '@teemill/platform';
484
+
485
+ const configuration = new Configuration();
486
+ const apiInstance = new OrdersApi(configuration);
487
+
488
+ let project: string; //Project unique identifier (default to undefined)
489
+ let platformId: string; //The platform identifier (default to undefined)
490
+ let orderId: string; //The order identifier (default to undefined)
491
+
492
+ const { status, data } = await apiInstance.sendOrderReceipt(
493
+ project,
494
+ platformId,
495
+ orderId
496
+ );
497
+ ```
498
+
499
+ ### Parameters
500
+
501
+ |Name | Type | Description | Notes|
502
+ |------------- | ------------- | ------------- | -------------|
503
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
504
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
505
+ | **orderId** | [**string**] | The order identifier | defaults to undefined|
506
+
507
+
508
+ ### Return type
509
+
510
+ void (empty response body)
511
+
512
+ ### Authorization
513
+
514
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
515
+
516
+ ### HTTP request headers
517
+
518
+ - **Content-Type**: Not defined
519
+ - **Accept**: application/json
520
+
521
+
522
+ ### HTTP response details
523
+ | Status code | Description | Response headers |
524
+ |-------------|-------------|------------------|
525
+ |**204** | Successfully sent order receipt to customer | - |
526
+ |**400** | Failed validation | - |
527
+ |**401** | Not authorised to access this resource | - |
528
+ |**403** | Refuse to authorize | - |
529
+ |**404** | Resource not found | - |
530
+ |**500** | Unknown server error | - |
531
+
532
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
533
+
408
534
  # **updateFulfillment**
409
535
  > Fulfillment updateFulfillment(updateFulfillmentRequest)
410
536
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **lifetimeValue** | **number** | | [default to undefined]
9
9
  **totalOrderCount** | **number** | | [default to undefined]
10
+ **refundedOrderCount** | **number** | | [default to undefined]
10
11
  **lastPurchased** | **string** | | [default to undefined]
11
12
 
12
13
  ## Example
@@ -17,6 +18,7 @@ import { Statistics } from '@teemill/platform';
17
18
  const instance: Statistics = {
18
19
  lifetimeValue,
19
20
  totalOrderCount,
21
+ refundedOrderCount,
20
22
  lastPurchased,
21
23
  };
22
24
  ```
@@ -0,0 +1,20 @@
1
+ # UpdateCustomerEnquiryRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **owner** | **string** | The unique id of the user who owns the enquiry | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateCustomerEnquiryRequest } from '@teemill/platform';
14
+
15
+ const instance: UpdateCustomerEnquiryRequest = {
16
+ owner,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.23.0
7
+ * The version of the OpenAPI document: 0.26.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/platform",
3
- "version": "0.23.0",
3
+ "version": "0.26.0",
4
4
  "description": "OpenAPI client for @teemill/platform",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {