@teemill/platform 0.53.0 → 0.55.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.
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.53.0
5
+ * The version of the OpenAPI document: 0.55.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -320,6 +320,7 @@ export interface Customer {
320
320
  'country': string | null;
321
321
  'statistics': Statistics;
322
322
  'shippingAddress'?: Address;
323
+ 'billingAddress'?: Address;
323
324
  /**
324
325
  * Reference to the chat channel resource
325
326
  */
@@ -364,6 +365,27 @@ export interface DashboardItem {
364
365
  'sortOrder': number;
365
366
  'items'?: Array<DashboardItem> | null;
366
367
  }
368
+ /**
369
+ * Data deletion request
370
+ */
371
+ export interface DataDeletionRequest {
372
+ /**
373
+ * Unique object identifier
374
+ */
375
+ 'id': string;
376
+ /**
377
+ * Reference to the customer resource
378
+ */
379
+ 'customerRef': string;
380
+ /**
381
+ * Reference to the user resource
382
+ */
383
+ 'requestedBy': string;
384
+ /**
385
+ * ISO 8601 Timestamp
386
+ */
387
+ 'requestedAt': string;
388
+ }
367
389
  /**
368
390
  * Estimated delivery date range. Null if accurate calculation not possible e.g. order contains pre-order items without back in stock dates.
369
391
  */
@@ -575,7 +597,7 @@ export interface Order {
575
597
  'contactInformation': ContactInformation;
576
598
  'paymentMethod'?: OrderPaymentMethod;
577
599
  'shippingAddress': Address;
578
- 'billingAddress'?: Address;
600
+ 'billingAddress': Address;
579
601
  /**
580
602
  * ISO 8601 Timestamp
581
603
  */
@@ -994,6 +1016,12 @@ export interface UpdateCustomerEnquiryRequest {
994
1016
  */
995
1017
  'owner'?: string | null;
996
1018
  }
1019
+ export interface UpdateCustomerRequest {
1020
+ 'email'?: string;
1021
+ 'name'?: string;
1022
+ 'billingAddress'?: Address;
1023
+ 'shippingAddress'?: Address;
1024
+ }
997
1025
  export interface UpdateFulfillmentRequest {
998
1026
  /**
999
1027
  * Unique object identifier
@@ -1011,6 +1039,7 @@ export declare const UpdateModerationItemRequestJudgementEnum: {
1011
1039
  export type UpdateModerationItemRequestJudgementEnum = typeof UpdateModerationItemRequestJudgementEnum[keyof typeof UpdateModerationItemRequestJudgementEnum];
1012
1040
  export interface UpdateOrderRequest {
1013
1041
  'email'?: string;
1042
+ 'billingAddress'?: Address;
1014
1043
  'shippingAddress'?: Address;
1015
1044
  'priorityLevel'?: PriorityLevel;
1016
1045
  }
@@ -1067,6 +1096,16 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
1067
1096
  * @throws {RequiredError}
1068
1097
  */
1069
1098
  createCustomerChatChannel: (project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1099
+ /**
1100
+ * Create a data deletion request for a customer
1101
+ * @summary Create data deletion request
1102
+ * @param {string} project Project unique identifier
1103
+ * @param {string} platformId The platform identifier
1104
+ * @param {string} customerId The customer identifier
1105
+ * @param {*} [options] Override http request option.
1106
+ * @throws {RequiredError}
1107
+ */
1108
+ createCustomerDataDeletionRequest: (project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1070
1109
  /**
1071
1110
  * Export customers as a CSV file
1072
1111
  * @summary Export customers
@@ -1102,6 +1141,16 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
1102
1141
  * @throws {RequiredError}
1103
1142
  */
1104
1143
  getCustomer: (project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1144
+ /**
1145
+ * Get a data deletion request for a customer
1146
+ * @summary Get data deletion request
1147
+ * @param {string} project Project unique identifier
1148
+ * @param {string} platformId The platform identifier
1149
+ * @param {string} customerId The customer identifier
1150
+ * @param {*} [options] Override http request option.
1151
+ * @throws {RequiredError}
1152
+ */
1153
+ getCustomerDataDeletionRequest: (project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1105
1154
  /**
1106
1155
  * List customer tags
1107
1156
  * @summary List customer tags
@@ -1142,6 +1191,17 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
1142
1191
  * @throws {RequiredError}
1143
1192
  */
1144
1193
  listCustomers: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1194
+ /**
1195
+ *
1196
+ * @summary Update the customer with the given customer ID
1197
+ * @param {string} project Project unique identifier
1198
+ * @param {string} platformId The platform identifier
1199
+ * @param {string} customerId The customer identifier
1200
+ * @param {UpdateCustomerRequest} [updateCustomerRequest]
1201
+ * @param {*} [options] Override http request option.
1202
+ * @throws {RequiredError}
1203
+ */
1204
+ updateCustomer: (project: string, platformId: string, customerId: string, updateCustomerRequest?: UpdateCustomerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1145
1205
  };
1146
1206
  /**
1147
1207
  * CustomersApi - functional programming interface
@@ -1157,6 +1217,16 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
1157
1217
  * @throws {RequiredError}
1158
1218
  */
1159
1219
  createCustomerChatChannel(project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrderChatChannel200Response>>;
1220
+ /**
1221
+ * Create a data deletion request for a customer
1222
+ * @summary Create data deletion request
1223
+ * @param {string} project Project unique identifier
1224
+ * @param {string} platformId The platform identifier
1225
+ * @param {string} customerId The customer identifier
1226
+ * @param {*} [options] Override http request option.
1227
+ * @throws {RequiredError}
1228
+ */
1229
+ createCustomerDataDeletionRequest(project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataDeletionRequest>>;
1160
1230
  /**
1161
1231
  * Export customers as a CSV file
1162
1232
  * @summary Export customers
@@ -1192,6 +1262,16 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
1192
1262
  * @throws {RequiredError}
1193
1263
  */
1194
1264
  getCustomer(project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>>;
1265
+ /**
1266
+ * Get a data deletion request for a customer
1267
+ * @summary Get data deletion request
1268
+ * @param {string} project Project unique identifier
1269
+ * @param {string} platformId The platform identifier
1270
+ * @param {string} customerId The customer identifier
1271
+ * @param {*} [options] Override http request option.
1272
+ * @throws {RequiredError}
1273
+ */
1274
+ getCustomerDataDeletionRequest(project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataDeletionRequest>>;
1195
1275
  /**
1196
1276
  * List customer tags
1197
1277
  * @summary List customer tags
@@ -1232,6 +1312,17 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
1232
1312
  * @throws {RequiredError}
1233
1313
  */
1234
1314
  listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<ListCustomersSortByEnum>, countries?: Array<string>, projects?: Array<string>, gender?: ListCustomersGenderEnum, productTypes?: Array<number>, demographics?: Array<string>, tags?: Array<string>, usedDiscount?: boolean, minimumTotalOrderCount?: number, maximumTotalOrderCount?: number, minimumRefundedOrderCount?: number, maximumRefundedOrderCount?: number, minimumLifetimeValue?: number, maximumLifetimeValue?: number, lastPurchasedStart?: string, lastPurchasedEnd?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
1315
+ /**
1316
+ *
1317
+ * @summary Update the customer with the given customer ID
1318
+ * @param {string} project Project unique identifier
1319
+ * @param {string} platformId The platform identifier
1320
+ * @param {string} customerId The customer identifier
1321
+ * @param {UpdateCustomerRequest} [updateCustomerRequest]
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ */
1325
+ updateCustomer(project: string, platformId: string, customerId: string, updateCustomerRequest?: UpdateCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>>;
1235
1326
  };
1236
1327
  /**
1237
1328
  * CustomersApi - factory interface
@@ -1245,6 +1336,14 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
1245
1336
  * @throws {RequiredError}
1246
1337
  */
1247
1338
  createCustomerChatChannel(requestParameters: CustomersApiCreateCustomerChatChannelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOrderChatChannel200Response>;
1339
+ /**
1340
+ * Create a data deletion request for a customer
1341
+ * @summary Create data deletion request
1342
+ * @param {CustomersApiCreateCustomerDataDeletionRequestRequest} requestParameters Request parameters.
1343
+ * @param {*} [options] Override http request option.
1344
+ * @throws {RequiredError}
1345
+ */
1346
+ createCustomerDataDeletionRequest(requestParameters: CustomersApiCreateCustomerDataDeletionRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataDeletionRequest>;
1248
1347
  /**
1249
1348
  * Export customers as a CSV file
1250
1349
  * @summary Export customers
@@ -1261,6 +1360,14 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
1261
1360
  * @throws {RequiredError}
1262
1361
  */
1263
1362
  getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<Customer>;
1363
+ /**
1364
+ * Get a data deletion request for a customer
1365
+ * @summary Get data deletion request
1366
+ * @param {CustomersApiGetCustomerDataDeletionRequestRequest} requestParameters Request parameters.
1367
+ * @param {*} [options] Override http request option.
1368
+ * @throws {RequiredError}
1369
+ */
1370
+ getCustomerDataDeletionRequest(requestParameters: CustomersApiGetCustomerDataDeletionRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataDeletionRequest>;
1264
1371
  /**
1265
1372
  * List customer tags
1266
1373
  * @summary List customer tags
@@ -1277,6 +1384,14 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
1277
1384
  * @throws {RequiredError}
1278
1385
  */
1279
1386
  listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomersResponse>;
1387
+ /**
1388
+ *
1389
+ * @summary Update the customer with the given customer ID
1390
+ * @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
1391
+ * @param {*} [options] Override http request option.
1392
+ * @throws {RequiredError}
1393
+ */
1394
+ updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<Customer>;
1280
1395
  };
1281
1396
  /**
1282
1397
  * Request parameters for createCustomerChatChannel operation in CustomersApi.
@@ -1295,6 +1410,23 @@ export interface CustomersApiCreateCustomerChatChannelRequest {
1295
1410
  */
1296
1411
  readonly customerId: string;
1297
1412
  }
1413
+ /**
1414
+ * Request parameters for createCustomerDataDeletionRequest operation in CustomersApi.
1415
+ */
1416
+ export interface CustomersApiCreateCustomerDataDeletionRequestRequest {
1417
+ /**
1418
+ * Project unique identifier
1419
+ */
1420
+ readonly project: string;
1421
+ /**
1422
+ * The platform identifier
1423
+ */
1424
+ readonly platformId: string;
1425
+ /**
1426
+ * The customer identifier
1427
+ */
1428
+ readonly customerId: string;
1429
+ }
1298
1430
  /**
1299
1431
  * Request parameters for exportCustomers operation in CustomersApi.
1300
1432
  */
@@ -1389,6 +1521,23 @@ export interface CustomersApiGetCustomerRequest {
1389
1521
  */
1390
1522
  readonly customerId: string;
1391
1523
  }
1524
+ /**
1525
+ * Request parameters for getCustomerDataDeletionRequest operation in CustomersApi.
1526
+ */
1527
+ export interface CustomersApiGetCustomerDataDeletionRequestRequest {
1528
+ /**
1529
+ * Project unique identifier
1530
+ */
1531
+ readonly project: string;
1532
+ /**
1533
+ * The platform identifier
1534
+ */
1535
+ readonly platformId: string;
1536
+ /**
1537
+ * The customer identifier
1538
+ */
1539
+ readonly customerId: string;
1540
+ }
1392
1541
  /**
1393
1542
  * Request parameters for listCustomerTags operation in CustomersApi.
1394
1543
  */
@@ -1503,6 +1652,24 @@ export interface CustomersApiListCustomersRequest {
1503
1652
  */
1504
1653
  readonly lastPurchasedEnd?: string;
1505
1654
  }
1655
+ /**
1656
+ * Request parameters for updateCustomer operation in CustomersApi.
1657
+ */
1658
+ export interface CustomersApiUpdateCustomerRequest {
1659
+ /**
1660
+ * Project unique identifier
1661
+ */
1662
+ readonly project: string;
1663
+ /**
1664
+ * The platform identifier
1665
+ */
1666
+ readonly platformId: string;
1667
+ /**
1668
+ * The customer identifier
1669
+ */
1670
+ readonly customerId: string;
1671
+ readonly updateCustomerRequest?: UpdateCustomerRequest;
1672
+ }
1506
1673
  /**
1507
1674
  * CustomersApi - object-oriented interface
1508
1675
  */
@@ -1515,6 +1682,14 @@ export declare class CustomersApi extends BaseAPI {
1515
1682
  * @throws {RequiredError}
1516
1683
  */
1517
1684
  createCustomerChatChannel(requestParameters: CustomersApiCreateCustomerChatChannelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrderChatChannel200Response, any, {}>>;
1685
+ /**
1686
+ * Create a data deletion request for a customer
1687
+ * @summary Create data deletion request
1688
+ * @param {CustomersApiCreateCustomerDataDeletionRequestRequest} requestParameters Request parameters.
1689
+ * @param {*} [options] Override http request option.
1690
+ * @throws {RequiredError}
1691
+ */
1692
+ createCustomerDataDeletionRequest(requestParameters: CustomersApiCreateCustomerDataDeletionRequestRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataDeletionRequest, any, {}>>;
1518
1693
  /**
1519
1694
  * Export customers as a CSV file
1520
1695
  * @summary Export customers
@@ -1531,6 +1706,14 @@ export declare class CustomersApi extends BaseAPI {
1531
1706
  * @throws {RequiredError}
1532
1707
  */
1533
1708
  getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Customer, any, {}>>;
1709
+ /**
1710
+ * Get a data deletion request for a customer
1711
+ * @summary Get data deletion request
1712
+ * @param {CustomersApiGetCustomerDataDeletionRequestRequest} requestParameters Request parameters.
1713
+ * @param {*} [options] Override http request option.
1714
+ * @throws {RequiredError}
1715
+ */
1716
+ getCustomerDataDeletionRequest(requestParameters: CustomersApiGetCustomerDataDeletionRequestRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataDeletionRequest, any, {}>>;
1534
1717
  /**
1535
1718
  * List customer tags
1536
1719
  * @summary List customer tags
@@ -1547,6 +1730,14 @@ export declare class CustomersApi extends BaseAPI {
1547
1730
  * @throws {RequiredError}
1548
1731
  */
1549
1732
  listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomersResponse, any, {}>>;
1733
+ /**
1734
+ *
1735
+ * @summary Update the customer with the given customer ID
1736
+ * @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
1737
+ * @param {*} [options] Override http request option.
1738
+ * @throws {RequiredError}
1739
+ */
1740
+ updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Customer, any, {}>>;
1550
1741
  }
1551
1742
  export declare const ExportCustomersSortByEnum: {
1552
1743
  readonly LifetimeValue: "+lifetimeValue";